实现串口驱动,移植方便

This commit is contained in:
冯佳
2026-01-22 16:36:56 +08:00
parent 2ef4dac5bd
commit 51e8d79f78
151 changed files with 4064 additions and 11050 deletions

View File

@ -10,14 +10,16 @@
#ifndef LED_H
#define LED_H
#include "stm32f4xx_hal.h"
#include <stdint.h>
#include <stddef.h>
#include "hal_gpio.h"
/**
* @brief LED configuration structure
*/
typedef struct {
GPIO_TypeDef *gpio_port; /*!< GPIO port */
uint16_t gpio_pin; /*!< GPIO pin */
hal_gpio_port_t gpio_port; /*!< GPIO port */
hal_gpio_pin_t gpio_pin; /*!< GPIO pin */
} led_config_t;
/**