[X9D] Backlight support on simu

This commit is contained in:
bsongis
2012-12-28 08:20:22 +00:00
parent 7eae709938
commit 3d92371570
10 changed files with 27 additions and 62 deletions
+4 -1
View File
@@ -109,6 +109,9 @@ uint32_t check_soft_power();
#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() (GPIOB & GPIO_Pin_BL)
#define IS_BACKLIGHT_ON() GPIO_IsSet(GPIOB, GPIO_Pin_BL)
#define udelay(x) do { uint32_t temp; temp=((x+0)<<3); while(--temp); } while (0)
#define delayUsec(x) udelay(x)
#endif