Реализована инциализация GPIOB11 и USART3
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
#pragma once
|
||||
|
||||
#ifndef LIDAR_H
|
||||
#define LIDAR_H
|
||||
|
||||
#include "stm32g431xx.h"
|
||||
|
||||
typedef struct
|
||||
{
|
||||
uint8_t header1; // 0x59
|
||||
uint8_t header2; // 0x59
|
||||
uint8_t distance_l; // cm
|
||||
uint8_t distance_h; // cm
|
||||
uint8_t strength_l;
|
||||
uint8_t strength_h;
|
||||
uint8_t temp_l;
|
||||
uint8_t temp_h;
|
||||
uint8_t checksum;
|
||||
} lidar_data;
|
||||
|
||||
void lidar_init();
|
||||
void lidar_update();
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user