mirror of
https://github.com/eddyem/stm32samples.git
synced 2026-05-07 13:26:56 +03:00
...
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user