fixed LEDs

This commit is contained in:
2025-06-18 19:39:13 +02:00
parent cdd7163db1
commit bf4e1cda68
8 changed files with 5178 additions and 5190 deletions

View File

@ -16,13 +16,13 @@
typedef union {
struct {
uint8_t ts_inactive : 1;
uint8_t ts_active : 1;
uint8_t ts_precharge : 1;
uint8_t ts_discharge : 1;
uint8_t ts_error : 1;
uint8_t ts_state : 1;
uint8_t NC1 : 1;
uint8_t NC2 : 1;
uint8_t NC3 : 1;
uint8_t NC4 : 1;
uint8_t NC5 : 1;
uint8_t NC6 : 1;
uint8_t sdc_closed : 1;
};
uint8_t ams_rx;

View File

@ -55,6 +55,12 @@ extern "C" {
#define R2D_INIT_STAGE1 0x06
#define R2D_INIT_STAGE2 0x07
#define R2D_INIT_SUCCESS 0x0F
#define TS_INACTIVE 0x00
#define TS_ACTIVE 0x01
#define TS_PRECHARGE 0x02
#define TS_DISCHARGE 0x03
#define TS_ERROR 0x04
/* USER CODE END EM */
/* Exported functions prototypes ---------------------------------------------*/