[Taranis] Backlight brightness. Thanks to Mike for the low level code!

This commit is contained in:
bsongis@gmail.com
2013-07-23 20:11:56 +00:00
parent afe979d51f
commit 6fc96cb786
18 changed files with 239 additions and 226 deletions
+4 -4
View File
@@ -159,10 +159,10 @@ void pwrOff();
#define EXTERNAL_RF_OFF() GPIO_ResetBits(GPIOPWR, PIN_EXT_RF_PWR)
// Backlight driver
#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 setBacklight(xx) TIM10->CCR1 = xx
#define __BACKLIGHT_ON TIM10->CCR1 = 100-g_eeGeneral.backlightBright
#define __BACKLIGHT_OFF TIM10->CCR1 = 0
#define IS_BACKLIGHT_ON() (TIM10->CCR1 != 0)
// USB driver
#define BOOTLOADER_REQUEST() (0)