[riot-notifications] [RIOT-OS/RIOT] drivers/cc110x: Complete rewrite from scratch (#10340)
notifications at github.com
Fri Feb 1 16:40:02 CET 2019
The device has the pins GDO0 and GDO2 that can be used to indicate events. (GDO1 is also one of the SPI pins -- so using it results in ugly hacks immediately.)
This driver configures GDO0 to be HIGH while a transmission is ongoing (so in RX mode while receiving, in TX mode while sending). So if GDO0 goes low during TX, the driver knows the frame is out.
GDO2 is used by the driver in this PR to signal different things, depending on the state. E.g. when transmitting frames <= 64 Byte, it is set to constant low and not used. When sending frames >= 64 bytes it will configured to be high while the TX FIFO is filled above threshold and low otherwise. When the last chunk is uploaded, GDO2 is turned off by the driver, as the next interesting event is "TX done".
So the driver is completely event driven and will only block for SPI transfers to complete.
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the notifications