void audio_callback(U32 arg) { if( arg == AUDIO_DAC_OUT_OF_SAMPLE_CB ) { dac_overrun_callback(); } else if( arg == AUDIO_DAC_RELOAD_CB ) { dac_reload_callback(); } else if( arg == AUDIO_ADC_OUT_OF_SAMPLE_CB ) { } else if( arg == AUDIO_ADC_RELOAD_CB ) { } }
void master_callback(uint32_t arg) { if( arg == AUDIO_DAC_OUT_OF_SAMPLE_CB ) { dac_overrun_callback(); } else if( arg == AUDIO_DAC_RELOAD_CB ) { dac_reload_callback(); } else if( arg == AUDIO_ADC_OUT_OF_SAMPLE_CB ) { adc_underrun_callback();; } else if( arg == AUDIO_ADC_RELOAD_CB ) { adc_reload_callback();; } }