fixed LEDs
This commit is contained in:
@ -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;
|
||||
|
||||
@ -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 ---------------------------------------------*/
|
||||
|
||||
Reference in New Issue
Block a user