generated from hulk/gd32f4xx_template_cmake_vscode
Add PA11 power-hold output (PMOS self-latch keep-alive)
This commit is contained in:
@@ -136,6 +136,15 @@ void usart1_irq_handler(void);
|
||||
|
||||
/******************************************************************************/
|
||||
|
||||
/* >>>>>>>>>>>>>>>>>>>>[POWER HOLD(PMOS 自锁保持脚)]<<<<<<<<<<<<<<<<<<<< */
|
||||
/* PA11:上电保持脚——main 入口即初始化为推挽输出高(先于一切外设初始化),
|
||||
维持 PMOS 导通;复位期间由外部电路(按键/上拉)保持。 */
|
||||
#define PWR_HOLD_RCU RCU_GPIOA
|
||||
#define PWR_HOLD_PORT GPIOA
|
||||
#define PWR_HOLD_PIN GPIO_PIN_11
|
||||
|
||||
/******************************************************************************/
|
||||
|
||||
#define DEBUG_UART USART1
|
||||
|
||||
#endif //BOARD_CONFIG_H
|
||||
|
||||
Reference in New Issue
Block a user