mbed-src updated for BMD-200 evaluation board. Just pin numbers are updated.
Dependents: mbed_blinky-bmd-200 bmd-200_accel_demo firstRig
Fork of mbed-src by
Replacement for the "mbed" or "mbed-src" library when using the BMD-200 Evaluation kit. This library only remaps the pin names (i.e. LED1 points to p0.01 instead of p0.18, etc) as used by the BMD-200 Evaluation board (select the nRF51822_mkit platform). All other code is untouched.
Diff: hal/serial_api.h
- Revision:
- 64:7b352733b00a
- Parent:
- 13:0645d8841f51
- Child:
- 529:c320967f86b9
diff -r a46ad637dc84 -r 7b352733b00a hal/serial_api.h --- a/hal/serial_api.h Thu Dec 19 09:00:06 2013 +0000 +++ b/hal/serial_api.h Thu Dec 19 13:15:07 2013 +0000 @@ -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