mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-09-01 11:53:53 -04:00
Changes to the AVR demo's. IAR demo updated with new critical section method.
This commit is contained in:
parent
41b142bae4
commit
97a570fa10
17 changed files with 866 additions and 318 deletions
|
@ -70,15 +70,13 @@ Changes from V1.2.3
|
|||
/*-----------------------------------------------------------*/
|
||||
|
||||
/* Critical section management. */
|
||||
#define portENTER_CRITICAL() asm( "in r15, 3fh" ); \
|
||||
asm( "cli" ); \
|
||||
asm( "st -y, r15" )
|
||||
extern void vPortEnterCritical( void );
|
||||
extern void vPortExitCritical( void );
|
||||
#define portENTER_CRITICAL() vPortEnterCritical()
|
||||
#define portEXIT_CRITICAL() vPortExitCritical()
|
||||
|
||||
#define portEXIT_CRITICAL() asm( "ld r15, y+" ); \
|
||||
asm( "out 3fh, r15" )
|
||||
|
||||
#define portDISABLE_INTERRUPTS() asm( "cli" );
|
||||
#define portENABLE_INTERRUPTS() asm( "sti" );
|
||||
#define portDISABLE_INTERRUPTS() asm( "cli" )
|
||||
#define portENABLE_INTERRUPTS() asm( "sei" )
|
||||
/*-----------------------------------------------------------*/
|
||||
|
||||
/* Architecture specifics. */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue