[X7D] Software volume

This commit is contained in:
Bertrand Songis
2016-10-19 20:40:47 +02:00
parent 9a02e0b6b3
commit 9f67c0c49b
6 changed files with 9 additions and 7 deletions
+2 -4
View File
@@ -161,17 +161,15 @@ void audioEnd()
PMC->PMC_PCER0 &= ~0x40000000L ; // Disable peripheral clock to DAC
}
#if !defined(SOFTWARE_VOLUME)
void setScaledVolume(uint8_t volume)
{
#if !defined(SOFTWARE_VOLUME)
volumeRequired = volumeScale[min<uint8_t>(volume, VOLUME_LEVEL_MAX)];
#ifndef AR9X
__disable_irq() ;
i2cCheck() ;
__enable_irq() ;
#endif
#endif
}
#endif
#endif // #if !defined(SIMU)