Skip to content

Commit bd4037f

Browse files
author
sw1
committed
Ref |>[drv] adapt lcd and backlight to new hardware
1 parent fd04a1b commit bd4037f

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

customer/boards/sf32lb52-lcd_base/bsp_pinmux.c

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -216,8 +216,6 @@ static void BSP_PIN_Common(void)
216216
// SPI1(TF card)
217217
HAL_PIN_Set(PAD_PA24, SPI1_DIO, PIN_NOPULL, 1);
218218
HAL_PIN_Set(PAD_PA25, SPI1_DI, PIN_PULLDOWN, 1);
219-
HAL_PIN_Set(PAD_PA28, SPI1_CLK, PIN_NOPULL, 1);
220-
HAL_PIN_Set(PAD_PA29, SPI1_CS, PIN_NOPULL, 1);
221219

222220
// HAL_PIN_Set_DS0(PAD_PA24, 1, 1);
223221
// HAL_PIN_Set_DS0(PAD_PA25, 1, 1);
@@ -260,7 +258,10 @@ static void BSP_PIN_Common(void)
260258
HAL_PIN_Set(PAD_PA36, GPIO_A36, PIN_PULLUP, 1);
261259
HAL_PIN_Set(PAD_PA37, GPIO_A37, PIN_PULLUP, 1);
262260

263-
HAL_PIN_Set(PAD_PA44, GPIO_A44, PIN_PULLUP, 1);//IOE_RST
261+
//pwd bl
262+
HAL_PIN_Set(PAD_PA28, GPTIM1_CH2, PIN_NOPULL, 1);
263+
HAL_PIN_Set(PAD_PA29, GPTIM1_CH3, PIN_NOPULL, 1);
264+
HAL_PIN_Set(PAD_PA44, GPTIM1_CH4, PIN_NOPULL, 1);
264265
}
265266

266267
void BSP_PIN_Touch(void)

example/rt_device/i2c/eeprom/src/hcpu/drv_lcd.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ void lcd_init(void)
6868
//HAL_PIN_Set(PAD_PA25, GPIO_A25, PIN_NOPULL, 1);*/
6969

7070
//2. enable power
71-
ioexp_pin_set(LCD_PWR_EN, IOEXP_LOW);
71+
//ioexp_pin_set(LCD_PWR_EN, IOEXP_LOW);
7272

7373
//3. init lcd ctrl
7474
lcd_device = rt_device_find("lcd");

example/rt_device/i2c/eeprom/src/hcpu/main.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
#include "app_ble.h"
2020
//#include "drv_pm.h"
2121
#include "drv_otp.h"
22+
#include "drv_bl.h"
2223

2324
#define DBG_TAG "PebbleTest"
2425
#define DBG_LVL DBG_LOG
@@ -56,6 +57,7 @@ int main(void)
5657
npm1300_init();
5758
aw86225_init();
5859
lcd_init();
60+
bl_init();
5961
eta4662_init();
6062
battery_init();
6163
key_init();

0 commit comments

Comments
 (0)