mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-09-03 12:53:52 -04:00
Update to AVR_Mega0 and AVR_Dx GCC ports + addition of their IAR equivalents (#106)
* Removed TICK_stop() macro from portable/GCC/{AVR_AVRDx, AVR_Mega0}/porthardware.h because it is not used anywhere. * Updated indentation in portable/GCC/{AVR_AVRDx, AVR_Mega0}/* files. * Added portable/IAR/{AVR_AVRDx, AVR_Mega0 folders.
This commit is contained in:
parent
bda9869271
commit
a2e00f0c6b
14 changed files with 1922 additions and 516 deletions
|
@ -64,18 +64,17 @@ typedef uint16_t TickType_t;
|
|||
typedef uint32_t TickType_t;
|
||||
#define portMAX_DELAY (TickType_t)0xffffffffUL
|
||||
#endif
|
||||
|
||||
/*-----------------------------------------------------------*/
|
||||
|
||||
/* Critical section management. */
|
||||
#define portENTER_CRITICAL() \
|
||||
asm volatile("in __tmp_reg__, __SREG__"); \
|
||||
asm volatile("cli"); \
|
||||
asm volatile("push __tmp_reg__")
|
||||
asm volatile("in __tmp_reg__, __SREG__"); \
|
||||
asm volatile("cli"); \
|
||||
asm volatile("push __tmp_reg__")
|
||||
|
||||
#define portEXIT_CRITICAL() \
|
||||
asm volatile("pop __tmp_reg__"); \
|
||||
asm volatile("out __SREG__, __tmp_reg__")
|
||||
asm volatile("pop __tmp_reg__"); \
|
||||
asm volatile("out __SREG__, __tmp_reg__")
|
||||
|
||||
#define portDISABLE_INTERRUPTS() asm volatile("cli" ::);
|
||||
#define portENABLE_INTERRUPTS() asm volatile("sei" ::);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue