helping build: sharing same brain_pin_diag_e
This commit is contained in:
parent
b11c241827
commit
7acd36c198
|
@ -243,20 +243,6 @@ typedef enum __attribute__ ((__packed__)) {
|
||||||
#define BRAIN_PIN_TOTAL_PINS (BRAIN_PIN_LAST - GPIOA_0 + 1)
|
#define BRAIN_PIN_TOTAL_PINS (BRAIN_PIN_LAST - GPIOA_0 + 1)
|
||||||
/* Plase keep updating these defines */
|
/* 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__)) {
|
typedef enum __attribute__ ((__packed__)) {
|
||||||
EFI_ADC_NONE = 0,
|
EFI_ADC_NONE = 0,
|
||||||
|
|
||||||
|
|
|
@ -21,6 +21,21 @@
|
||||||
#define PERCENT_MULT 100.0f
|
#define PERCENT_MULT 100.0f
|
||||||
#define PERCENT_DIV 0.01f
|
#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 {
|
typedef enum {
|
||||||
ADC_OFF = 0,
|
ADC_OFF = 0,
|
||||||
ADC_SLOW = 1,
|
ADC_SLOW = 1,
|
||||||
|
|
|
@ -241,21 +241,6 @@ typedef enum __attribute__ ((__packed__)) {
|
||||||
#define BRAIN_PIN_LAST TLE8888_PIN_WAKE
|
#define BRAIN_PIN_LAST TLE8888_PIN_WAKE
|
||||||
#define BRAIN_PIN_TOTAL_PINS (BRAIN_PIN_LAST - GPIOA_0 + 1)
|
#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 #1 PC2 ADC12
|
||||||
* Frankenso analog #2 PC1 ADC11
|
* Frankenso analog #2 PC1 ADC11
|
||||||
|
|
Loading…
Reference in New Issue