5 Interrupt Handling Flashcards
1
Q
What is the difference between task priority and interrupt priority?
A
Task priority is a software feature. Interrupt priority is a hardware feature.
Hardware has priority over software
2
Q
How many interrupt priorities does stm32 have?
A
16, 0 to 15.
3
Q
Why shouldn’t you use 0 and 1 interrupt priority?
A
0 and 1 priorities are used for the tick timers.
4
Q
What is Free rtos interrupt safe API called?
A
“FromISR”. Used so that the interrupt handler does not block.
5
Q
Can tasks run while a interrupt is running?
A
Task cannot run while an interrupt is running.
6
Q
What should an interrupt handler be?
A
An interrupt handler execution should be kept as short as possible.