加入API

This commit is contained in:
不吃油炸鸡
2025-12-05 15:31:18 +08:00
parent ac6cf5bfd2
commit 0126db2f93
2 changed files with 11 additions and 3 deletions

View File

@@ -171,7 +171,7 @@ bool fusb302_timer(void)
bool is_power_ready(void) { return app_pd.status_power == STATUS_POWER_TYP; }
bool is_PPS_ready(void) { return app_pd.status_power == STATUS_POWER_PPS; }
void send_power_request(void) { app_pd.send_request = 1; }
uint8_t fusb302_dev_init(void) {
fusb302_dev.i2c_address = 0x22<<1; // FUSB302 I2C address