Skip to content

Commit

Permalink
修复一些Air401的编译报错 (#91)
Browse files Browse the repository at this point in the history
* update: 更新Air401驱动库

* fix: 修复重复定义的宏定义警告
  • Loading branch information
HalfSweet authored Nov 27, 2023
1 parent 9a1cc37 commit 706fcdd
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 11 deletions.
2 changes: 1 addition & 1 deletion platform.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name=Air MCU
version=0.6.0
version=0.6.1

## compiler variables 编译器的路径
compiler.path={runtime.tools.xpack-arm-none-eabi-gcc.path}/bin/
Expand Down
31 changes: 22 additions & 9 deletions system/AIR401xx/air401xx_hal_conf_default.h
Original file line number Diff line number Diff line change
Expand Up @@ -100,15 +100,28 @@
/* ########################### System Configuration ######################### */
/**
* @brief This is the HAL system configuration section
*/
#define VDD_VALUE ((uint32_t)3300) /*!< Value of VDD in mv */
#define PRIORITY_HIGHEST 0
#define PRIORITY_HIGH 1
#define PRIORITY_LOW 2
#define PRIORITY_LOWEST 3
#define TICK_INT_PRIORITY ((uint32_t)PRIORITY_LOWEST) /*!< tick interrupt priority (lowest by default) */
#define USE_RTOS 0
#define PREFETCH_ENABLE 0
*/
#if !defined(VDD_VALUE)
#define VDD_VALUE 3300U /*!< Value of VDD in mv */
#endif
#if !defined (TICK_INT_PRIORITY)
#define TICK_INT_PRIORITY 0x00U /*!< tick interrupt priority */
#endif
#if !defined (USE_RTOS)
#define USE_RTOS 0U
#endif
#if !defined (PREFETCH_ENABLE)
#define PREFETCH_ENABLE 1U
#endif
#if !defined (INSTRUCTION_CACHE_ENABLE)
#define INSTRUCTION_CACHE_ENABLE 0U
#endif
#if !defined (DATA_CACHE_ENABLE)
#define DATA_CACHE_ENABLE 0U
#endif
#if !defined (USE_SPI_CRC)
#define USE_SPI_CRC 0U
#endif

/* ########################## Assert Selection ############################## */
/**
Expand Down
2 changes: 1 addition & 1 deletion system/Air401-Drivers

0 comments on commit 706fcdd

Please sign in to comment.