[Taranis X9E] Fixes (frequencies on M4, pots calibration, soft power

delay after startup)
This commit is contained in:
bsongis
2015-03-03 20:14:23 +01:00
parent fffa39a286
commit 4c0515ab91
9 changed files with 56 additions and 37 deletions
+5
View File
@@ -93,6 +93,11 @@ const uint8_t BootCode[] = {
__attribute__ ((section(".bootrodata"), used))
void _bootStart()
{
// turn soft power ON now
RCC->AHB1ENR |= RCC_AHB1ENR_GPIODEN; // Enable portD clock
GPIOD->BSRRL = 1;
GPIOD->MODER = (GPIOD->MODER & 0xFFFFFFFC) | 1;
RCC->AHB1ENR |= RCC_AHB1ENR_GPIOCEN; // Enable portC clock
RCC->AHB1ENR |= RCC_AHB1ENR_GPIOEEN; // Enable portE clock