apptrace: Adds ESP32-C3 support

This commit is contained in:
Alexey Gerenkov
2021-05-29 00:20:02 +03:00
parent 821869d98d
commit 20fd09728f
8 changed files with 427 additions and 18 deletions

View File

@@ -91,4 +91,13 @@
#define configISR_STACK_SIZE (CONFIG_FREERTOS_ISR_STACKSIZE)
#endif
#ifndef __ASSEMBLER__
#if CONFIG_APPTRACE_SV_ENABLE
extern int xPortSwitchFlag;
#define os_task_switch_is_pended(_cpu_) (xPortSwitchFlag)
#else
#define os_task_switch_is_pended(_cpu_) (false)
#endif
#endif
#endif // FREERTOS_CONFIG_RISCV_H

View File

@@ -346,6 +346,7 @@ void vPortYieldOtherCore(BaseType_t coreid)
void vPortYieldFromISR( void )
{
traceISR_EXIT_TO_SCHEDULER();
uxSchedulerRunning = 1;
xPortSwitchFlag = 1;
}