mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-10-28 00:53:45 +08:00
22 lines
489 B
C
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;
|