diff options
author | Stephen Caudle <stephen@caudle.info> | 2015-07-23 23:39:51 -0400 |
---|---|---|
committer | Stephen Caudle <stephen@caudle.info> | 2015-08-10 22:44:44 -0400 |
commit | e2da880b5fcf9c200123035f675753f5488ffecc (patch) | |
tree | 7d52835cd2c2feee6c93ab82412ea6a9821d3087 /demos | |
parent | ab80aabfd48b50e122f6ff43adeedd1af4a5a607 (diff) | |
download | ChibiOS-Contrib-e2da880b5fcf9c200123035f675753f5488ffecc.tar.gz ChibiOS-Contrib-e2da880b5fcf9c200123035f675753f5488ffecc.tar.bz2 ChibiOS-Contrib-e2da880b5fcf9c200123035f675753f5488ffecc.zip |
Cleanup nRF51 serial driver
Use values from bitfields header. Also convert notify1 function to be
non-blocking, which seems to be how most of the other serial drivers are
implemented.
Diffstat (limited to 'demos')
-rw-r--r-- | demos/NRF51/RT-WVSHARE_BLE400/main.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/demos/NRF51/RT-WVSHARE_BLE400/main.c b/demos/NRF51/RT-WVSHARE_BLE400/main.c index 4f5e49d..d0b18cc 100644 --- a/demos/NRF51/RT-WVSHARE_BLE400/main.c +++ b/demos/NRF51/RT-WVSHARE_BLE400/main.c @@ -39,8 +39,8 @@ int main(void) { SerialConfig serial_config = {
.speed = 38400,
- .tx_pin = UART_TX,
- .rx_pin = UART_RX,
+ .tx_pad = UART_TX,
+ .rx_pad = UART_RX,
};
/*
|