Skip to content

Commit 87f5e1f

Browse files
paul-szczepanek-arm0xc0170
authored andcommitted
review comments addressed
1 parent 7894a93 commit 87f5e1f

File tree

6 files changed

+10
-14
lines changed

6 files changed

+10
-14
lines changed

features/FEATURE_BLE/targets/TARGET_CORDIO_LL/mbed_lib.json

+5
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@
55
"help": "Handle VS HCI commands. Valid values are 0 (ignore) and 1 (handle).",
66
"value": 0,
77
"macro_name": "LHCI_ENABLE_VS"
8+
},
9+
"uart-hci": {
10+
"help": "Does the board have a UART HCI. Valid values are 0 and 1 (must provide UART through PAL).",
11+
"value": 0,
12+
"macro_name": "CHCI_TR_UART"
813
}
914
}
1015
}

features/FEATURE_BLE/targets/TARGET_CORDIO_LL/stack_adaptation/fake_lhci_drv.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ uint16_t FakeChciTrWrite(uint8_t prot, uint8_t controller_type, uint16_t len, ui
6969
break;
7070
}
7171

72-
return controllerToHostWrite(prot, hci_type, len, pData);
72+
return ControllerToHostWrite(prot, hci_type, len, pData);
7373
}
7474

7575
#ifdef __cplusplus

features/FEATURE_BLE/targets/TARGET_CORDIO_LL/stack_adaptation/fake_lhci_drv.h

+3-3
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,13 @@ extern "C" {
3030
* @param pData Data to be sent.
3131
* @return Number of bytes processed.
3232
*/
33-
uint16_t controllerToHostWrite(uint8_t prot, uint8_t hci_type, uint16_t len, uint8_t *pData);
33+
uint16_t ControllerToHostWrite(uint8_t prot, uint8_t hci_type, uint16_t len, uint8_t *pData);
3434

3535
/**
3636
* Send bytes from host to controller.
3737
*
3838
* @param prot Protocol, must be CHCI_TR_PROT_BLE.
39-
* @param type HCI type, HCI_ACL_TYPE or HCI_CMD_TYPE.
39+
* @param hci_type HCI type, HCI_ACL_TYPE or HCI_CMD_TYPE.
4040
* @param len Buffer length.
4141
* @param pData Data to be sent.
4242
* @return Number of bytes processed.
@@ -47,7 +47,7 @@ uint16_t FakeChciTrRead(uint8_t prot, uint8_t hci_type, uint16_t len, uint8_t *p
4747
* Send bytes from controller to host.
4848
*
4949
* @param prot Protocol, must be CHCI_TR_PROT_BLE.
50-
* @param type Controller type, CHCI_TR_TYPE_DATA or CHCI_TR_TYPE_EVT.
50+
* @param controller_type Controller type, CHCI_TR_TYPE_DATA or CHCI_TR_TYPE_EVT.
5151
* @param len Buffer length.
5252
* @param pData Data to be sent.
5353
* @return Number of bytes processed.

features/FEATURE_BLE/targets/TARGET_NORDIC/TARGET_NORDIC_CORDIO/TARGET_NRF5x/NRFCordioHCIDriver.cpp

-2
Original file line numberDiff line numberDiff line change
@@ -227,8 +227,6 @@ ble::vendor::cordio::buf_pool_desc_t NRFCordioHCIDriver::get_buffer_pool_descrip
227227
return buf_pool_desc_t(buffer, pool_desc);
228228
}
229229

230-
void PlatformLoadBdAddress(uint8_t *pDevAddr);
231-
232230
void NRFCordioHCIDriver::do_initialize()
233231
{
234232
if(_is_init) {

features/FEATURE_BLE/targets/TARGET_NORDIC/TARGET_NORDIC_CORDIO/TARGET_NRF5x/NRFCordioHCITransportDriver.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ extern "C" void chciDrvInit(void)
5656
}
5757

5858
// Callback from Cordio stack
59-
extern "C" uint16_t controllerToHostWrite(uint8_t prot, uint8_t hci_type, uint16_t len, uint8_t *pData)
59+
extern "C" uint16_t ControllerToHostWrite(uint8_t prot, uint8_t hci_type, uint16_t len, uint8_t *pData)
6060
{
6161
WSF_ASSERT(prot == CHCI_TR_PROT_BLE);
6262

features/FEATURE_BLE/targets/TARGET_NORDIC/TARGET_NORDIC_CORDIO/TARGET_NRF5x/mbed_lib.json

-7
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,5 @@
11
{
22
"name": "cordio-nordic-ll",
3-
"config": {
4-
"uart-hci": {
5-
"help": "Does the board have a UART HCI. Valid values are 0 and 1 (must provide UART through PAL).",
6-
"value": 0,
7-
"macro_name": "CHCI_TR_UART"
8-
}
9-
},
103
"macros": [
114
"INIT_BROADCASTER",
125
"INIT_OBSERVER",

0 commit comments

Comments
 (0)