mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-09-01 11:53:53 -04:00
Continue work on RX600 port - work in progress. Added the SET/CLEAR from ISR macros.
This commit is contained in:
parent
21898cc9d9
commit
383f0b0f2f
2 changed files with 5 additions and 28 deletions
|
@ -109,9 +109,11 @@ extern void vTaskSwitchContext( void );
|
|||
* These macros should be called directly, but through the taskENTER_CRITICAL()
|
||||
* and taskEXIT_CRITICAL() macros.
|
||||
*/
|
||||
extern unsigned char ucIPLToRestore;
|
||||
#define portENABLE_INTERRUPTS() set_ipl( ucIPLToRestore )
|
||||
#define portDISABLE_INTERRUPTS() vPortSetInterruptMask()
|
||||
#define portENABLE_INTERRUPTS() set_ipl( 0 )
|
||||
#define portDISABLE_INTERRUPTS() set_ipl( configKERNEL_INTERRUPT_PRIORITY )
|
||||
|
||||
#define portSET_INTERRUPT_MASK_FROM_ISR() get_ipl(); set_ipl( configMAX_SYSCALL_INTERRUPT_PRIORITY )
|
||||
#define portCLEAR_INTERRUPT_MASK_FROM_ISR( uxSavedInterruptStatus ) set_ipl( uxSavedInterruptStatus )
|
||||
|
||||
/* Critical nesting counts are stored in the TCB. */
|
||||
#define portCRITICAL_NESTING_IN_TCB ( 1 )
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue