Skip to content

Commit 8197b48

Browse files
authored
Merge pull request #13103 from paul-szczepanek-arm/upgrade-cordio-20-05-ll
BLE: Upgrade cordio Link Layer to 20.05r
2 parents d40346e + 6868d39 commit 8197b48

File tree

374 files changed

+39767
-11385
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

374 files changed

+39767
-11385
lines changed

features/FEATURE_BLE/targets/TARGET_CORDIO/stack/wsf/include/ll_defs.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,8 @@ extern "C" {
4545
#define LL_VER_BT_CORE_SPEC_5_2 0x0B /*!< Bluetooth core specification 5.2 */
4646
#define LL_VER_BT_CORE_SPEC_SYDNEY 0x0C /*!< Bluetooth core specification Sydney */
4747

48+
#define LL_COMP_ID_ARM 0x005F /*!< ARM Ltd. company ID. */
49+
4850
/*** Common ***/
4951

5052
#define LL_RSSI_MIN -127 /*!< Minimum RSSI value. */

features/FEATURE_BLE/targets/TARGET_CORDIO/stack_adaptation/pal_mbed_os_adaptation.cpp

Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
#include "stack/platform/include/pal_uart.h"
2020
#include "hal/ticker_api.h"
2121
#include "mbed_critical.h"
22+
#include "pal_codec.h"
2223

2324
#ifdef __cplusplus
2425
extern "C" {
@@ -113,6 +114,21 @@ MBED_WEAK void PalSysSleep()
113114
MBED_ERROR(function_not_implemented, "Provide implementation of PalSysSleep");
114115
}
115116

117+
MBED_WEAK void PalSysSetTrap(bool_t enable)
118+
{
119+
(void)enable;
120+
}
121+
122+
MBED_WEAK uint32_t PalSysGetAssertCount()
123+
{
124+
return 0;
125+
}
126+
127+
MBED_WEAK uint32_t PalSysGetStackUsage()
128+
{
129+
return 0;
130+
}
131+
116132
/* CS */
117133

118134
MBED_WEAK void PalEnterCs(void)
@@ -124,6 +140,61 @@ MBED_WEAK void PalExitCs(void)
124140
core_util_critical_section_exit();
125141
}
126142

143+
/* ISO channels */
144+
145+
MBED_WEAK void PalCodecReadLocalSupportedCodecs(uint8_t *pNumStd, AudioStdCodecInfo_t stdCodecs[],
146+
uint8_t *pNumVs, AudioVsCodecInfo_t vsCodecs[])
147+
{
148+
MBED_ERROR(function_not_implemented, "Provide implementation of PalCodecReadLocalSupportedCodecs");
149+
}
150+
151+
MBED_WEAK bool_t PalCodecReadLocalSupportedCodecCapabilities(
152+
uint8_t codingFmt, uint16_t compId, uint16_t vsCodecId, PalAudioDir_t dir)
153+
{
154+
MBED_ERROR(function_not_implemented, "Provide implementation of PalCodecReadLocalSupportedCodecCapabilities");
155+
return 0;
156+
}
157+
158+
MBED_WEAK bool_t PalCodecReadLocalSupportedControllerDelay(
159+
uint8_t codingFmt, uint16_t compId, uint16_t vsCodecId, PalAudioDir_t dir, uint32_t *pMinDly, uint32_t *pMaxDly)
160+
{
161+
MBED_ERROR(function_not_implemented, "Provide implementation of PalCodecReadLocalSupportedControllerDelay");
162+
return 0;
163+
}
164+
MBED_WEAK bool_t PalCodecConfigureDataPath(PalAudioDir_t dir, uint8_t dataPathId)
165+
{
166+
MBED_ERROR(function_not_implemented, "Provide implementation of PalCodecConfigureDataPath");
167+
return 0;
168+
}
169+
170+
MBED_WEAK void PalCodecDataInit(void)
171+
{
172+
MBED_ERROR(function_not_implemented, "Provide implementation of PalCodecDataInit");
173+
}
174+
175+
MBED_WEAK bool_t PalCodecDataStartStream(uint16_t id, PalCodecSreamParam_t *pParam)
176+
{
177+
MBED_ERROR(function_not_implemented, "Provide implementation of PalCodecDataStartStream");
178+
return 0;
179+
}
180+
181+
MBED_WEAK void PalCodecDataStopStream(uint16_t id)
182+
{
183+
MBED_ERROR(function_not_implemented, "Provide implementation of PalCodecDataStopStream");
184+
}
185+
186+
MBED_WEAK uint16_t PalCodecDataStreamIn(uint16_t id, uint8_t *pBuf, uint16_t len, uint32_t *pPktCtr)
187+
{
188+
MBED_ERROR(function_not_implemented, "Provide implementation of PalCodecDataStreamIn");
189+
return 0;
190+
}
191+
192+
MBED_WEAK void PalCodecDataStreamOut(uint16_t id, const uint8_t *pBuf, uint16_t len, uint32_t pktCtr)
193+
{
194+
MBED_ERROR(function_not_implemented, "Provide implementation of PalCodecDataStreamOut");
195+
}
196+
197+
127198
#ifdef __cplusplus
128199
};
129200
#endif

