Go to the documentation of this file.
13 #define MIC_CAPTURE_PDM_BUFF_SIZE_BYTES (MIC_CAPTURE_IT_MS * 2 * 2048 / 8)
14 #define MIC_CAPTURE_PCM_BUFF_SIZE_SAMPLES (MIC_CAPTURE_IT_MS * 16)
15 #define MIC_CAPTURE_MEMORY_SECTION_HW_BUFFERS ".NOCACHE_Section"
19 #if defined ( __ICCARM__ )
20 #pragma data_alignment=4
21 #ifdef MIC_CAPTURE_MEMORY_SECTION_HW_BUFFERS
uint8_t MX_PDM2PCM_Process(uint16_t *PDMBuf, uint16_t *PCMBuf)
void HAL_SAI_RxHalfCpltCallback(SAI_HandleTypeDef *hsai)
Re targets the C library printf function to the USART.
SAI_HandleTypeDef hsai_BlockA4
void HAL_SAI_ErrorCallback(SAI_HandleTypeDef *hsai)
SAI error callbacks.
void mic_capture_createTask(void)
creates task for AudioIn capture
__attribute__((__section__(MIC_CAPTURE_MEMORY_SECTION_HW_BUFFERS)))
#define MIC_CAPTURE_PDM_BUFF_SIZE_BYTES
#define MIC_CAPTURE_PCM_BUFF_SIZE_SAMPLES
void mic_capture_processTask(void)
sends AudioIn Pushed message
void HAL_SAI_RxCpltCallback(SAI_HandleTypeDef *hsai)
Reception complete callback.
HAL_StatusTypeDef HAL_SAI_Receive_DMA(SAI_HandleTypeDef *hsai, uint8_t *pData, uint16_t Size)
__STATIC_FORCEINLINE void SCB_InvalidateDCache_by_Addr(void *addr, int32_t dsize)
D-Cache Invalidate by address.
int mic_capture_start(void)
#define MIC_CAPTURE_MEMORY_SECTION_HW_BUFFERS