mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-11-29 16:23:55 +08:00
disable dac before stop mode (#2419)
This commit is contained in:
@@ -87,6 +87,8 @@ static void enter_stop_mode(void) {
|
||||
ADC2->CR &= ~(ADC_CR_ADEN);
|
||||
ADC2->CR |= ADC_CR_DEEPPWD;
|
||||
|
||||
sound_stop_dac();
|
||||
|
||||
// disable DTS
|
||||
register_clear_bits(&(DTS->CFGR1), DTS_CFGR1_TS1_START);
|
||||
register_clear_bits(&(DTS->CFGR1), DTS_CFGR1_TS1_EN);
|
||||
|
||||
Reference in New Issue
Block a user