Initial commit - sync AliceRC to Gitea

This commit is contained in:
2026-08-03 15:54:25 +08:00
commit 493b7d81d7
1510 changed files with 185319 additions and 0 deletions
+17
View File
@@ -0,0 +1,17 @@
/**
* @file adc.h
* @brief ADC 单通道查询 (电池电压检测)
*/
#ifndef __ADC_H
#define __ADC_H
#include "stc8h.h"
#include <stdint.h>
void adc_init(void);
uint16_t adc_read(uint8_t ch); /* ch = 0..15 (通道号) */
/* 计算电池电压 (mV),需要根据实际分压电路 */
uint16_t battery_read_mv(void);
#endif