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: platform/src/btle.cpp
- Revision:
- 74:c4526f8284d5
- Parent:
- 70:d20d30f59b1c
- Child:
- 77:332b416123b4
diff -r 142f3ded2091 -r c4526f8284d5 platform/src/btle.cpp --- a/platform/src/btle.cpp Fri Jun 12 16:43:32 2015 +0200 +++ b/platform/src/btle.cpp Tue Jun 16 10:23:56 2015 +0200 @@ -94,28 +94,17 @@ @returns void */ /**************************************************************************/ -void btle_init(bool isSetAddress, PinName mosi, PinName miso, PinName sclk) +void btle_init(bool isSetAddress) { DEBUG("btle_init>>\n\r"); int ret; uint16_t service_handle, dev_name_char_handle, appearance_char_handle; - //HAL_Init(); - - /* Configure the User Button in GPIO Mode */ - //BSP_PB_Init(BUTTON_KEY, BUTTON_MODE_GPIO); - - /* Configure the system clock */ - //SystemClock_Config(); - /* Delay needed only to be able to acces the JTAG interface after reset if it will be disabled later. */ Clock_Wait(500); - /* Initialize the BlueNRG SPI driver */ - BNRG_SPI_Init(D11, D12, D3); - /* Initialize the BlueNRG HCI */ HCI_Init();