[all] Many little fixes

This commit is contained in:
bsongis
2013-02-09 17:51:27 +00:00
parent a90f09c4dd
commit ac2fd120dc
5 changed files with 39 additions and 22 deletions
+1 -1
View File
@@ -186,7 +186,7 @@ uint32_t sdMounted();
#endif
// Backlight driver
#define setBacklight(xx) PWM->PWM_CH_NUM[0].PWM_CDTYUPD = xx
#define setBacklight(xx) (PWM->PWM_CH_NUM[0].PWM_CDTYUPD = xx)
#define __BACKLIGHT_ON (PWM->PWM_CH_NUM[0].PWM_CDTY = g_eeGeneral.backlightBright)
#define __BACKLIGHT_OFF (PWM->PWM_CH_NUM[0].PWM_CDTY = 100)
#define IS_BACKLIGHT_ON() (PWM->PWM_CH_NUM[0].PWM_CDTY != 100)