mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-08-31 07:28:37 -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
|
@ -68,13 +68,13 @@ typedef uint32_t TickType_t;
|
|||
|
||||
/* 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" ::);
|
||||
|
@ -85,7 +85,6 @@ typedef uint32_t TickType_t;
|
|||
#define portTICK_PERIOD_MS ((TickType_t)1000 / configTICK_RATE_HZ)
|
||||
#define portBYTE_ALIGNMENT 1
|
||||
#define portNOP() asm volatile("nop");
|
||||
|
||||
/*-----------------------------------------------------------*/
|
||||
|
||||
/* Kernel utilities. */
|
||||
|
@ -94,7 +93,6 @@ extern void vPortYield(void) __attribute__((naked));
|
|||
|
||||
extern void vPortYieldFromISR(void) __attribute__((naked));
|
||||
#define portYIELD_FROM_ISR() vPortYieldFromISR()
|
||||
|
||||
/*-----------------------------------------------------------*/
|
||||
|
||||
/* Task function macros as described on the FreeRTOS.org WEB site. */
|
||||
|
@ -106,4 +104,3 @@ extern void vPortYieldFromISR(void) __attribute__((naked));
|
|||
#endif
|
||||
|
||||
#endif /* PORTMACRO_H */
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue