# CP56TIME2A **Repository Path**: Cation_git/cp56-time2-a ## Basic Information - **Project Name**: CP56TIME2A - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2025-10-19 - **Last Updated**: 2025-10-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README CP56TIME2A 时间帧组件测试用例 使用步骤 使用`make`编译后用`run`指令运行 ``` make make run ``` 或者直接运行output文件夹中的`.exe`文件 期望的输出结果为如下 ``` Cp56time2a : 1509010A5FA1E3 Year : 21 month : 9 mday : 1 wday : 0 hour : 10 min : 31 msec : 41443 ``` 具体内容参考代码 针对硬件移植部分做了以下接口,后续可对接实际串口 ```c static int drv_write(st_cp56time2a *Cp56time2a); static int drv_read(st_cp56time2a *Cp56time2a); static void drv_open(st_cp56time2a *Cp56time2a); static void drv_close(st_cp56time2a *Cp56time2a); ``` 另外考虑到串口收发的问题,占用用`time`成员做为收发用的变量,然后用`Compts`解析数据 ```c #define useBuff void UART_SEND() { for(int i = 0;i < SIZE;i++) { HAL_UART_Send(Time[i]); } } ```