Fix more instances of wrong define used

This commit is contained in:
Stefan `Sec` Zehl 2011-07-27 00:18:23 +02:00
parent 0a268ebfc3
commit e124c142f2
2 changed files with 2 additions and 2 deletions

View File

@ -142,7 +142,7 @@ void main_iggy(void) {
gpioSetValue (RB_LCD_BL, 0); gpioSetValue (RB_LCD_BL, 0);
SCB_SCR |= SCB_SCR_SLEEPDEEP; SCB_SCR |= SCB_SCR_SLEEPDEEP;
PMU_PMUCTRL = PMU_PMUCTRL_DPDEN_DEEPPOWERDOWN; PMU_PMUCTRL = PMU_PMUCTRL_DPDEN_DEEPPOWERDOWN;
#ifdef ARM #ifdef __arm__
__asm volatile ("WFI"); __asm volatile ("WFI");
#endif #endif
}else{ }else{

View File

@ -1937,7 +1937,7 @@ typedef struct
#define NVIC ((NVIC_Type *) NVIC_BASE_ADDRESS) #define NVIC ((NVIC_Type *) NVIC_BASE_ADDRESS)
#ifdef ARM #ifdef __arm__
static inline void __enable_irq() { __asm volatile ("cpsie i"); } static inline void __enable_irq() { __asm volatile ("cpsie i"); }
static inline void __disable_irq() { __asm volatile ("cpsid i"); } static inline void __disable_irq() { __asm volatile ("cpsid i"); }
#else #else