Cosmetics

This commit is contained in:
Bertrand Songis
2016-06-15 19:58:19 +02:00
parent 370f954e10
commit de52ee513c
+5 -5
View File
@@ -2,7 +2,7 @@
* Copyright (C) OpenTX * Copyright (C) OpenTX
* *
* Based on code named * Based on code named
* th9x - http://code.google.com/p/th9x * th9x - http://code.google.com/p/th9x
* er9x - http://code.google.com/p/er9x * er9x - http://code.google.com/p/er9x
* gruvin9x - http://code.google.com/p/gruvin9x * gruvin9x - http://code.google.com/p/gruvin9x
* *
@@ -18,8 +18,8 @@
* GNU General Public License for more details. * GNU General Public License for more details.
*/ */
#include "../../pwr.h" #include "pwr.h"
#include "../horus/board_horus.h" #include "board_horus.h"
void pwrInit() void pwrInit()
{ {
@@ -85,7 +85,7 @@ void pwrResetHandler()
{ {
RCC->AHB1ENR |= RCC_AHB1ENR_GPIOJEN; RCC->AHB1ENR |= RCC_AHB1ENR_GPIOJEN;
// these two NOPs are needed (see STM32F errata sheet) before the peripheral // these two NOPs are needed (see STM32F errata sheet) before the peripheral
// register can be written after the peripheral clock was enabled // register can be written after the peripheral clock was enabled
__ASM volatile ("nop"); __ASM volatile ("nop");
__ASM volatile ("nop"); __ASM volatile ("nop");
@@ -94,7 +94,7 @@ void pwrResetHandler()
// or software reset. If the radio was started by user pressing the power button // or software reset. If the radio was started by user pressing the power button
// then that button is providing power and we don't need to enable it here. // then that button is providing power and we don't need to enable it here.
// //
// If we were to turn it on here indiscriminately, then the radio can go into the // If we were to turn it on here indiscriminately, then the radio can go into the
// power on/off loop after being powered off by the user. (issue #2790) // power on/off loop after being powered off by the user. (issue #2790)
if (WAS_RESET_BY_WATCHDOG_OR_SOFTWARE()) { if (WAS_RESET_BY_WATCHDOG_OR_SOFTWARE()) {
GPIO_InitTypeDef GPIO_InitStructure; GPIO_InitTypeDef GPIO_InitStructure;