add compatibility under LINUX

This commit is contained in:
NeoZng 2022-12-12 22:29:51 +08:00
parent 2f41e67de0
commit 94499150bc
16 changed files with 16 additions and 16 deletions

View File

@ -1,7 +1,7 @@
{ {
"files.associations": { "files.associations": {
"memory.h": "c", "memory.h": "c",
"stdint-gcc.h": "c", "stdint.h": "c",
"led_task.h": "c", "led_task.h": "c",
"stdinf.h": "c", "stdinf.h": "c",
"usart.h": "c", "usart.h": "c",

View File

@ -14,7 +14,7 @@
#include "ins_task.h" #include "ins_task.h"
#include "master_process.h" #include "master_process.h"
#include "stdint-gcc.h" #include "stdint.h"
/* 开发板类型定义,烧录时注意不要弄错对应功能;修改定义后需要重新编译,只能存在一个定义! */ /* 开发板类型定义,烧录时注意不要弄错对应功能;修改定义后需要重新编译,只能存在一个定义! */
#define ONE_BOARD // 单板控制整车 #define ONE_BOARD // 单板控制整车

View File

@ -1,7 +1,7 @@
#ifndef BSP_BUZZER_H #ifndef BSP_BUZZER_H
#define BSP_BUZZER_H #define BSP_BUZZER_H
#include <stdint-gcc.h> #include <stdint.h>
void BuzzerInit(); void BuzzerInit();
extern void BuzzerOn(uint16_t psc, uint16_t pwm, uint8_t level); extern void BuzzerOn(uint16_t psc, uint16_t pwm, uint8_t level);

View File

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

View File

@ -1,7 +1,7 @@
#ifndef BSP_LED_H #ifndef BSP_LED_H
#define BSP_LED_H #define BSP_LED_H
#include <stdint-gcc.h> #include <stdint.h>
void LEDInit(); void LEDInit();
extern void FlowRGBShow(uint32_t aRGB); extern void FlowRGBShow(uint32_t aRGB);

View File

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

View File

@ -1,7 +1,7 @@
#ifndef MONITOR_H #ifndef MONITOR_H
#define MONITOR_H #define MONITOR_H
#include "stdint-gcc.h" #include "stdint.h"
#define DAEMON_MX_CNT 64 #define DAEMON_MX_CNT 64

View File

@ -12,7 +12,7 @@
#include "led_task.h" #include "led_task.h"
#include <stdint-gcc.h> #include <stdint.h>
#include "bsp_led.h" #include "bsp_led.h"
#include "main.h" #include "main.h"

View File

@ -2,7 +2,7 @@
#define __SEASKY_PROTOCOL_H #define __SEASKY_PROTOCOL_H
#include <stdio.h> #include <stdio.h>
#include <stdint-gcc.h> #include <stdint.h>
#define PROTOCOL_CMD_ID 0XA5 #define PROTOCOL_CMD_ID 0XA5
#define OFFSET_BYTE 8 // 出数据段外,其他部分所占字节数 #define OFFSET_BYTE 8 // 出数据段外,其他部分所占字节数

View File

@ -13,7 +13,7 @@
#ifndef PUBSUB_H #ifndef PUBSUB_H
#define PUBSUB_H #define PUBSUB_H
#include "stdint-gcc.h" #include "stdint.h"
#define MAX_EVENT_NAME_LEN 32 //最大的事件名长度,每个事件都有字符串来命名 #define MAX_EVENT_NAME_LEN 32 //最大的事件名长度,每个事件都有字符串来命名

View File

@ -1,7 +1,7 @@
#ifndef HT04_H #ifndef HT04_H
#define HT04_H #define HT04_H
#include <stdint-gcc.h> #include <stdint.h>
#include "bsp_can.h" #include "bsp_can.h"
#include "controller.h" #include "controller.h"
#include "motor_def.h" #include "motor_def.h"

View File

@ -1,7 +1,7 @@
#ifndef LK9025_H #ifndef LK9025_H
#define LK9025_H #define LK9025_H
#include <stdint-gcc.h> #include "stdint.h"
#include "bsp_can.h" #include "bsp_can.h"
#include "controller.h" #include "controller.h"
#include "motor_def.h" #include "motor_def.h"

View File

@ -13,7 +13,7 @@
#define MOTOR_DEF_H #define MOTOR_DEF_H
#include "controller.h" #include "controller.h"
#include <stdint-gcc.h> #include <stdint.h>
#define LIMIT_MIN_MAX(x, min, max) (x) = (((x) <= (min)) ? (min) : (((x) >= (max)) ? (max) : (x))) #define LIMIT_MIN_MAX(x, min, max) (x) = (((x) <= (min)) ? (min) : (((x) >= (max)) ? (max) : (x)))

View File

@ -1,7 +1,7 @@
#ifndef __CRC_H_ #ifndef __CRC_H_
#define __CRC_H_ #define __CRC_H_
#include <stdint-gcc.h> #include <stdint.h>
#define TRUE 1 #define TRUE 1
#define FALSE 0 #define FALSE 0

View File

@ -13,7 +13,7 @@
#ifndef REMOTE_CONTROL_H #ifndef REMOTE_CONTROL_H
#define REMOTE_CONTROL_H #define REMOTE_CONTROL_H
#include <stdint-gcc.h> #include <stdint.h>
#include "main.h" #include "main.h"
#include "usart.h" #include "usart.h"

View File

@ -7,7 +7,7 @@
*/ */
#ifndef VOFA_H #ifndef VOFA_H
#define VOFA_H #define VOFA_H
#include <stdint-gcc.h> #include <stdint.h>
#include "bsp_usart.h" #include "bsp_usart.h"
#include "usart.h" #include "usart.h"