... | ... | @@ -90,7 +90,7 @@ const unsigned int auxSerialSpeed=9600; |
|
|
const bool auxSerialFlowctrl=false;
|
|
|
```
|
|
|
## USART driver
|
|
|
The driver for the USART peripheral permits to use all the USART/UART peripherals of any board, setting the wanted baudrate. All the pins linked to the various USART/UART peripherals are defined in the USART.h header file in the format of uNtxM or uNrxM (N = id of the peripheral; M = [absent, 1 or 2] in order to distinguish among different pins with same function; e.g. u1tx1, u1rx1, u5tx, u5rx). An example of usage is in `/src/tests/drivers/usart/test-usart.cpp`. The USART header and cpp files can be found at '/src/shared/drivers/usart'.
|
|
|
The driver for the USART peripheral permits to use all the USART/UART peripherals of any board, setting the wanted baudrate. All the pins linked to the various USART/UART peripherals are defined in the USART.h header file in the format of uNtxM or uNrxM (N = id of the peripheral; M = [absent, 1 or 2] in order to distinguish among different pins with same function; e.g. u1tx1, u1rx1, u5tx, u5rx). An example of usage is in `/src/tests/drivers/usart/test-usart.cpp`. The USART header and cpp files can be found at `/src/shared/drivers/usart`.
|
|
|
|
|
|
### USARTInterface
|
|
|
This class is the abstract class that represents a USART peripheral. It has some abstract methods in order to expose some common features:
|
... | ... | |