Wrapped ARM specific code with #ifdef ARM because of simulat0r
This commit is contained in:
parent
eb5dd5cc9c
commit
3edfff8d59
|
@ -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 ");
|
||||
;
|
||||
|
|
|
@ -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
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue