VC++ compilation

This commit is contained in:
Kilrah
2019-05-13 22:07:31 +02:00
parent 9049723c78
commit 00f68dadd2
+8 -6
View File
@@ -142,14 +142,16 @@ void delay_ms(uint32_t ms);
#define IS_FIRMWARE_COMPATIBLE_WITH_BOARD() (!IS_HORUS_PROD()) #define IS_FIRMWARE_COMPATIBLE_WITH_BOARD() (!IS_HORUS_PROD())
#endif #endif
// Hardware options
PACK(typedef struct
{
#if NUM_PWMSTICKS > 0 #if NUM_PWMSTICKS > 0
uint8_t sticksPwmDisabled:1; PACK(typedef struct {
#endif uint8_t sticksPwmDisabled : 1;
uint8_t pxx2Enabled:1; uint8_t pxx2Enabled : 1;
}) HardwareOptions; }) HardwareOptions;
#else
PACK(typedef struct {
uint8_t pxx2Enabled : 1;
}) HardwareOptions;
#endif
extern HardwareOptions hardwareOptions; extern HardwareOptions hardwareOptions;