Understanding PAL and ChibiOS Events
Posted: Mon Mar 02, 2020 2:52 pm
I read this great tutorial about the PAL Event System and how to execute threads based on a GPIO port. https://www.playembedded.org/blog/buttons-stm32/
However some things are unclear to me. According to the chibiOS documentation, threads register to events by using an event listener. (Taken from here: http://chibios.org/dokuwiki/doku.php?id ... nel_events). However in the tutorial no event listeners a used. Just a simple wait function. How does the implementation in the tutorial differ from the one explained in the wiki? What happens if multiple threads execute the palWaitPadTimeout function for the same event? (That seems to work). Is there a similar way to enable a event for the end of an SPI receive?
However some things are unclear to me. According to the chibiOS documentation, threads register to events by using an event listener. (Taken from here: http://chibios.org/dokuwiki/doku.php?id ... nel_events). However in the tutorial no event listeners a used. Just a simple wait function. How does the implementation in the tutorial differ from the one explained in the wiki? What happens if multiple threads execute the palWaitPadTimeout function for the same event? (That seems to work). Is there a similar way to enable a event for the end of an SPI receive?