Issue 166 continued (2nd 3-pos switch)

Issue 177 fixed (Vario range)
Halcyon again selectable
This commit is contained in:
bsongis
2013-01-22 20:15:59 +00:00
parent a626ea2ceb
commit a599e6da11
25 changed files with 209 additions and 172 deletions
+12 -7
View File
@@ -39,11 +39,6 @@
#include "board.h"
#include "audio_driver.h"
extern "C" {
extern void init_SDcard();
extern void sdInit();
}
#if defined(REVA)
#define GPIO_BUTTON_MENU PIOB->PIO_PDSR
#define GPIO_BUTTON_EXIT PIOA->PIO_PDSR
@@ -72,8 +67,6 @@ extern void sdInit();
#define PIN_BUTTON_LEFT 0x00000008
#endif
#define sdPoll10ms()
void usbMassStorage();
#define PIN_ENABLE 0x001
@@ -134,6 +127,18 @@ extern uint16_t sessionTimer;
void setSticksGain(uint8_t gains);
// SD driver
#if !defined(SIMU)
#define sdPoll10ms()
void sdMountPoll();
extern "C" {
void init_SDcard();
void sdInit();
uint32_t sd_card_ready();
uint32_t sdMounted();
}
#endif
// WDT driver
#if !defined(SIMU)
#define wdt_disable()
+14
View File
@@ -229,6 +229,20 @@ uint32_t switchState(EnumKeys enuk)
xxx = ~c & 0x00000800; // SW_IDL2 PC11
break;
#if 0
case SW_ID3:
result = (calibratedStick[POT1+EXTRA_3POS-1] < 0);
break;
case SW_ID4:
result = (calibratedStick[POT1+EXTRA_3POS-1] == 0);
break;
case SW_ID5:
result = (calibratedStick[POT1+EXTRA_3POS-1] > 0);
break;
#endif
case SW_GEA:
xxx = c & 0x00010000; // SW_GEAR PC16
break;