cancel
Showing results for 
Search instead for 
Did you mean: 

execute software interrupt

ami
Associate
Posted on February 22, 2013 at 12:15

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 reserved

by

rtos

.

How

to run

by

software

usually

interrupt

such

EXTI0

?

1 REPLY 1
Posted on February 22, 2013 at 12:32

You need to set the respective bit in NVIC_ISPRx registers. For that CMSIS provides the NVIC_SetPendingIRQ() function.

JW