[Taranis] More stuff moved to hal

This commit is contained in:
bsongis
2015-06-16 22:44:10 +02:00
parent bbdadf57e7
commit 5764cdee57
16 changed files with 440 additions and 535 deletions
+4 -4
View File
@@ -270,10 +270,10 @@ uint32_t pwrPressedDuration(void);
#define backlightDisable() turnBacklightOff()
#define isBacklightEnable() ((BACKLIGHT_TIMER->CCR4 != 0) || (BACKLIGHT_TIMER->CCR2 != 0))
#else
#define setBacklight(xx) TIM10->CCR1 = 100-xx
#define backlightEnable() TIM10->CCR1 = 100-g_eeGeneral.backlightBright
#define backlightDisable() TIM10->CCR1 = 0
#define isBacklightEnable() (TIM10->CCR1 != 0)
#define setBacklight(xx) BACKLIGHT_TIMER->CCR1 = 100-xx
#define backlightEnable() BACKLIGHT_TIMER->CCR1 = 100-g_eeGeneral.backlightBright
#define backlightDisable() BACKLIGHT_TIMER->CCR1 = 0
#define isBacklightEnable() (BACKLIGHT_TIMER->CCR1 != 0)
#endif
// USB driver