CH395F 硬件测试完毕

This commit is contained in:
2026-08-24 16:16:18 +08:00
parent c2fb2d9359
commit 572313d430
14 changed files with 2183 additions and 787 deletions
+4 -2
View File
@@ -1222,10 +1222,11 @@ uint16_t ch395f_get_recv_len(uint8_t sock) {
}
/*
* 函数功能:获取全局中断状态(2字节版,支持Socket 0~7)
* 函数功能:获取并清除全局中断状态(2字节版,支持Socket 0~7)
* 返回值:中断状态 uint16_t(低字节 = Socket 0~3 + PHY/DHCP,
* 高字节 = Socket 4~7 + DHCPv6)
* 限定条件:芯片已初始化
* 注意事项:读取后就自动清除全局中断状态了
*/
uint16_t ch395f_get_glob_int_status_all(void) {
uint16_t status;
@@ -1240,9 +1241,10 @@ uint16_t ch395f_get_glob_int_status_all(void) {
}
/*
* 函数功能:获取Socket中断状态
* 函数功能:获取并清除 Socket 中断状态
* 入口参数:sock - Socket索引 uint8_t 0 - 7
* 返回值:Socket中断状态字节 uint8_t
* 注意事项:读取后就自动清除 Socket 中断
* 限定条件:芯片已初始化
*/
uint8_t ch395f_get_sock_int_status(uint8_t sock) {