BeRTOS
|
Internal hardware state structure. More...
Internal hardware state structure.
The sending variable is true while the transmission interrupt is retriggering itself.
For the USARTs the sending flag is useful for taking specific actions before sending a burst of data, at the start of a trasmission but not before every char sent.
For the SPI, this flag is necessary because the SPI sends and receives bytes at the same time and the SPI IRQ is unique for send/receive. The only way to start transmission is to write data in SPDR (this is done by spi_starttx()). We do this *only* if a transfer is not already started.
Definition at line 239 of file ser_at91.c.