Files
StarPilot/panda/board/main_definitions.h
2026-10-20 02:19:24 +00:00

22 lines
489 B
C

#pragma once
#include "main_declarations.h"
// ********************* Globals **********************
uint8_t hw_type = 0;
board *current_board;
uint32_t uptime_cnt = 0;
uint16_t reset_flags = 0U;
#ifdef STM32F4
uint16_t sound_output_level = 0U;
#endif
// heartbeat state
uint32_t heartbeat_counter = 0;
uint32_t heartbeat_tick_counter = 0; // 8Hz
bool heartbeat_lost = false;
bool heartbeat_disabled = false; // set over USB
// siren state
bool siren_enabled = false;