2019-07-23 16:07:06 -06:00
|
|
|
// ******************** Prototypes ********************
|
|
|
|
void puts(const char *a);
|
|
|
|
void puth(unsigned int i);
|
|
|
|
void puth2(unsigned int i);
|
|
|
|
typedef struct board board;
|
|
|
|
typedef struct harness_configuration harness_configuration;
|
|
|
|
void can_flip_buses(uint8_t bus1, uint8_t bus2);
|
|
|
|
void can_set_obd(uint8_t harness_orientation, bool obd);
|
|
|
|
|
|
|
|
// ********************* Globals **********************
|
|
|
|
uint8_t hw_type = 0;
|
|
|
|
const board *current_board;
|
|
|
|
bool is_enumerated = 0;
|
2019-11-21 17:47:49 -07:00
|
|
|
uint32_t heartbeat_counter = 0;
|
2019-12-05 15:19:29 -07:00
|
|
|
uint32_t uptime_cnt = 0;
|
2020-08-17 07:04:01 -06:00
|
|
|
bool siren_enabled = false;
|
2021-01-05 06:51:58 -07:00
|
|
|
bool green_led_enabled = false;
|