emanuelen5 / kitchen-timer

0 stars 0 forks source link

Implemented interrupt queuing system #6

Closed nperozzi closed 4 months ago

nperozzi commented 4 months ago

I implemented the queuing system in the rotary-encoder library. 1) queuing interrupts: The ISRs debounce and add interrupts to the interruptQueue[] 2) dequeuing interrupts: The dequeuing_interrupts is called in the main loop. It checks if there are interrupts queued triggers the first one and moves the front of the queue variable. Then it processes the interrupt depending on which one it is.

nperozzi commented 4 months ago

I made the modification that we agreed on Thursday 😊:

nperozzi commented 4 months ago

I think I fixed all the comments 👏

emanuelen5 commented 4 months ago

By the way: I pushed some changes above to minimize the diff and just format the files with clang-formatter. In f97932c57bb9442d8df3ebc4e195b703fe0add7a I changed so we in fact use the event_t type when we should.

nperozzi commented 4 months ago

Looking forward to merging this branch!