Last audio fix ?

This commit is contained in:
3djc
2020-03-04 18:53:42 +01:00
parent 9c925457b4
commit f7cb20f665
4 changed files with 26 additions and 18 deletions
@@ -134,6 +134,12 @@ void audioSpiInit(void)
SPI_I2S_ClearFlag(AUDIO_SPI, SPI_I2S_FLAG_TXE);
}
void audioWaitReady()
{
// The audio amp needs ~2s to start
RTOS_WAIT_MS(2000); // 2s
}
void audioSpiSetSpeed(uint8_t speed)
{
AUDIO_SPI->CR1 &= 0xFFC7; // Fsck=Fcpu/256