diff options
author | Soren Ptak <ptaksoren@gmail.com> | 2024-01-24 08:29:27 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-24 08:29:27 +0300 |
commit | dc3afc6e837426b4bda81bbb6cf45bfb6f34c7e9 (patch) | |
tree | 228b580ed39af0cc0205cea0c3fab7403296dc77 | |
parent | 72fadf4376a57a74602f3d6995342d489dce0df2 (diff) |
Remove incorrect portYIELD_FROM_ISR() functions per discussion in https://github.com/FreeRTOS/FreeRTOS-Kernel-Partner-Supported-Ports/issues/9 (#13)HEADmain
-rw-r--r-- | GCC/AVR_AVRDx/port.c | 14 | ||||
-rw-r--r-- | GCC/AVR_AVRDx/portmacro.h | 2 |
2 files changed, 0 insertions, 16 deletions
diff --git a/GCC/AVR_AVRDx/port.c b/GCC/AVR_AVRDx/port.c index fd3e293..3dcceb8 100644 --- a/GCC/AVR_AVRDx/port.c +++ b/GCC/AVR_AVRDx/port.c @@ -159,20 +159,6 @@ void vPortYield( void ) /*-----------------------------------------------------------*/ /* - * Manual context switch callable from ISRs. The first thing - * we do is save the registers so we can use a naked attribute. - */ -void vPortYieldFromISR( void ) __attribute__( ( naked ) ); -void vPortYieldFromISR( void ) -{ - portSAVE_CONTEXT(); - vTaskSwitchContext(); - portRESTORE_CONTEXT(); - asm volatile ( "reti" ); -} -/*-----------------------------------------------------------*/ - -/* * Context switch function used by the tick. This must be identical to * vPortYield() from the call to vTaskSwitchContext() onwards. The only * difference from vPortYield() is the tick count is incremented as the diff --git a/GCC/AVR_AVRDx/portmacro.h b/GCC/AVR_AVRDx/portmacro.h index 7879b64..e5cb655 100644 --- a/GCC/AVR_AVRDx/portmacro.h +++ b/GCC/AVR_AVRDx/portmacro.h @@ -95,8 +95,6 @@ typedef unsigned char UBaseType_t; extern void vPortYield( void ) __attribute__( ( naked ) ); #define portYIELD() vPortYield() -extern void vPortYieldFromISR( void ) __attribute__( ( naked ) ); -#define portYIELD_FROM_ISR() vPortYieldFromISR() /*-----------------------------------------------------------*/ /* Task function macros as described on the FreeRTOS.org WEB site. */ |