Skip to content

Commit 706fcdd

Browse files
authored
修复一些Air401的编译报错 (#91)
* update: 更新Air401驱动库 * fix: 修复重复定义的宏定义警告
1 parent 9a1cc37 commit 706fcdd

3 files changed

Lines changed: 24 additions & 11 deletions

File tree

platform.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name=Air MCU
2-
version=0.6.0
2+
version=0.6.1
33

44
## compiler variables 编译器的路径
55
compiler.path={runtime.tools.xpack-arm-none-eabi-gcc.path}/bin/

system/AIR401xx/air401xx_hal_conf_default.h

Lines changed: 22 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -100,15 +100,28 @@
100100
/* ########################### System Configuration ######################### */
101101
/**
102102
* @brief This is the HAL system configuration section
103-
*/
104-
#define VDD_VALUE ((uint32_t)3300) /*!< Value of VDD in mv */
105-
#define PRIORITY_HIGHEST 0
106-
#define PRIORITY_HIGH 1
107-
#define PRIORITY_LOW 2
108-
#define PRIORITY_LOWEST 3
109-
#define TICK_INT_PRIORITY ((uint32_t)PRIORITY_LOWEST) /*!< tick interrupt priority (lowest by default) */
110-
#define USE_RTOS 0
111-
#define PREFETCH_ENABLE 0
103+
*/
104+
#if !defined(VDD_VALUE)
105+
#define VDD_VALUE 3300U /*!< Value of VDD in mv */
106+
#endif
107+
#if !defined (TICK_INT_PRIORITY)
108+
#define TICK_INT_PRIORITY 0x00U /*!< tick interrupt priority */
109+
#endif
110+
#if !defined (USE_RTOS)
111+
#define USE_RTOS 0U
112+
#endif
113+
#if !defined (PREFETCH_ENABLE)
114+
#define PREFETCH_ENABLE 1U
115+
#endif
116+
#if !defined (INSTRUCTION_CACHE_ENABLE)
117+
#define INSTRUCTION_CACHE_ENABLE 0U
118+
#endif
119+
#if !defined (DATA_CACHE_ENABLE)
120+
#define DATA_CACHE_ENABLE 0U
121+
#endif
122+
#if !defined (USE_SPI_CRC)
123+
#define USE_SPI_CRC 0U
124+
#endif
112125

113126
/* ########################## Assert Selection ############################## */
114127
/**

0 commit comments

Comments
 (0)