Previous version which works for my stm32f401 Nucleo board
Fork of X_NUCLEO_IDB0XA1 by
Diff: BlueNRGDevice.cpp
- Revision:
- 99:c6e075b517c2
- Parent:
- 92:709d44dc869a
- Child:
- 100:76c16a800273
--- a/BlueNRGDevice.cpp Thu Jul 23 14:22:55 2015 +0200 +++ b/BlueNRGDevice.cpp Fri Jul 24 08:20:47 2015 +0200 @@ -61,12 +61,12 @@ * This is using Arduino pins as follows: * D11: MOSI line of SPI interface * D12: MISO line of SPI interface -* D3 : SCK line of SPI interface +* D13: SCK line of SPI interface * A1 : nCS line of SPI interface * D7 : BlueNRG reset * A0 : BlueNRG IRQ pin */ -BlueNRGDevice bluenrgDeviceInstance(D11, D12, D3, A1, D7, A0); +BlueNRGDevice bluenrgDeviceInstance(D11, D12, D13, A1, D7, A0); /** * BLE-API requires an implementation of the following function in order to @@ -127,6 +127,7 @@ ble_error_t BlueNRGDevice::init(void) { // Set the interrupt handler for the device + irq_.mode(PullNone); // betzw: set irq mode irq_.rise(&HCI_Isr); /* ToDo: Clear memory contents, reset the SD, etc. */