mirror of https://github.com/commaai/body.git
fix compile on arm-none-eabi 10.3
This commit is contained in:
parent
b46096235f
commit
125fcfd789
|
@ -1,3 +1,4 @@
|
||||||
|
extern uint8_t hw_type;
|
||||||
board_t board;
|
board_t board;
|
||||||
|
|
||||||
void board_detect(void) {
|
void board_detect(void) {
|
||||||
|
|
|
@ -29,6 +29,8 @@
|
||||||
|
|
||||||
#include "flasher.h"
|
#include "flasher.h"
|
||||||
|
|
||||||
|
uint8_t hw_type; // type of the board detected(0 - base, 3 - knee)
|
||||||
|
|
||||||
void __initialize_hardware_early(void) {
|
void __initialize_hardware_early(void) {
|
||||||
early_initialization();
|
early_initialization();
|
||||||
}
|
}
|
||||||
|
|
|
@ -172,6 +172,4 @@ typedef struct {
|
||||||
|
|
||||||
} board_t;
|
} board_t;
|
||||||
|
|
||||||
uint8_t hw_type; // type of the board detected(0 - base, 3 - knee)
|
|
||||||
|
|
||||||
#endif // DEFINES_H
|
#endif // DEFINES_H
|
||||||
|
|
|
@ -23,6 +23,7 @@ USB_Setup_TypeDef;
|
||||||
|
|
||||||
uint32_t *prog_ptr = NULL;
|
uint32_t *prog_ptr = NULL;
|
||||||
bool unlocked = false;
|
bool unlocked = false;
|
||||||
|
extern uint8_t hw_type;
|
||||||
|
|
||||||
#define CAN_BL_INPUT 0x1
|
#define CAN_BL_INPUT 0x1
|
||||||
#define CAN_BL_OUTPUT 0x2
|
#define CAN_BL_OUTPUT 0x2
|
||||||
|
|
|
@ -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 cmdL; // global variable for Left Command
|
||||||
volatile int16_t cmdR; // global variable for Right 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 ignition = 0; // global variable for ignition on SBU2 line
|
||||||
uint8_t charger_connected = 0; // status of the charger port
|
uint8_t charger_connected = 0; // status of the charger port
|
||||||
uint8_t fault_status = 0; // fault status of the whole system
|
uint8_t fault_status = 0; // fault status of the whole system
|
||||||
|
|
Loading…
Reference in New Issue