fixed more ARM defines
This commit is contained in:
parent
0a268ebfc3
commit
389ab257fa
|
@ -142,7 +142,7 @@ void main_iggy(void) {
|
|||
gpioSetValue (RB_LCD_BL, 0);
|
||||
SCB_SCR |= SCB_SCR_SLEEPDEEP;
|
||||
PMU_PMUCTRL = PMU_PMUCTRL_DPDEN_DEEPPOWERDOWN;
|
||||
#ifdef ARM
|
||||
#ifdef __arm__
|
||||
__asm volatile ("WFI");
|
||||
#endif
|
||||
}else{
|
||||
|
|
|
@ -1937,7 +1937,7 @@ typedef struct
|
|||
|
||||
#define NVIC ((NVIC_Type *) NVIC_BASE_ADDRESS)
|
||||
|
||||
#ifdef ARM
|
||||
#ifdef __arm__
|
||||
static inline void __enable_irq() { __asm volatile ("cpsie i"); }
|
||||
static inline void __disable_irq() { __asm volatile ("cpsid i"); }
|
||||
#else
|
||||
|
|
Loading…
Reference in New Issue