Horus board tested OK

This commit is contained in:
Bertrand Songis
2015-12-23 18:59:16 +01:00
parent d02d0f26db
commit 1a308b0a53
3 changed files with 6 additions and 4 deletions
+2 -1
View File
@@ -204,6 +204,7 @@ uint32_t readTrims(void);
#define DBLKEYS_PRESSED_UP_DWN(in) ((in & (KEYS_GPIO_PIN_UP + KEYS_GPIO_PIN_DOWN)) == (KEYS_GPIO_PIN_UP + KEYS_GPIO_PIN_DOWN))
#define DBLKEYS_PRESSED_RGT_UP(in) ((in & (KEYS_GPIO_PIN_RIGHT + KEYS_GPIO_PIN_UP)) == (KEYS_GPIO_PIN_RIGHT + KEYS_GPIO_PIN_UP))
#define DBLKEYS_PRESSED_LFT_DWN(in) ((in & (KEYS_GPIO_PIN_LEFT + KEYS_GPIO_PIN_DOWN)) == (KEYS_GPIO_PIN_LEFT + KEYS_GPIO_PIN_DOWN))
extern int32_t rotencValue;
void checkRotaryEncoder(void);
// WDT driver
@@ -235,7 +236,7 @@ enum Analogs {
MOUSE2,
NUMBER_ANALOG
};
extern uint16_t adcValues[NUMBER_ANALOG];
void adcInit(void);
void adcRead(void);
uint16_t getAnalogValue(uint32_t value);
+1 -1
View File
@@ -105,7 +105,7 @@ uint8_t keyDown()
return readKeys();
}
rotenc_t rotencValue;
int32_t rotencValue;
void checkRotaryEncoder()
{
static uint32_t Rotary_position;