mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-08-19 09:38:32 -04:00
Add portTASK_SWITCH_HOOK (#867)
This commit adds a portTASK_SWITCH_HOOK() macro which allows ports to inject behavior immediately after a context switch. For example, this macro could be used by ports that need to set an end of stack watchpoint after a context swtich. Co-authored-by: Rahul Kar <118818625+kar-rahul-aws@users.noreply.github.com> Co-authored-by: Soren Ptak <ptaksoren@gmail.com> Co-authored-by: chinglee-iot <61685396+chinglee-iot@users.noreply.github.com> Co-authored-by: Tony Josi <tonyjosi@amazon.com> Co-authored-by: Gaurav-Aggarwal-AWS <33462878+aggarg@users.noreply.github.com>
This commit is contained in:
parent
30e6b8a5ea
commit
bd0f87c18b
2 changed files with 14 additions and 0 deletions
|
@ -529,6 +529,10 @@
|
|||
#define portSETUP_TCB( pxTCB ) ( void ) ( pxTCB )
|
||||
#endif
|
||||
|
||||
#ifndef portTASK_SWITCH_HOOK
|
||||
#define portTASK_SWITCH_HOOK( pxTCB ) ( void ) ( pxTCB )
|
||||
#endif
|
||||
|
||||
#ifndef configQUEUE_REGISTRY_SIZE
|
||||
#define configQUEUE_REGISTRY_SIZE 0U
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue