修改编译器的类型支持,将老旧的struct_typedef替换为新的stdint-gcc.h

This commit is contained in:
NeoZeng
2022-11-19 15:34:15 +08:00
parent 6c56d4d19f
commit 1dc8622f53
14 changed files with 77 additions and 103 deletions

View File

@@ -1,10 +1,11 @@
#ifndef BSP_BUZZER_H
#define BSP_BUZZER_H
#include "struct_typedef.h"
#include <stdint-gcc.h>
#include <stdint.h>
void buzzer_init();
extern void buzzer_on(uint16_t psc, uint16_t pwm,uint8_t level);
extern void buzzer_on(uint16_t psc, uint16_t pwm, uint8_t level);
extern void buzzer_off(void);
#endif

View File

@@ -1,7 +1,7 @@
#ifndef BSP_CAN_H
#define BSP_CAN_H
#include "struct_typedef.h"
#include <stdint-gcc.h>
#include "can.h"
#define MX_REGISTER_DEVICE_CNT 12 // maximum number of device can be registered to CAN service

View File

@@ -1,8 +1,7 @@
#ifndef BSP_LED_H
#define BSP_LED_H
#include "struct_typedef.h"
#include <stdint-gcc.h>
void LED_init();
extern void aRGB_led_show(uint32_t aRGB);

View File

@@ -1,7 +1,7 @@
#ifndef BSP_RC_H
#define BSP_RC_H
#include "struct_typedef.h"
#include <stdint-gcc.h>
#include "main.h"
#define DEVICE_USART_CNT 3 // C板至多分配3个串口

View File

@@ -22,10 +22,7 @@ typedef unsigned int uint32_t;
typedef unsigned long long uint64_t;
typedef unsigned char bool_t;
typedef float fp32;
typedef float float;
typedef double fp64;
#endif