2013-02-22 03:15 AM
Platform:
STM32F101 Scenario:The
interrupt handler
is executed
frequently (
100kHz).Occasionally
need
to perform
more
complex
,time consuming
oprations.How to create
a lower-priority
interrupt
occurs immediately
after completion
of said
interrupt
?
Using
pendSV (
SCB
->ICSR
=
SCB_ICSR_PENDSVSET
;)working properly
,but I can not
use it
because this
interrupted
is reservedby
rtos
.How
to run
bysoftware
usually
interrupt
such
EXTI0
?2013-02-22 03:32 AM
You need to set the respective bit in NVIC_ISPRx registers. For that CMSIS provides the NVIC_SetPendingIRQ() function.
JW