diff --git a/features/FEATURE_BLE/targets/TARGET_CORDIO/stack_adaptation/pal_mbed_os_adaptation.cpp b/features/FEATURE_BLE/targets/TARGET_CORDIO/stack_adaptation/pal_mbed_os_adaptation.cpp index 922982ca9a..f1843cc62f 100644 --- a/features/FEATURE_BLE/targets/TARGET_CORDIO/stack_adaptation/pal_mbed_os_adaptation.cpp +++ b/features/FEATURE_BLE/targets/TARGET_CORDIO/stack_adaptation/pal_mbed_os_adaptation.cpp @@ -19,6 +19,7 @@ #include "stack/platform/include/pal_uart.h" #include "hal/ticker_api.h" #include "mbed_critical.h" +#include "pal_codec.h" #ifdef __cplusplus extern "C" { @@ -139,6 +140,61 @@ MBED_WEAK void PalExitCs(void) core_util_critical_section_exit(); } +/* ISO channels */ + +MBED_WEAK void PalCodecReadLocalSupportedCodecs(uint8_t *pNumStd, AudioStdCodecInfo_t stdCodecs[], + uint8_t *pNumVs, AudioVsCodecInfo_t vsCodecs[]) +{ + MBED_ERROR(function_not_implemented, "Provide implementation of PalCodecReadLocalSupportedCodecs"); +} + +MBED_WEAK bool_t PalCodecReadLocalSupportedCodecCapabilities( + uint8_t codingFmt, uint16_t compId, uint16_t vsCodecId, PalAudioDir_t dir) +{ + MBED_ERROR(function_not_implemented, "Provide implementation of PalCodecReadLocalSupportedCodecCapabilities"); + return 0; +} + +MBED_WEAK bool_t PalCodecReadLocalSupportedControllerDelay( + uint8_t codingFmt, uint16_t compId, uint16_t vsCodecId, PalAudioDir_t dir, uint32_t *pMinDly, uint32_t *pMaxDly) +{ + MBED_ERROR(function_not_implemented, "Provide implementation of PalCodecReadLocalSupportedControllerDelay"); + return 0; +} +MBED_WEAK bool_t PalCodecConfigureDataPath(PalAudioDir_t dir, uint8_t dataPathId) +{ + MBED_ERROR(function_not_implemented, "Provide implementation of PalCodecConfigureDataPath"); + return 0; +} + +MBED_WEAK void PalCodecDataInit(void) +{ + MBED_ERROR(function_not_implemented, "Provide implementation of PalCodecDataInit"); +} + +MBED_WEAK bool_t PalCodecDataStartStream(uint16_t id, PalCodecSreamParam_t *pParam) +{ + MBED_ERROR(function_not_implemented, "Provide implementation of PalCodecDataStartStream"); + return 0; +} + +MBED_WEAK void PalCodecDataStopStream(uint16_t id) +{ + MBED_ERROR(function_not_implemented, "Provide implementation of PalCodecDataStopStream"); +} + +MBED_WEAK uint16_t PalCodecDataStreamIn(uint16_t id, uint8_t *pBuf, uint16_t len, uint32_t *pPktCtr) +{ + MBED_ERROR(function_not_implemented, "Provide implementation of PalCodecDataStreamIn"); + return 0; +} + +MBED_WEAK void PalCodecDataStreamOut(uint16_t id, const uint8_t *pBuf, uint16_t len, uint32_t pktCtr) +{ + MBED_ERROR(function_not_implemented, "Provide implementation of PalCodecDataStreamOut"); +} + + #ifdef __cplusplus }; #endif diff --git a/features/FEATURE_BLE/targets/TARGET_NORDIC/TARGET_NORDIC_CORDIO/TARGET_NRF5x/NRFCordioHCIDriver.cpp b/features/FEATURE_BLE/targets/TARGET_NORDIC/TARGET_NORDIC_CORDIO/TARGET_NRF5x/NRFCordioHCIDriver.cpp index b06d2a08f6..9db5da1e27 100644 --- a/features/FEATURE_BLE/targets/TARGET_NORDIC/TARGET_NORDIC_CORDIO/TARGET_NRF5x/NRFCordioHCIDriver.cpp +++ b/features/FEATURE_BLE/targets/TARGET_NORDIC/TARGET_NORDIC_CORDIO/TARGET_NRF5x/NRFCordioHCIDriver.cpp @@ -154,7 +154,7 @@ const LlRtCfg_t NRFCordioHCIDriver::_ll_cfg = { /** Default number of ISO receive buffers. */ /*uint8_t*/ .numIsoRxBuf = 0, /** Maximum ISO buffer size between host and controller. */ -/*uint16_t*/ .maxIsoBufLen = 0, +/*uint16_t*/ .maxIsoSduLen = 0, /** Maximum ISO PDU buffer size. */ /*uint16_t*/ .maxIsoPduLen = 0, @@ -164,7 +164,14 @@ const LlRtCfg_t NRFCordioHCIDriver::_ll_cfg = { /** Maximum number of CIS. */ /*uint8_t*/ .maxCis = 0, /** Subevent spacing above T_MSS. */ -/*uint16_t*/ .subEvtSpaceDelay = 0, +/*uint16_t*/ .cisSubEvtSpaceDelay = 0, + +/* BIS */ +/** Maximum number of BIG. */ +/* uint8_t */ .maxBig = 0, +/** Maximum number of BIS. */ +/* uint8_t */ .maxBis = 0, + /* DTM */ /** DTM Rx synchronization window in milliseconds. */ /*uint16_t*/ .dtmRxSyncMs = 10000,