Turnstile
FreeRTOS ISR to Task Handoff Exercise
Task
Have EXTI0_IRQHandler hand each rising edge on PA0 to a FreeRTOS task, which logs it with log_event(n), counting n from 1. The registers and bit fields are on the Datasheet tab.
Circuit
Pass condition
log_event prints one EVENT:<n> line per edge, in order, and IRQ 6 is taken once per edge.
Notes
The sensor on PA0 sends bursts of up to 10 edges, as close as 1 ms apart, all through the run. Leave the given code as is. Console: 9600 baud, BRR = 0x683