HW layer for the Nucleo board, it only work with old BLE_API
Dependents: Hello_BLE F446RE-BLE
Fork of X_NUCLEO_IDB0XA1 by
Diff: BlueNRGDevice.cpp
- Revision:
- 92:709d44dc869a
- Parent:
- 91:97c0c21046b4
- Child:
- 93:728699ac5613
- Child:
- 99:c6e075b517c2
--- a/BlueNRGDevice.cpp Thu Jul 23 09:44:24 2015 +0200 +++ b/BlueNRGDevice.cpp Thu Jul 23 14:22:55 2015 +0200 @@ -243,11 +243,6 @@ return BlueNRGGattServer::getInstance(); } -//FIXME: TBI (by now just placeholders to let build -GattClient& BlueNRGDevice::getGattClient() {} -SecurityManager& BlueNRGDevice::getSecurityManager(){} -const SecurityManager& BlueNRGDevice::getSecurityManager() const {} - /**************************************************************************/ /*! @brief shut down the the BLE device @@ -338,7 +333,6 @@ int32_t result = 0; uint32_t i; - volatile uint8_t read_char; volatile uint8_t tmpreg; unsigned char header_master[HEADER_SIZE] = {0x0a, 0x00, 0x00, 0x00, 0x00}; @@ -364,10 +358,10 @@ /* Buffer is big enough */ for (i = 0; i < Nb_bytes1; i++) { - read_char = spi_.write(*(data1 + i)); + spi_.write(*(data1 + i)); } for (i = 0; i < Nb_bytes2; i++) { - read_char = spi_.write(*(data2 + i)); + spi_.write(*(data2 + i)); } } else { /* Buffer is too small */