fix compile on arm-none-eabi 10.3

This commit is contained in:
Igor Biletskyy 2022-08-09 17:28:36 -07:00
parent b46096235f
commit 125fcfd789
5 changed files with 5 additions and 2 deletions

View File

@ -1,3 +1,4 @@
extern uint8_t hw_type;
board_t board;
void board_detect(void) {

View File

@ -29,6 +29,8 @@
#include "flasher.h"
uint8_t hw_type; // type of the board detected(0 - base, 3 - knee)
void __initialize_hardware_early(void) {
early_initialization();
}

View File

@ -172,6 +172,4 @@ typedef struct {
} board_t;
uint8_t hw_type; // type of the board detected(0 - base, 3 - knee)
#endif // DEFINES_H

View File

@ -23,6 +23,7 @@ USB_Setup_TypeDef;
uint32_t *prog_ptr = NULL;
bool unlocked = false;
extern uint8_t hw_type;
#define CAN_BL_INPUT 0x1
#define CAN_BL_OUTPUT 0x2

View File

@ -62,6 +62,7 @@ int16_t board_temp_deg_c; // global variable for calibrated temperature i
volatile int16_t cmdL; // global variable for Left Command
volatile int16_t cmdR; // global variable for Right Command
uint8_t hw_type; // type of the board detected(0 - base, 3 - knee)
uint8_t ignition = 0; // global variable for ignition on SBU2 line
uint8_t charger_connected = 0; // status of the charger port
uint8_t fault_status = 0; // fault status of the whole system