ads1115 only
Fork of mbed by
Diff: serial_api.h
- Revision:
- 75:dc225afb6914
- Parent:
- 66:9c8f0e3462fb
- Child:
- 98:8ab26030e058
--- a/serial_api.h Fri Dec 13 14:18:40 2013 +0200 +++ b/serial_api.h Thu Dec 19 15:51:14 2013 +0200 @@ -37,6 +37,13 @@ TxIrq } SerialIrq; +typedef enum { + FlowControlNone, + FlowControlRTS, + FlowControlCTS, + FlowControlRTSCTS +} FlowControl; + typedef void (*uart_irq_handler)(uint32_t id, SerialIrq event); typedef struct serial_s serial_t; @@ -60,6 +67,8 @@ void serial_pinout_tx(PinName tx); +void serial_set_flow_control(serial_t *obj, FlowControl type, PinName rxflow, PinName txflow); + #ifdef __cplusplus } #endif