[Horus] Audio now OK. PI9 needed to be set as INPUT

This commit is contained in:
Bertrand Songis
2016-01-17 21:41:14 +01:00
parent b11d45dbb5
commit c86ace9976
3 changed files with 4 additions and 5 deletions
-4
View File
@@ -20,8 +20,6 @@
#include "../../opentx.h"
#if 0
uint32_t audioBufferCount = 0;
#if !defined(SIMU)
@@ -144,5 +142,3 @@ extern "C" void DMA1_Stream5_IRQHandler()
}
}
#endif // #if !defined(SIMU)
#endif
+3
View File
@@ -35,6 +35,9 @@ void pwrInit()
GPIO_InitStructure.GPIO_Mode = GPIO_Mode_IN;
GPIO_Init(PWR_GPIO, &GPIO_InitStructure);
GPIO_InitStructure.GPIO_Pin = GPIO_Pin_9;
GPIO_Init(GPIOI, &GPIO_InitStructure);
// Init Module PWR
GPIO_ResetBits(EXTMODULE_GPIO_PWR, EXTMODULE_GPIO_PIN_PWR);
GPIO_InitStructure.GPIO_Pin = EXTMODULE_GPIO_PIN_PWR;