CH395F 硬件测试完毕

This commit is contained in:
2026-08-24 16:16:18 +08:00
parent fc88bc8752
commit 4375873083
14 changed files with 2183 additions and 787 deletions

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) {