Cosmetics
This commit is contained in:
@@ -27,9 +27,9 @@
|
|||||||
#include "hal.h"
|
#include "hal.h"
|
||||||
|
|
||||||
PACK(typedef struct {
|
PACK(typedef struct {
|
||||||
uint8_t pcbrev : 2;
|
uint8_t pcbrev:2;
|
||||||
uint8_t sticksPwmDisabled : 1;
|
uint8_t sticksPwmDisabled:1;
|
||||||
uint8_t pxx2Enabled : 1;
|
uint8_t pxx2Enabled:1;
|
||||||
}) HardwareOptions;
|
}) HardwareOptions;
|
||||||
|
|
||||||
extern HardwareOptions hardwareOptions;
|
extern HardwareOptions hardwareOptions;
|
||||||
|
|||||||
@@ -52,8 +52,8 @@ void pwrInit()
|
|||||||
GPIO_InitStructure.GPIO_Pin = PWR_SWITCH_GPIO_PIN;
|
GPIO_InitStructure.GPIO_Pin = PWR_SWITCH_GPIO_PIN;
|
||||||
GPIO_Init(PWR_SWITCH_GPIO, &GPIO_InitStructure);
|
GPIO_Init(PWR_SWITCH_GPIO, &GPIO_InitStructure);
|
||||||
|
|
||||||
// PCBREV
|
|
||||||
#if defined(PCBREV_GPIO_PIN)
|
#if defined(PCBREV_GPIO_PIN)
|
||||||
|
// PCBREV
|
||||||
GPIO_InitStructure.GPIO_Pin = PCBREV_GPIO_PIN;
|
GPIO_InitStructure.GPIO_Pin = PCBREV_GPIO_PIN;
|
||||||
GPIO_Init(PCBREV_GPIO, &GPIO_InitStructure);
|
GPIO_Init(PCBREV_GPIO, &GPIO_InitStructure);
|
||||||
hardwareOptions.pcbrev = PCBREV_VALUE();
|
hardwareOptions.pcbrev = PCBREV_VALUE();
|
||||||
|
|||||||
Reference in New Issue
Block a user