Skip to content

Commit 3a46d09

Browse files
paul-szczepanek-armpan-
authored andcommitted
add stubs for iso channels, update config for iso
1 parent dbd58bf commit 3a46d09

File tree

2 files changed

+65
-2
lines changed

2 files changed

+65
-2
lines changed

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

Lines changed: 56 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" {
@@ -139,6 +140,61 @@ MBED_WEAK void PalExitCs(void)
139140
core_util_critical_section_exit();
140141
}
141142

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+
142198
#ifdef __cplusplus
143199
};
144200
#endif

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

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ const LlRtCfg_t NRFCordioHCIDriver::_ll_cfg = {
154154
/** Default number of ISO receive buffers. */
155155
/*uint8_t*/ .numIsoRxBuf = 0,
156156
/** Maximum ISO buffer size between host and controller. */
157-
/*uint16_t*/ .maxIsoBufLen = 0,
157+
/*uint16_t*/ .maxIsoSduLen = 0,
158158
/** Maximum ISO PDU buffer size. */
159159
/*uint16_t*/ .maxIsoPduLen = 0,
160160

@@ -164,7 +164,14 @@ const LlRtCfg_t NRFCordioHCIDriver::_ll_cfg = {
164164
/** Maximum number of CIS. */
165165
/*uint8_t*/ .maxCis = 0,
166166
/** Subevent spacing above T_MSS. */
167-
/*uint16_t*/ .subEvtSpaceDelay = 0,
167+
/*uint16_t*/ .cisSubEvtSpaceDelay = 0,
168+
169+
/* BIS */
170+
/** Maximum number of BIG. */
171+
/* uint8_t */ .maxBig = 0,
172+
/** Maximum number of BIS. */
173+
/* uint8_t */ .maxBis = 0,
174+
168175
/* DTM */
169176
/** DTM Rx synchronization window in milliseconds. */
170177
/*uint16_t*/ .dtmRxSyncMs = 10000,

0 commit comments

Comments
 (0)