Changeset 522cde4 in rtems


Ignore:
Timestamp:
Jun 18, 2019, 9:31:48 AM (4 months ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
a67b9b0
Parents:
bb24892
Message:

atsam: Enable fast startup via RTC alarm

File:
1 edited

Legend:

Unmodified
Added
Removed
  • bsps/arm/atsam/start/power-rtc.c

    rbb24892 r522cde4  
    9797{
    9898        atsam_power_data_rtc_driver *rtc_data;
     99        rtems_interrupt_level level;
    99100        Rtc *rtc = RTC;
    100101
     
    110111                        break;
    111112                case ATSAM_POWER_INIT:
     113                        /* Enable fast startup via RTC alarm */
     114                        rtems_interrupt_disable(level);
     115                        PMC->PMC_FSMR |= PMC_FSMR_RTCAL;
     116                        rtems_interrupt_enable(level);
     117
    112118                        rtc_alarm_handler(rtc_data);
    113119                        break;
Note: See TracChangeset for help on using the changeset viewer.