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
+15
View File
@@ -228,6 +228,21 @@ void disable_dsm2(uint32_t port);
#define isBacklightEnable() (PWM->PWM_CH_NUM[0].PWM_CDTY != 100)
// ADC driver
enum Analogs {
STICK1,
STICK2,
STICK3,
STICK4,
POT1,
POT2,
POT3,
POT_LAST = POT3,
TX_VOLTAGE,
#if !defined(REVA)
TX_CURRENT,
#endif
NUMBER_ANALOG
};
void adcInit();
void adcRead(void);
inline uint16_t getAnalogValue(uint32_t value);