Change PendSV function signature to use enum
This commit is contained in:
parent
c3c531240e
commit
ee95fde5ec
2 changed files with 8 additions and 14 deletions
|
|
@ -107,16 +107,15 @@ typedef unsigned int INT32U;
|
|||
|
||||
#define ICACHE_FLASH_ATTR __attribute__((section(".irom0.text")))
|
||||
|
||||
enum SVC_ReqType {
|
||||
SVC_Software = 1,
|
||||
SVC_MACLayer = 2,
|
||||
};
|
||||
|
||||
/* Scheduler utilities. */
|
||||
extern void PendSV(char);
|
||||
extern void PendSV(enum SVC_ReqType);
|
||||
//#define portYIELD() vPortYield()
|
||||
#define portYIELD() PendSV(1)
|
||||
|
||||
|
||||
//#define portEND_SWITCHING_ISR( xSwitchRequired ) \
|
||||
// if(xSwitchRequired) PendSV(1)
|
||||
|
||||
#define HDL_MAC_SIG_IN_LV1_ISR() PendSV(2)
|
||||
#define portYIELD() PendSV(SVC_Software)
|
||||
|
||||
/* Task utilities. */
|
||||
#define portEND_SWITCHING_ISR( xSwitchRequired ) \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue