Wrapped ARM specific code with #ifdef ARM because of simulat0r

This commit is contained in:
bernd 2011-07-19 08:30:57 +02:00
parent eb5dd5cc9c
commit 3edfff8d59
2 changed files with 7 additions and 0 deletions

View File

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

View File

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