Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of BLE_API by
Diff: hw/nRF51822.cpp
- Revision:
- 28:f6022fb90701
- Parent:
- 27:4a83843f04b0
--- a/hw/nRF51822.cpp Thu Jan 09 11:03:10 2014 +0000
+++ b/hw/nRF51822.cpp Thu Jan 09 16:41:15 2014 +0000
@@ -35,7 +35,7 @@
@brief Constructor
*/
/**************************************************************************/
-nRF51822::nRF51822() : uart(p9, p10)
+nRF51822::nRF51822(PinName tx, PinName rx, PinName rts, PinName cts) : uart(tx, rx)
{
/* Setup the nRF UART interface */
uart.baud(9600);
@@ -44,7 +44,7 @@
uart.attach(this, &nRF51822::uartCallback);
/* Add flow control for UART (required by the nRF51822) */
- uart.set_flow_control(RawSerial::RTSCTS, p30, p29);
+ uart.set_flow_control(RawSerial::RTSCTS, rts, cts);
/* Reset the service and characteristic counters */
serviceCount = 0;
