mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-04-19 21:11:57 -04:00
Removing vPortEndScheduler() implementation, since it's not implemented according to spec. (#61)
Refer to https://www.freertos.org/a00133.html. The issue with the implementation is that, if only stop kernel tick the program will keep executing current task. The desired behavior is to at least return/jump to the next instruction after vTaskStartScheduler(). Signed-off-by: Yuhui Zheng <10982575+yuhui-zheng@users.noreply.github.com>
This commit is contained in:
parent
f2081af030
commit
f602be2a90
11
portable/ThirdParty/GCC/ATmega/port.c
vendored
11
portable/ThirdParty/GCC/ATmega/port.c
vendored
|
@ -619,16 +619,7 @@ BaseType_t xPortStartScheduler( void )
|
||||||
|
|
||||||
void vPortEndScheduler( void )
|
void vPortEndScheduler( void )
|
||||||
{
|
{
|
||||||
/* It is unlikely that the AVR port will get stopped. If required simply
|
/* It is unlikely that the ATmega port will get stopped. */
|
||||||
disable the tick interrupt here. */
|
|
||||||
|
|
||||||
#if defined (portUSE_WDTO)
|
|
||||||
wdt_disable(); /* disable Watchdog Timer */
|
|
||||||
|
|
||||||
#elif defined( portUSE_TIMER0 )
|
|
||||||
portTIMSK &= ~( _BV(OCIE0B)|_BV(OCIE0A)|_BV(TOIE0) ); /* disable all Timer0 interrupts */
|
|
||||||
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
/*-----------------------------------------------------------*/
|
/*-----------------------------------------------------------*/
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue