You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
275 B
15 lines
275 B
|
|
#pragma once
|
|
#include <stdint.h>
|
|
#include "usart.h"
|
|
|
|
#define BUF_MAX_LEN 256
|
|
|
|
typedef struct {
|
|
uint8_t date[BUF_MAX_LEN];
|
|
uint16_t len;
|
|
} packet_t;
|
|
|
|
void tjc_uart_receive(void);
|
|
void tjc_date_pack(packet_t* packet);
|
|
void tjc_receive_init(UART_HandleTypeDef* uart);
|