Реализован обработчик прерывания USART3
This commit is contained in:
@@ -5,6 +5,9 @@
|
||||
|
||||
#include "stm32g431xx.h"
|
||||
|
||||
#define USART3_START_BYTE 0x59
|
||||
#define USART3_FRAME_SIZE 9
|
||||
|
||||
typedef struct
|
||||
{
|
||||
uint8_t header1; // 0x59
|
||||
@@ -16,7 +19,7 @@ typedef struct
|
||||
uint8_t temp_l;
|
||||
uint8_t temp_h;
|
||||
uint8_t checksum;
|
||||
} lidar_data;
|
||||
} lidar_data_buf;
|
||||
|
||||
void lidar_init();
|
||||
void lidar_update();
|
||||
|
||||
Reference in New Issue
Block a user