去除头文件中残留的#include "struct_typedef.h"
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
#ifndef BSP_ADC_H
|
||||
#define BSP_ADC_H
|
||||
#include "struct_typedef.h"
|
||||
|
||||
extern void init_vrefint_reciprocal(void);
|
||||
extern fp32 get_temprate(void);
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
#ifndef BSP_BUZZER_H
|
||||
#define BSP_BUZZER_H
|
||||
#include "struct_typedef.h"
|
||||
|
||||
extern void buzzer_on(uint16_t psc, uint16_t pwm);
|
||||
extern void buzzer_off(void);
|
||||
extern void buzzer_note(uint16_t note,float volume);
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
#ifndef BSP_CAN_H
|
||||
#define BSP_CAN_H
|
||||
#include "struct_typedef.h"
|
||||
|
||||
#include "stm32f4xx_hal.h"
|
||||
|
||||
// clang-format off
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
#ifndef BSP_CRC32_H
|
||||
#define BSP_CRC32_H
|
||||
#include "struct_typedef.h"
|
||||
|
||||
extern uint32_t get_crc32_check_sum(uint32_t *data, uint32_t len);
|
||||
extern bool_t verify_crc32_check_sum(uint32_t *data, uint32_t len);
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
#ifndef BSP_DELAY_H
|
||||
#define BSP_DELAY_H
|
||||
#include "struct_typedef.h"
|
||||
|
||||
extern void delay_init(void);
|
||||
extern void delay_us(uint16_t nus);
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
#ifndef BSP_FLASH_H
|
||||
#define BSP_FLASH_H
|
||||
#include "struct_typedef.h"
|
||||
|
||||
/* Base address of the Flash sectors */
|
||||
#define ADDR_FLASH_SECTOR_0 ((uint32_t)0x08000000) /* Base address of Sector 0, 16 Kbytes */
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
#ifndef BSP_FRIC_H
|
||||
#define BSP_FRIC_H
|
||||
#include "struct_typedef.h"
|
||||
|
||||
#define FRIC_UP 1400
|
||||
#define FRIC_DOWN 1320
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
#ifndef BSP_I2C_H
|
||||
#define BSP_I2C_H
|
||||
#include "struct_typedef.h"
|
||||
#include "main.h"
|
||||
|
||||
#define I2C_ACK 1
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
#ifndef BSP_IMU_PWM_H
|
||||
#define BSP_IMU_PWM_H
|
||||
#include "struct_typedef.h"
|
||||
|
||||
extern void imu_pwm_set(uint16_t pwm);
|
||||
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
#ifndef BSP_LASER_H
|
||||
#define BSP_LASER_H
|
||||
#include "struct_typedef.h"
|
||||
|
||||
extern void laser_configuration(void);
|
||||
extern void laser_on(void);
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
#ifndef BSP_LED_H
|
||||
#define BSP_LED_H
|
||||
#include "struct_typedef.h"
|
||||
|
||||
/**
|
||||
* @brief aRGB show
|
||||
@@ -8,8 +7,8 @@
|
||||
* @retval none
|
||||
*/
|
||||
/**
|
||||
* @brief <20><>ʾRGB
|
||||
* @param[in] aRGB:0xaaRRGGBB,'aa' <20><><EFBFBD><CDB8><EFBFBD><EFBFBD>,'RR'<27>Ǻ<EFBFBD>ɫ,'GG'<27><><EFBFBD><EFBFBD>ɫ,'BB'<27><><EFBFBD><EFBFBD>ɫ
|
||||
* @brief <20><>ʾRGB
|
||||
* @param[in] aRGB:0xaaRRGGBB,'aa' <20><><EFBFBD><CDB8><EFBFBD><EFBFBD>,'RR'<27>Ǻ<EFBFBD>ɫ,'GG'<27><><EFBFBD><EFBFBD>ɫ,'BB'<27><><EFBFBD><EFBFBD>ɫ
|
||||
* @retval none
|
||||
*/
|
||||
extern void aRGB_led_show(uint32_t aRGB);
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
#ifndef BSP_SERVO_PWM_H
|
||||
#define BSP_SERVO_PWM_H
|
||||
#include "struct_typedef.h"
|
||||
|
||||
extern void servo_pwm_set(uint16_t pwm, uint8_t i);
|
||||
extern void pump_pwm_set(uint16_t pwm, uint8_t i);
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
#ifndef BSP_RC_H
|
||||
#define BSP_RC_H
|
||||
#include "struct_typedef.h"
|
||||
|
||||
extern void RC_Init(uint8_t *rx1_buf, uint8_t *rx2_buf, uint16_t dma_buf_num);
|
||||
extern void RC_unable(void);
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
#ifndef BSP_RNG_H
|
||||
#define BSP_RNG_H
|
||||
#include "struct_typedef.h"
|
||||
|
||||
extern uint32_t RNG_get_random_num(void);
|
||||
extern int32_t RNG_get_random_rangle(int min, int max);
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
#ifndef BSP_SPI_H
|
||||
#define BSP_SPI_H
|
||||
#include "struct_typedef.h"
|
||||
#include "stm32f4xx_hal.h"
|
||||
|
||||
extern SPI_HandleTypeDef hspi2;
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
#ifndef BSP_UART_H
|
||||
#define BSP_UART_H
|
||||
#include "stm32f4xx_hal.h"
|
||||
#include "struct_typedef.h"
|
||||
#include "usart.h"
|
||||
|
||||
typedef UART_HandleTypeDef huart_t;
|
||||
|
||||
@@ -1,7 +1,5 @@
|
||||
#ifndef BSP_USART_H
|
||||
#define BSP_USART_H
|
||||
#include "struct_typedef.h"
|
||||
|
||||
|
||||
extern void usart6_init(uint8_t *rx1_buf, uint8_t *rx2_buf, uint16_t dma_buf_num);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user