ATmegaxxxx - reti fix

This commit is contained in:
Phillip Stevens 2020-04-14 20:36:14 +10:00
parent 16f96a8f33
commit 7b02dd55b6

View file

@ -678,7 +678,7 @@ void vPortYieldFromTick( void )
} }
portRESTORE_CONTEXT(); portRESTORE_CONTEXT();
__asm__ __volatile__ ( "reti" ); __asm__ __volatile__ ( "ret" );
} }
/*-----------------------------------------------------------*/ /*-----------------------------------------------------------*/
@ -751,6 +751,7 @@ uint8_t ucLowByte;
ISR(portSCHEDULER_ISR) ISR(portSCHEDULER_ISR)
{ {
vPortYieldFromTick(); vPortYieldFromTick();
__asm__ __volatile__ ( "reti" );
} }
#else #else