helping build: sharing same brain_pin_diag_e
This commit is contained in:
parent
5d5648f38d
commit
c7ea8c6e03
|
@ -237,20 +237,6 @@ typedef enum __attribute__ ((__packed__)) {
|
|||
#define BRAIN_PIN_LAST DRV8860_PIN_16
|
||||
#define BRAIN_PIN_TOTAL_PINS (BRAIN_PIN_LAST - GPIOA_0 + 1)
|
||||
|
||||
/* diagnostic for brain pins
|
||||
* can be combination of few bits
|
||||
* defined as bit mask */
|
||||
typedef enum __attribute__ ((__packed__))
|
||||
{
|
||||
PIN_OK = 0,
|
||||
PIN_OPEN = 0x01,
|
||||
PIN_SHORT_TO_GND = 0x02,
|
||||
PIN_SHORT_TO_BAT = 0x04,
|
||||
PIN_OVERLOAD = 0x08,
|
||||
PIN_DRIVER_OVERTEMP = 0x10,
|
||||
PIN_INVALID = 0x80
|
||||
} brain_pin_diag_e;
|
||||
|
||||
typedef enum __attribute__ ((__packed__)) {
|
||||
EFI_ADC_NONE = 0,
|
||||
|
||||
|
|
|
@ -146,20 +146,6 @@ typedef enum __attribute__ ((__packed__)) {
|
|||
#define BRAIN_PIN_LAST TLE6240_PIN_16
|
||||
#define BRAIN_PIN_TOTAL_PINS (BRAIN_PIN_LAST - GPIOA_0 + 1)
|
||||
|
||||
/* diagnostic for brain pins
|
||||
* can be combination of few bits
|
||||
* defined as bit mask */
|
||||
typedef enum __attribute__ ((__packed__))
|
||||
{
|
||||
PIN_OK = 0,
|
||||
PIN_OPEN = 0x01,
|
||||
PIN_SHORT_TO_GND = 0x02,
|
||||
PIN_SHORT_TO_BAT = 0x04,
|
||||
PIN_OVERLOAD = 0x08,
|
||||
PIN_DRIVER_OVERTEMP = 0x10,
|
||||
PIN_INVALID = 0x80
|
||||
} brain_pin_diag_e;
|
||||
|
||||
typedef enum __attribute__ ((__packed__)) {
|
||||
EFI_ADC_NONE = 0,
|
||||
|
||||
|
|
|
@ -243,20 +243,6 @@ typedef enum __attribute__ ((__packed__)) {
|
|||
#define BRAIN_PIN_TOTAL_PINS (BRAIN_PIN_LAST - GPIOA_0 + 1)
|
||||
/* Plase keep updating these defines */
|
||||
|
||||
/* diagnostic for brain pins
|
||||
* can be combination of few bits
|
||||
* defined as bit mask */
|
||||
typedef enum __attribute__ ((__packed__))
|
||||
{
|
||||
PIN_OK = 0,
|
||||
PIN_OPEN = 0x01,
|
||||
PIN_SHORT_TO_GND = 0x02,
|
||||
PIN_SHORT_TO_BAT = 0x04,
|
||||
PIN_OVERLOAD = 0x08,
|
||||
PIN_DRIVER_OVERTEMP = 0x10,
|
||||
PIN_INVALID = 0x80
|
||||
} brain_pin_diag_e;
|
||||
|
||||
typedef enum __attribute__ ((__packed__)) {
|
||||
EFI_ADC_NONE = 0,
|
||||
|
||||
|
|
|
@ -21,6 +21,21 @@
|
|||
#define PERCENT_MULT 100.0f
|
||||
#define PERCENT_DIV 0.01f
|
||||
|
||||
/* diagnostic for brain pins
|
||||
* can be combination of few bits
|
||||
* defined as bit mask */
|
||||
typedef enum __attribute__ ((__packed__))
|
||||
{
|
||||
PIN_OK = 0,
|
||||
PIN_OPEN = 0x01,
|
||||
PIN_SHORT_TO_GND = 0x02,
|
||||
PIN_SHORT_TO_BAT = 0x04,
|
||||
PIN_OVERLOAD = 0x08,
|
||||
PIN_DRIVER_OVERTEMP = 0x10,
|
||||
PIN_DRIVER_OFF = 0x20,
|
||||
PIN_INVALID = 0x80
|
||||
} brain_pin_diag_e;
|
||||
|
||||
typedef enum {
|
||||
ADC_OFF = 0,
|
||||
ADC_SLOW = 1,
|
||||
|
|
|
@ -241,21 +241,6 @@ typedef enum __attribute__ ((__packed__)) {
|
|||
#define BRAIN_PIN_LAST TLE8888_PIN_WAKE
|
||||
#define BRAIN_PIN_TOTAL_PINS (BRAIN_PIN_LAST - GPIOA_0 + 1)
|
||||
|
||||
/* diagnostic for brain pins
|
||||
* can be combination of few bits
|
||||
* defined as bit mask */
|
||||
typedef enum __attribute__ ((__packed__))
|
||||
{
|
||||
PIN_OK = 0,
|
||||
PIN_OPEN = 0x01,
|
||||
PIN_SHORT_TO_GND = 0x02,
|
||||
PIN_SHORT_TO_BAT = 0x04,
|
||||
PIN_OVERLOAD = 0x08,
|
||||
PIN_DRIVER_OVERTEMP = 0x10,
|
||||
PIN_DRIVER_OFF = 0x20,
|
||||
PIN_INVALID = 0x80
|
||||
} brain_pin_diag_e;
|
||||
|
||||
/**
|
||||
* Frankenso analog #1 PC2 ADC12
|
||||
* Frankenso analog #2 PC1 ADC11
|
||||
|
|
Loading…
Reference in New Issue