feat: 增加简单串口通信帧发送解析功能
This commit is contained in:
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user