Handle internal interrupt
Posted: Mon Jan 01, 2018 2:23 pm
How do I assign a internal system interrupt to any function?
I want to test first with the ULP WAKE register:
"If the SoC is not in deep sleep mode, and ULP interrupt bit (RTC_CNTL_ULP_CP_INT_ENA) is set in RTC_CNTL_INT_ENA_REG register, RTC interrupt will be triggered."
I noticed that in this link:
http://esp-idf.readthedocs.io/en/latest ... alloc.html
It is quoted about the allocation of interrupts, but I did not quite understand how to do this in practice (the functions parameters are not clear to me).
Could someone give an example of assigning internal interrupt to a function?
I want to test first with the ULP WAKE register:
"If the SoC is not in deep sleep mode, and ULP interrupt bit (RTC_CNTL_ULP_CP_INT_ENA) is set in RTC_CNTL_INT_ENA_REG register, RTC interrupt will be triggered."
I noticed that in this link:
http://esp-idf.readthedocs.io/en/latest ... alloc.html
It is quoted about the allocation of interrupts, but I did not quite understand how to do this in practice (the functions parameters are not clear to me).
Could someone give an example of assigning internal interrupt to a function?