2222/* LED Pin */
2323#define LED_PIN_GREEN GET_PIN(16, 6)
2424
25- /* Power Control Pins */
26- #define PIN_ES8388_PWR GET_PIN(16, 2) /* ES8388 power enable */
27- #define PIN_SPEAKER_EN GET_PIN(21, 6) /* Speaker amplifier enable */
28- #define PIN_WIFI_PWR GET_PIN(16, 3) /* WiFi power enable */
29- #define PIN_WIFI_REG GET_PIN(11, 6) /* WiFi register switch */
30- #define PIN_DCDC_CTRL GET_PIN(7, 2) /* 3V3 DCDC power control */
31- #define PIN_LCD_BL GET_PIN(15, 7) /* LCD backlight power */
32- #define PIN_LCD_PWR GET_PIN(15, 6) /* LCD IC power */
33- #define PIN_LCD_PWM GET_PIN(20, 6) /* LCD PWM brightness */
34-
3525/* UI initialization timeout (ms) */
3626#define UI_INIT_TIMEOUT_MS 5000
3727
@@ -42,39 +32,6 @@ extern void xiaozhi_ui_init(void);
4232extern rt_err_t xiaozhi_ui_wait_ready (rt_int32_t timeout );
4333extern void wifi_manager_init (void );
4434
45- /*****************************************************************************
46- * Private Functions
47- *****************************************************************************/
48-
49- /**
50- * @brief Initialize board power control GPIOs
51- * @return 0 on success
52- */
53- static int board_power_init (void )
54- {
55- /* WiFi power */
56- rt_pin_mode (PIN_WIFI_PWR , PIN_MODE_OUTPUT );
57- rt_pin_write (PIN_WIFI_PWR , PIN_HIGH );
58-
59- rt_pin_mode (PIN_WIFI_REG , PIN_MODE_OUTPUT );
60- rt_pin_write (PIN_WIFI_REG , PIN_HIGH );
61-
62- /* Audio power */
63- rt_pin_mode (PIN_ES8388_PWR , PIN_MODE_OUTPUT );
64- rt_pin_write (PIN_ES8388_PWR , PIN_HIGH );
65-
66- rt_pin_mode (PIN_SPEAKER_EN , PIN_MODE_OUTPUT );
67- rt_pin_write (PIN_SPEAKER_EN , PIN_HIGH );
68-
69- /* LCD power */
70- rt_pin_mode (PIN_LCD_BL , PIN_MODE_OUTPUT );
71- rt_pin_mode (PIN_LCD_PWR , PIN_MODE_OUTPUT );
72- rt_pin_mode (PIN_LCD_PWM , PIN_MODE_OUTPUT );
73-
74- return 0 ;
75- }
76- INIT_BOARD_EXPORT (board_power_init );
77-
7835/*****************************************************************************
7936 * Main Entry
8037 *****************************************************************************/
0 commit comments