Files
BlindCane/Core/App/config.hpp
chauyinn 3f2e7bf019
All checks were successful
Build and Upload Artifact / build and upload-artifact (push) Successful in 20m2s
新增 CommonCenter 类和 Config 结构体,提供超声波测距功能的配置和实例化支持
2025-05-10 18:23:47 +08:00

15 lines
303 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};
};