disable dac before stop mode (#2419)

This commit is contained in:
Henry
2026-11-28 12:08:40 -06:00
committed by firestar5683
parent 1aa0836a52
commit bed2eb71a2
+2
View File
@@ -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);