This commit is contained in:
Edward Emelianov
2026-04-11 00:26:47 +03:00
parent 9ef62c0d4d
commit 56701d6ef6
8 changed files with 220 additions and 17 deletions

View File

@@ -20,6 +20,9 @@
#include <stm32f1.h>
// amount of connected sensors
#define SENSORS_AMOUNT 2
// LED0 - PC13 (bluepill), blinking each second
#define LED0_port GPIOC
#define LED0_pin (1<<13)
@@ -41,5 +44,14 @@
// INT pins: PA0/PA1
#define CHK_INT(x) ((GPIOA->IDR & (1<<x)) ? 1 : 0)
enum{
DISPLCO_NOTHING,
DISPLCO_TRCO,
DISPLCO_SRCO,
DISPLCO_LCO
};
extern uint8_t DISPLCO[SENSORS_AMOUNT];
void hw_setup();
void iwdg_setup();