2024-05-17 01:57:18 +08:00
|
|
|
#include <stdio.h>
|
|
|
|
|
|
|
|
|
|
#include <stdint.h>
|
|
|
|
|
#include <unistd.h>
|
|
|
|
|
#include "by_cmd.h"
|
|
|
|
|
#include "logc/log.h"
|
|
|
|
|
|
2024-05-17 23:45:53 +08:00
|
|
|
#include "by_serial.h"
|
|
|
|
|
|
2024-05-17 01:57:18 +08:00
|
|
|
char test_data[] = "hello world\r\n";
|
|
|
|
|
char buff[20] = {0};
|
|
|
|
|
|
|
|
|
|
uint8_t cmd_temp;
|
|
|
|
|
uint32_t buff_temp[20];
|
|
|
|
|
|
|
|
|
|
int main(int argc, char **argv)
|
|
|
|
|
{
|
2024-05-17 23:45:53 +08:00
|
|
|
if (by_cmd_init()) {
|
|
|
|
|
log_error("Program exits abnormally");
|
|
|
|
|
return -1;
|
|
|
|
|
}
|
2024-05-17 01:57:18 +08:00
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
|
}
|