配置ddl_config.h 官方提供的库函数中有ddl_config.h文件,改文件是管理库函数是否加载配置文件。部分内容如下:
- /*******************************************************************************
- * Global pre-processor symbols/macros ('#define')
- ******************************************************************************/
- /* Chip module on-off define */
- #define DDL_ON (1U)
- #define DDL_OFF (0U)
- /**
- * [url=home.php?mod=space&uid=247401]@brief[/url] This is the list of modules to be used in the Device Driver Library.
- * Select the modules you need to use to DDL_ON.
- * [url=home.php?mod=space&uid=536309]@NOTE[/url] DDL_ICG_ENABLE must be turned on(DDL_ON) to ensure that the chip works
- * properly.
- * @note DDL_UTILITY_ENABLE must be turned on(DDL_ON) if using Device Driver
- * Library.
- * @note DDL_PRINT_ENABLE must be turned on(DDL_ON) if using printf function.
- */
- #define DDL_ICG_ENABLE (DDL_ON)
- #define DDL_UTILITY_ENABLE (DDL_ON)
- #define DDL_PRINT_ENABLE (DDL_OFF)
- ……省略……
|