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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

How many interrupt priorities does stm32 have?

A

16, 0 to 15.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Why shouldn’t you use 0 and 1 interrupt priority?

A

0 and 1 priorities are used for the tick timers.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is Free rtos interrupt safe API called?

A

“FromISR”. Used so that the interrupt handler does not block.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Can tasks run while a interrupt is running?

A

Task cannot run while an interrupt is running.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What should an interrupt handler be?

A

An interrupt handler execution should be kept as short as possible.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly