fixed more ARM defines

This commit is contained in:
roy rocket 2011-07-27 00:16:59 +02:00
parent 0a268ebfc3
commit 389ab257fa
2 changed files with 2 additions and 2 deletions

View File

@ -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{

View File

@ -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