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: BlueNRG_HCI/hci/hci.c
- Revision:
- 74:c4526f8284d5
- Parent:
- 70:d20d30f59b1c
--- a/BlueNRG_HCI/hci/hci.c Fri Jun 12 16:43:32 2015 +0200 +++ b/BlueNRG_HCI/hci/hci.c Tue Jun 16 10:23:56 2015 +0200 @@ -25,8 +25,6 @@ #include "stm32_bluenrg_ble.h" -extern SPI_HandleTypeDef SpiHandle; - #if BLE_CONFIG_DBG_ENABLE #define PRINTF(...) printf(__VA_ARGS__) #else @@ -113,7 +111,7 @@ } if (readPacketListFull) { while(BlueNRG_DataPresent()) { - data_len = BlueNRG_SPI_Read_All(&SpiHandle, buffer, HCI_READ_PACKET_SIZE); + data_len = BlueNRG_SPI_Read_All(buffer, HCI_READ_PACKET_SIZE); if(data_len > 0) HCI_Event_CB(buffer); } @@ -140,7 +138,7 @@ /* enqueueing a packet for read */ list_remove_head (&hciReadPktPool, (tListNode **)&hciReadPacket); - data_len = BlueNRG_SPI_Read_All(&SpiHandle, hciReadPacket->dataBuff, HCI_READ_PACKET_SIZE); + data_len = BlueNRG_SPI_Read_All(hciReadPacket->dataBuff, HCI_READ_PACKET_SIZE); if(data_len > 0){ hciReadPacket->data_len = data_len; if(HCI_verify(hciReadPacket) == 0)