![]() ![]() Note something very important, I learnt at my expenses: it is very important to not clash names of the resources. The wroom board has a user LED connected to GPIO 13. ![]() I’ll use an expressif ESP32, with a pushbutton connected between GPIO 12 and GND. To enable interrupts for source, most of the time it’s a signal arriving from external circuitry, you need to first, configure the GPIO using devicetree to map it to a dt node (and alias), configure it as input, then configure the interrupt on it and attach a “callback” function (the handler). In this post we’ll use WorkQueues to implement this separation, but mailboxes are also available for this task, when we want to pass data from one context to another. This must be done instead by splitting the tasks in high priority (read from the chip FIFO) and low priority (parsing data and exposing it to the user). If all of this was implemented in the interrupt context, packet loss would be very likely.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |