Changeset bb24892 in rtems


Ignore:
Timestamp:
Jun 18, 2019, 9:10:55 AM (5 weeks ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
522cde4
Parents:
2be6ab7f
Message:

bsp/atsam: Use proper API

File:
1 edited

Legend:

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

    r2be6ab7f rbb24892  
    1818
    1919#include <libchip/chip.h>
    20 
    21 /* SCR Sleep deep bit */
    22 #define SCR_SLEEPDEEP (1u << 2)
    2320
    2421void atsam_power_change_state(
     
    9390                        PMC->PMC_FSMR &= (uint32_t)~PMC_FSMR_LPM;
    9491                        /* Do not set deep sleep, but "normal" sleep */
    95                         SCB->SCR &= (uint32_t)~SCR_SLEEPDEEP;
     92                        SCB->SCR &= ~SCB_SCR_SLEEPDEEP_Msk;
    9693
    9794                        __asm__ volatile ("wfi");
Note: See TracChangeset for help on using the changeset viewer.