features/FEATURE_BLE/targets/TARGET_CORDIO_LL/mbed_lib.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,11 @@
5050
"help": "Does the board have a UART HCI. Valid values are 0 and 1 (must provide UART through PAL).",
5151
"value": 0,
5252
"macro_name": "CHCI_TR_UART"
53+
},
54+
"custom-hci-transport": {
55+
"help": "This enables transport through port provided functions, do not disable unless you wish you use uart-hci.",
56+
"value": 1,
57+
"macro_name": "CHCI_TR_CUSTOM"
5358
}
5459
}
5560
}

features/FEATURE_BLE/targets/TARGET_CORDIO_LL/stack/controller/include/ble/bb_ble_api.h

Lines changed: 37 additions & 58 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,24 @@
1-
/* Copyright (c) 2019 Arm Limited
2-
* SPDX-License-Identifier: Apache-2.0
3-
*
4-
* Licensed under the Apache License, Version 2.0 (the "License");
5-
* you may not use this file except in compliance with the License.
6-
* You may obtain a copy of the License at
7-
*
8-
* http://www.apache.org/licenses/LICENSE-2.0
9-
*
10-
* Unless required by applicable law or agreed to in writing, software
11-
* distributed under the License is distributed on an "AS IS" BASIS,
12-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13-
* See the License for the specific language governing permissions and
14-
* limitations under the License.
15-
*/
16-
171
/*************************************************************************************************/
182
/*!
19-
* \file
20-
* \brief BLE baseband interface file.
3+
* \file
4+
*
5+
* \brief BLE baseband interface file.
6+
*
7+
* Copyright (c) 2013-2019 Arm Ltd. All Rights Reserved.
8+
*
9+
* Copyright (c) 2019-2020 Packetcraft, Inc.
10+
*
11+
* Licensed under the Apache License, Version 2.0 (the "License");
12+
* you may not use this file except in compliance with the License.
13+
* You may obtain a copy of the License at
14+
*
15+
* http://www.apache.org/licenses/LICENSE-2.0
16+
*
17+
* Unless required by applicable law or agreed to in writing, software
18+
* distributed under the License is distributed on an "AS IS" BASIS,
19+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
20+
* See the License for the specific language governing permissions and
21+
* limitations under the License.
2122
*/
2223
/*************************************************************************************************/
2324

