/* Configure the PDM module. 
Please see the information on the am_hal_pdm_config_t configuration structure, found in am_hal_pdm.h, for more information on the parameters that may be set by this function. */
void am_hal_pdm_config(am_hal_pdm_config_t *psConfig)
/* Configure the PDM module. 
Please see the information on the am_hal_pdm_config_t configuration structure, found in am_hal_pdm.h, for more information on the parameters that may be set by this function. */
void am_hal_pdm_config(am_hal_pdm_config_t *psConfig)
{
    AM_REG(PDM, PCFG) = psConfig->ui32PDMConfigReg;
    AM_REG(PDM, VCFG) = psConfig->ui32VoiceConfigReg;
    AM_REG(PDM, FTHR) = psConfig->ui32FIFOThreshold;
    am_hal_pdm_fifo_flush();
}