Switch to CMake - Taranis bootloader added. Tests done.

This commit is contained in:
Bertrand Songis
2015-12-23 18:39:02 +01:00
parent 356faefb6d
commit d02d0f26db
14 changed files with 215 additions and 120 deletions
+19
View File
@@ -217,6 +217,25 @@ void watchdogInit(unsigned int duration);
#endif
// ADC driver
enum Analogs {
STICK1,
STICK2,
STICK3,
STICK4,
POT1,
POT2,
POT3,
POT_LAST=POT3,
SLIDER1,
SLIDER2,
SLIDER3,
SLIDER4,
TX_VOLTAGE,
MOUSE1,
MOUSE2,
NUMBER_ANALOG
};
void adcInit(void);
void adcRead(void);
uint16_t getAnalogValue(uint32_t value);