Re #457: audio working in Companion, Simulator and simu using SDL library (use SIMU_AUDIO=YES to enable)

Re #457: case insensitive f_stat() and f_open() for SIMU
This commit is contained in:
Damjan Adamic
2015-02-22 15:49:15 +01:00
parent 434baf15c4
commit 41cd128ad5
14 changed files with 351 additions and 54 deletions
+8 -2
View File
@@ -36,6 +36,13 @@
#include "../../opentx.h"
const int8_t volumeScale[VOLUME_LEVEL_MAX+1] =
{
0, 1, 2, 3, 5, 9, 13, 17, 22, 27, 33, 40,
64, 82, 96, 105, 112, 117, 120, 122, 124, 125, 126, 127
};
#if !defined(SIMU)
bool dacIdle = true;
void setSampleRate(uint32_t frequency)
@@ -139,7 +146,6 @@ void audioEnd()
NVIC_DisableIRQ(DMA1_Stream5_IRQn) ;
}
#if !defined(SIMU)
extern "C" void TIM6_DAC_IRQHandler()
{
DAC->CR &= ~DAC_CR_DMAEN1 ; // Stop DMA requests
@@ -167,7 +173,7 @@ extern "C" void DMA1_Stream5_IRQHandler()
dacIdle = true;
}
}
#endif
#endif // #if !defined(SIMU)
#if 0
static void Audio_GPIO_Init()