|
19 | 19 | #include "stack/platform/include/pal_uart.h"
|
20 | 20 | #include "hal/ticker_api.h"
|
21 | 21 | #include "mbed_critical.h"
|
| 22 | +#include "pal_codec.h" |
22 | 23 |
|
23 | 24 | #ifdef __cplusplus
|
24 | 25 | extern "C" {
|
@@ -139,6 +140,61 @@ MBED_WEAK void PalExitCs(void)
|
139 | 140 | core_util_critical_section_exit();
|
140 | 141 | }
|
141 | 142 |
|
| 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 | + |
142 | 198 | #ifdef __cplusplus
|
143 | 199 | };
|
144 | 200 | #endif
|
0 commit comments