[Taranis] Warning fixed, backlight working on simu

This commit is contained in:
bsongis@gmail.com
2013-04-13 11:19:58 +00:00
parent 464755e302
commit ebbfb7336e
3 changed files with 2 additions and 3 deletions
+1 -1
View File
@@ -288,7 +288,7 @@ void putPcmHead()
void setupPulsesPXX()
{
uint16_t chan, chan_low;
uint16_t chan=0, chan_low=0;
#if defined(PCBSKY9X)
Serial_byte = 0 ;
-1
View File
@@ -362,7 +362,6 @@ inline void GPIO_Init(GPIO_TypeDef* GPIOx, GPIO_InitTypeDef* GPIO_InitStruct) {
#define GPIO_ResetBits(GPIOx, pin) GPIOx->BSRRL &= ~pin
#define GPIO_IsSet(GPIOx, pin) (GPIOx->BSRRL & pin)
#define RCC_AHB1PeriphClockCmd(...)
#define GPIO_ReadInputDataBit(...) true
#endif
#define configure_pins(...)
+1 -1
View File
@@ -165,7 +165,7 @@ void pwrOff();
#define setBacklight(xx)
#define __BACKLIGHT_ON GPIO_SetBits(GPIOB, GPIO_Pin_BL)
#define __BACKLIGHT_OFF GPIO_ResetBits(GPIOB, GPIO_Pin_BL)
#define IS_BACKLIGHT_ON() GPIO_ReadInputDataBit(GPIOB, GPIO_Pin_BL)
#define IS_BACKLIGHT_ON() GPIO_IsSet(GPIOB, GPIO_Pin_BL)
// USB driver
void usbInit(void);