@@ -167,8 +168,6 @@ typedef struct
167168
/*!
168169
* \brief Initialize the BLE BB.
169170
*
170-
* \return None.
171-
*
172171
* Initialize baseband resources.
173172
*/
174173
/*************************************************************************************************/
@@ -178,8 +177,6 @@ void BbBleInit(void);
178177
/*!
179178
* \brief Initialize for scanning master operations.
180179
*
181-
* \return None.
182-
*
183180
* Update the operation table with scanning master operations routines.
184181
*/
185182
/*************************************************************************************************/
@@ -189,8 +186,6 @@ void BbBleScanMasterInit(void);
189186
/*!
190187
* \brief Initialize for auxiliary scanning master operations.
191188
*
192-
* \return None.
193-
*
194189
* Update the operation table with auxiliary scanning master operations routines.
195190
*/
196191
/*************************************************************************************************/
@@ -200,8 +195,6 @@ void BbBleAuxScanMasterInit(void);
200195
/*!
201196
* \brief Initialize for periodic scanning master operations.
202197
*
203-
* \return None.
204-
*
205198
* Update the operation table with periodic scanning master operations routines.
206199
*/
207200
/*************************************************************************************************/
@@ -211,8 +204,6 @@ void BbBlePerScanMasterInit(void);
211204
/*!
212205
* \brief Initialize for connectable master operations.
213206
*
214-
* \return None.
215-
*
216207
* Update the operation table with connectable master operations routines.
217208
*/
218209
/*************************************************************************************************/
@@ -222,8 +213,6 @@ void BbBleConnMasterInit(void);
222213
/*!
223214
* \brief Initialize for advertising slave operations.
224215
*
225-
* \return None.
226-
*
227216
* Update the operation table with advertising slave operations routines.
228217
*/
229218
/*************************************************************************************************/
@@ -233,8 +222,6 @@ void BbBleAdvSlaveInit(void);
233222
/*!
234223
* \brief Initialize for auxiliary advertising slave operations.
235224
*
236-
* \return None.
237-
*
238225
* Update the operation table with auxiliary advertising slave operations routines.
239226
*/
240227
/*************************************************************************************************/
@@ -244,8 +231,6 @@ void BbBleAuxAdvSlaveInit(void);
244231
/*!
245232
* \brief Initialize for connectable slave operations.
246233
*
247-
* \return None.
248-
*
249234
* Update the operation table with connectable slave operations routines.
250235
*/
251236
/*************************************************************************************************/
@@ -255,8 +240,6 @@ void BbBleConnSlaveInit(void);
255240
/*!
256241
* \brief Initialize for test operations.
257242
*
258-
* \return None.
259-
*
260243
* Update the operation table with test operations routines.
261244
*/
262245
/*************************************************************************************************/
@@ -318,8 +301,6 @@ uint16_t BbBleInitPeriodicList(uint8_t numEntries, uint8_t *pFreeMem, uint32_t f
318301
* \brief Get advertising packet statistics.
319302
*
320303
* \param pStats Advertising statistics.
321-
*
322-
* \return None.
323304
*/
324305
/*************************************************************************************************/
325306
void BbBleGetAdvStats(BbBleAdvPktStats_t *pStats);
@@ -329,8 +310,6 @@ void BbBleGetAdvStats(BbBleAdvPktStats_t *pStats);
329310
* \brief Get scan packet statistics.
330311
*
331312
* \param pStats Scan statistics.
332-
*
333-
* \return None.
334313
*/
335314
/*************************************************************************************************/
336315
void BbBleGetScanStats(BbBleScanPktStats_t *pStats);
@@ -340,8 +319,6 @@ void BbBleGetScanStats(BbBleScanPktStats_t *pStats);
340319
* \brief Get auxiliary advertising packet statistics.
341320
*
342321
* \param pStats Auxiliary advertising statistics.
343-
*
344-
* \return None.
345322
*/
346323
/*************************************************************************************************/
347324
void BbBleGetAuxAdvStats(BbBleAuxAdvPktStats_t *pStats);
@@ -351,8 +328,6 @@ void BbBleGetAuxAdvStats(BbBleAuxAdvPktStats_t *pStats);
351328
* \brief Get auxiliary scan packet statistics.
352329
*
353330
* \param pStats Auxiliary scan statistics.
354-
*
355-
* \return None.
356331
*/
357332
/*************************************************************************************************/
358333
void BbBleGetAuxScanStats(BbBleAuxScanPktStats_t *pStats);
@@ -362,8 +337,6 @@ void BbBleGetAuxScanStats(BbBleAuxScanPktStats_t *pStats);
362337
* \brief Get periodic scan packet statistics.
363338
*
364339
* \param pStats Periodic scan statistics.
365-
*
366-
* \return None.
367340
*/
368341
/*************************************************************************************************/
369342
void BbBleGetPerScanStats(BbBlePerScanPktStats_t *pStats);
@@ -373,8 +346,6 @@ void BbBleGetPerScanStats(BbBlePerScanPktStats_t *pStats);
373346
* \brief Get connection packet statistics.
374347
*
375348
* \param pStats Connection data statistics.
376-
*
377-
* \return None.
378349
*/
379350
/*************************************************************************************************/
380351
void BbBleGetConnStats(BbBleDataPktStats_t *pStats);
@@ -384,8 +355,6 @@ void BbBleGetConnStats(BbBleDataPktStats_t *pStats);
384355
* \brief Get test mode packet statistics.
385356
*
386357
* \param pStats Test data statistics.
387-
*
388-
* \return None.
389358
*/
390359
/*************************************************************************************************/
391360
void BbBleGetTestStats(BbBleDataPktStats_t *pStats);
@@ -395,8 +364,6 @@ void BbBleGetTestStats(BbBleDataPktStats_t *pStats);
395364
* \brief Get PDU filter statistics.
396365
*
397366
* \param pStats PDU filter statistics.
398-
*
399-
* \return None.
400367
*/
401368
/*************************************************************************************************/
402369
void BbBleGetPduFiltStats(BbBlePduFiltStats_t *pStats);
@@ -405,8 +372,6 @@ void BbBleGetPduFiltStats(BbBlePduFiltStats_t *pStats);
405372
/*!
406373
* \brief Initialize for connected isochronous stream master operations.
407374
*
408-
* \return None.
409-
*
410375
* Update the operation table with CIS master operations routines.
411376
*/
412377
/*************************************************************************************************/
@@ -416,20 +381,34 @@ void BbBleCisMasterInit(void);
416381
/*!
417382
* \brief Initialize for connected isochronous stream slave operations.
418383
*
419-
* \return None.
420-
*
421384
* Update the operation table with CIS slave operations routines.
422385
*/
423386
/*************************************************************************************************/
424387
void BbBleCisSlaveInit(void);
425388

389+
/*************************************************************************************************/
390+
/*!
391+
* \brief Initialize for Broadcast isochronous stream master operations.
392+
*
393+
* Update the operation table with CIS master operations routines.
394+
*/
395+
/*************************************************************************************************/
396+
void BbBleBisMasterInit(void);
397+
398+
/*************************************************************************************************/
399+
/*!
400+
* \brief Initialize for Broadcast isochronous stream slave operations.
401+
*
402+
* Update the operation table with CIS slave operations routines.
403+
*/
404+
/*************************************************************************************************/
405+
void BbBleBisSlaveInit(void);
406+
426407
/*************************************************************************************************/
427408
/*!
428409
* \brief Get CIS packet statistics.
429410
*
430411
* \param pStats CIS data statistics.
431-
*
432-
* \return None.
433412
*/
434413
/*************************************************************************************************/
435414
void BbBleGetCisStats(BbBleDataPktStats_t *pStats);

0 commit comments

Comments
 (0)