embkernel
 All Classes Functions Variables Typedefs Groups Pages
RtosPortMacros.hpp
1 //------------------------------------------------------------------------------
2 //This file is part of embKernel.
3 //See license.txt for the full license governing this code.
4 //------------------------------------------------------------------------------
5 
6 #ifndef RTOS_PORT_MACROS_HPP_
7 #define RTOS_PORT_MACROS_HPP_
8 
9 #define RTOS_LOW_POWER_MODE() __asm volatile("wfi\n")
10 
11 #define RTOS_NOP() __asm volatile("nop\n")
12 
13 #define RTOS_INT_PRI (0x80)
14 #define RTOS_NO_CALL_INT_LO_PRI (0x40)
15 #define RTOS_NO_CALL_INT_ME_PRI (0x20)
16 #define RTOS_NO_CALL_INT_HI_PRI (0x00)
17 
18 #endif /* RTOS_PORT_MACROS_HPP_ */