|
PebbleOS v4.47.0-1362-gd278268fe
|
#include <stdatomic.h>#include <stdbool.h>#include <stdint.h>#include <pbl/device.h>#include <pbl/drivers/uart.h>Data Structures | |
| struct | pbl_uart_ops |
| Port driver operations. More... | |
| struct | pbl_uart |
| A serial port. More... | |
Macros | |
| #define | PBL_UART_STATE_DEFINE(sym) |
Define the class state of port sym, for the PBL_UART_*_DEFINE() macro of a driver. | |
| #define | PBL_UART_INIT(sym, _name, _parent, _ops, _baudrate) |
Initializer for the struct pbl_uart of port sym. | |
Functions | |
| int | pbl_uart_dev_init (const struct pbl_device *dev) |
| Device init of every port: calls the driver's init, then applies the line settings, the early console's if the port was one. | |
| bool | pbl_uart_receive (const struct pbl_uart *uart, uint8_t c) |
| Hand a received byte to the receive callback. | |