only: pulling most useful fields up
This commit is contained in:
parent
943a5c0d98
commit
f11e52a402
|
@ -29,6 +29,11 @@ struct GpioChip {
|
|||
virtual int readPad(size_t /*pin*/) { return -1; }
|
||||
virtual brain_pin_diag_e getDiag(size_t /*pin*/) { return PIN_OK; }
|
||||
virtual int deinit() { return 0; }
|
||||
|
||||
/* chip needs reinitialization due to some critical issue */
|
||||
bool need_init;
|
||||
int init_cnt;
|
||||
|
||||
};
|
||||
|
||||
int gpiochips_getPinOffset(brain_pin_e pin);
|
||||
|
|
|
@ -158,14 +158,11 @@ struct L9779 : public GpioChip {
|
|||
/* last requested subaddr in case of read */
|
||||
uint8_t last_subaddr;
|
||||
|
||||
/* chip needs reintialization due to some critical issue */
|
||||
bool need_init;
|
||||
|
||||
/* statistic */
|
||||
//int por_cnt;
|
||||
//int wdr_cnt;
|
||||
//int comfe_cnt;
|
||||
int init_cnt;
|
||||
//int init_req_cnt;
|
||||
int spi_cnt;
|
||||
int spi_err_parity; /* parity errors in rx data */
|
||||
|
|
|
@ -248,9 +248,6 @@ struct Tle8888 : public GpioChip {
|
|||
systime_t wwd_ts;
|
||||
systime_t fwd_ts;
|
||||
|
||||
/* chip needs reintialization due to some critical issue */
|
||||
bool need_init;
|
||||
|
||||
/* main relay output */
|
||||
bool mr_manual;
|
||||
|
||||
|
@ -258,7 +255,6 @@ struct Tle8888 : public GpioChip {
|
|||
int por_cnt;
|
||||
int wdr_cnt;
|
||||
int comfe_cnt;
|
||||
int init_cnt;
|
||||
int init_req_cnt;
|
||||
int spi_cnt;
|
||||
uint16_t recentTx;
|
||||
|
|
Loading…
Reference in New Issue