feat: 增加简单串口通信帧发送解析功能

This commit is contained in:
bmy
2024-04-23 00:12:07 +08:00
parent 6c640c8338
commit 7123fb2f25
6 changed files with 537 additions and 351 deletions

View File

@@ -33,6 +33,7 @@
#include "eeprom.h"
#include "by_debug.h"
#include "by_crc16.h"
#include "by_frame.h"
/* add user code end private includes */
/* private typedef -----------------------------------------------------------*/
@@ -66,10 +67,10 @@
/* add user code end 0 */
/**
* @brief main function.
* @param none
* @retval none
*/
* @brief main function.
* @param none
* @retval none
*/
int main(void)
{
/* add user code begin 1 */
@@ -137,12 +138,15 @@ int main(void)
flash_ee_init();
LOGD("eeprom init done");
/* frame init */
by_frame_init();
LOGD("frame init done");
LOGI("init done");
/* add user code end 2 */
while(1)
{
while (1) {
/* add user code begin 3 */
// DWT_Delay(1000000);
/* add user code end 3 */