docs: consolidate project documentation
This commit is contained in:
@@ -295,21 +295,23 @@ EN,LPORT,RIP,RPORT,UART
|
||||
3. `flash_bytes = 57404`
|
||||
4. `ram_bytes = 20440`
|
||||
|
||||
## 七、主循环实现方向
|
||||
## 七、主循环实现路径
|
||||
|
||||
主循环仍保持裸机轮询风格:
|
||||
|
||||
```c
|
||||
while (1)
|
||||
{
|
||||
config_poll();
|
||||
uart_trans_poll();
|
||||
ethernetif_poll();
|
||||
ethernetif_check_link();
|
||||
sys_check_timeouts();
|
||||
tcp_link_poll();
|
||||
uart_mux_poll();
|
||||
config_poll();
|
||||
|
||||
route_dispatch();
|
||||
App_StopLinksIfNeeded();
|
||||
App_StartLinksIfNeeded();
|
||||
App_RouteRawUartTraffic();
|
||||
App_RouteMuxUartTraffic();
|
||||
App_RouteTcpTraffic();
|
||||
|
||||
if (reset_requested) {
|
||||
NVIC_SystemReset();
|
||||
@@ -317,11 +319,11 @@ while (1)
|
||||
}
|
||||
```
|
||||
|
||||
下一阶段实现要求:
|
||||
当前实现要求:
|
||||
|
||||
1. 统一由 `LINK[idx]` 驱动实例状态
|
||||
2. 统一由 `MUX` 决定数据口承载模式
|
||||
3. 统一由 `route_dispatch()` 按 `SRCID / DSTMASK` 分发
|
||||
3. RAW 路由与 MUX 路由分别由 `App_RouteRawUartTraffic()`、`App_RouteMuxUartTraffic()`、`App_RouteTcpTraffic()` 执行
|
||||
|
||||
## 八、实现边界
|
||||
|
||||
|
||||
Reference in New Issue
Block a user