Make FreeRTOS hooks weak; Add example
This commit is contained in:
parent
32328713f5
commit
03597d9162
4 changed files with 71 additions and 2 deletions
|
@ -236,12 +236,12 @@ void IRAM vApplicationStackOverflowHook(TaskHandle_t task, char *task_name) {
|
|||
}
|
||||
|
||||
// .text+0x3d8
|
||||
void IRAM vApplicationIdleHook(void) {
|
||||
void __attribute__((weak)) IRAM vApplicationIdleHook(void) {
|
||||
printf("idle %u\n", WDEV.SYS_TIME);
|
||||
}
|
||||
|
||||
// .text+0x404
|
||||
void IRAM vApplicationTickHook(void) {
|
||||
void __attribute__((weak)) IRAM vApplicationTickHook(void) {
|
||||
printf("tick %u\n", WDEV.SYS_TIME);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue