Files
BlindCane/Core/App/config.hpp
chauyin 17d298c782
All checks were successful
Build and Upload Artifact / build and upload-artifact (push) Successful in 19m59s
新增 Hc05 类,支持 HC-05 蓝牙模块的串口通信,增加串口设置波特率函数
2025-05-12 21:57:21 +08:00

25 lines
649 B
C++

#pragma once
#include "stm32h563xx.h"
#include "tim.h"
#include "./Helper/gpio_helper.hpp"
struct Config {
static inline struct {
GpioHelper::Gpio trigger;
TIM_HandleTypeDef* timer;
uint32_t channel;
} kCaptureConfig = {{GPIOA, GPIO_PIN_0}, &htim7, TIM_CHANNEL_1};
static inline UART_HandleTypeDef* kDebugUart = &hcom_uart[COM1];
static inline UART_HandleTypeDef* kDfPlayerUart = &hcom_uart[COM1];
static inline UART_HandleTypeDef* kCanMvUart = &hcom_uart[COM1];
static inline UART_HandleTypeDef* kHc05Uart = &hcom_uart[COM1];
static inline GpioHelper::Gpio kLed = {GPIOB, GPIO_PIN_0};
};