mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-09-12 09:07:46 -04:00
ATmegaxxx - match legacy whitespace
This commit is contained in:
parent
62682ebe5b
commit
becc1d8b93
2 changed files with 5 additions and 11 deletions
|
@ -67,12 +67,6 @@ any details of its type. */
|
||||||
typedef void TCB_t;
|
typedef void TCB_t;
|
||||||
extern volatile TCB_t * volatile pxCurrentTCB;
|
extern volatile TCB_t * volatile pxCurrentTCB;
|
||||||
|
|
||||||
/*-----------------------------------------------------------*/
|
|
||||||
/*
|
|
||||||
* Perform hardware setup to enable ticks from timer compare match A.
|
|
||||||
*/
|
|
||||||
static void prvSetupTimerInterrupt( void );
|
|
||||||
|
|
||||||
/*-----------------------------------------------------------*/
|
/*-----------------------------------------------------------*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -518,6 +512,11 @@ void wdt_interrupt_reset_enable (const uint8_t value)
|
||||||
#endif
|
#endif
|
||||||
/*-----------------------------------------------------------*/
|
/*-----------------------------------------------------------*/
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Perform hardware setup to enable ticks from relevant Timer.
|
||||||
|
*/
|
||||||
|
static void prvSetupTimerInterrupt( void );
|
||||||
|
/*-----------------------------------------------------------*/
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* See header file for description.
|
* See header file for description.
|
||||||
|
@ -541,7 +540,6 @@ uint16_t usAddress;
|
||||||
|
|
||||||
/* The start of the task code will be popped off the stack last, so place
|
/* The start of the task code will be popped off the stack last, so place
|
||||||
it on first. */
|
it on first. */
|
||||||
|
|
||||||
usAddress = ( uint16_t ) pxCode;
|
usAddress = ( uint16_t ) pxCode;
|
||||||
*pxTopOfStack = ( StackType_t ) ( usAddress & ( uint16_t ) 0x00ff );
|
*pxTopOfStack = ( StackType_t ) ( usAddress & ( uint16_t ) 0x00ff );
|
||||||
pxTopOfStack--;
|
pxTopOfStack--;
|
||||||
|
@ -722,12 +720,10 @@ void vPortYieldFromTick( void ) __attribute__ ( ( hot, flatten, naked ) );
|
||||||
void vPortYieldFromTick( void )
|
void vPortYieldFromTick( void )
|
||||||
{
|
{
|
||||||
portSAVE_CONTEXT();
|
portSAVE_CONTEXT();
|
||||||
|
|
||||||
if( xTaskIncrementTick() != pdFALSE )
|
if( xTaskIncrementTick() != pdFALSE )
|
||||||
{
|
{
|
||||||
vTaskSwitchContext();
|
vTaskSwitchContext();
|
||||||
}
|
}
|
||||||
|
|
||||||
portRESTORE_CONTEXT();
|
portRESTORE_CONTEXT();
|
||||||
|
|
||||||
__asm__ __volatile__ ( "ret" );
|
__asm__ __volatile__ ( "ret" );
|
||||||
|
|
|
@ -63,7 +63,6 @@ typedef uint8_t UBaseType_t;
|
||||||
/*-----------------------------------------------------------*/
|
/*-----------------------------------------------------------*/
|
||||||
|
|
||||||
/* Critical section management. */
|
/* Critical section management. */
|
||||||
|
|
||||||
#define portENTER_CRITICAL() __asm__ __volatile__ ( \
|
#define portENTER_CRITICAL() __asm__ __volatile__ ( \
|
||||||
"in __tmp_reg__, __SREG__" "\n\t" \
|
"in __tmp_reg__, __SREG__" "\n\t" \
|
||||||
"cli" "\n\t" \
|
"cli" "\n\t" \
|
||||||
|
@ -81,7 +80,6 @@ typedef uint8_t UBaseType_t;
|
||||||
|
|
||||||
#define portDISABLE_INTERRUPTS() __asm__ __volatile__ ( "cli" ::: "memory")
|
#define portDISABLE_INTERRUPTS() __asm__ __volatile__ ( "cli" ::: "memory")
|
||||||
#define portENABLE_INTERRUPTS() __asm__ __volatile__ ( "sei" ::: "memory")
|
#define portENABLE_INTERRUPTS() __asm__ __volatile__ ( "sei" ::: "memory")
|
||||||
|
|
||||||
/*-----------------------------------------------------------*/
|
/*-----------------------------------------------------------*/
|
||||||
|
|
||||||
/* Architecture specifics. */
|
/* Architecture specifics. */
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue