...it is possible to allocate an interrupt to the TWAI interface, for example:
Code: Select all
esp_intr_alloc(ETS_CAN_INTR_SOURCE,0,CAN_isr,NULL,NULL);
I have included the following header file:error: 'ETS_CAN_INTR_SOURCE' was not declared in this scope
esp_intr_alloc(ETS_CAN_INTR_SOURCE,0,CAN_isr,NULL,NULL);
Code: Select all
#include "soc/soc.h"
Code: Select all
//On RISC-V CPUs, the interrupt sources are all external interrupts, whose type, source and priority are configured by SW.
//There is no HW NMI conception. SW should controlled the masked levels through INT_THRESH_REG.
Thankyou