/*---------------------------------------------------------------------------- * Copyright (c) TJD Technologies Co., Ltd. 2025. All rights reserved. * * Description: common_pm_port.h * * Author: luziquan@ss-tjd.com * * Create: 2024-05-29 *--------------------------------------------------------------------------*/ #ifndef COMMON_PM_PORT_H #define COMMON_PM_PORT_H #include "stdint.h" #include "platform_core.h" // 总电源 #define MASTER_DCDC_GPIO_PIN S_AGPIO_L11 // 屏幕 TP MSENSOR电源 #define NORMAL_LDO_GPIO_PIN S_AGPIO_L12 // GPS电源 #define GPS_POWER_GPIO_PIN S_AGPIO_L19 // 支付IC电源 #define ALIPAY_LDO_GPIO_PIN S_MGPIO5 // 心率电源 #define HR_LDO_GPIO_PIN S_AGPIO_R2 void power_manager_gpio_init(void); uint8_t power_manager_gpio_set_dir(uint32_t gpio_pin, uint8_t dir); uint8_t power_manager_gpio_set(uint32_t gpio_pin, uint8_t value); uint8_t power_manager_gpio_get(uint32_t gpio_pin); #endif