18 changed files with 80 additions and 82 deletions
@ -1,65 +0,0 @@ |
|||
#ifndef __BSP_CONFIG_H__ |
|||
#define __BSP_CONFIG_H__ |
|||
|
|||
|
|||
#ifdef __cplusplus |
|||
#if __cplusplus |
|||
extern "C"{ |
|||
#endif |
|||
#endif /* __cplusplus */ |
|||
|
|||
/* 打印串口配置 */ |
|||
|
|||
#define IOC_100PIN // 100引脚芯片
|
|||
|
|||
|
|||
#define USE_TALNET |
|||
/* 编译My_print.c */ |
|||
// #define USE_PRINT
|
|||
|
|||
// #define PRINT_ID 1 // 串口打印映射的串口号,对应g_ptUartTab全局
|
|||
// 如果还需要getchar需要将Myprint_IRQHandler放置到对应的中断服务中
|
|||
// 如果注释掉该全局则表示使用usb的cdc来作为打印串口
|
|||
|
|||
// #define LUACOM_ID 2 //这里是Lua的COM模块初始化1或2使用的串口,确保不要和PRINT_ID一致即可
|
|||
|
|||
/* 编译l_stm32.c */ |
|||
#define USE_LUA_ST |
|||
/* 编译l_can.c */ |
|||
#define USE_LUA_ST_CAN |
|||
/* 编译l_uart.c */ |
|||
// #define USE_LUA_ST_UART
|
|||
|
|||
/* 编译bsp_cap.c */ |
|||
// #define USE_TIMER
|
|||
|
|||
/* 编译bsp_uart.c */ |
|||
#define USE_UART |
|||
/* 默认使用空闲中断DMA方式,注释掉后使用传统字节中断 */ |
|||
//#define CONFIG_UART_IT_IDLEDMA
|
|||
|
|||
/* 编译bsp_usb.c */ |
|||
// #define USE_USB
|
|||
|
|||
/* 编译bsp_i2c.c */ |
|||
// #define USE_I2C
|
|||
|
|||
/* 编译stmflash.c */ |
|||
// #define USE_ONCHIP_FLASH
|
|||
|
|||
#define USE_CAN |
|||
|
|||
#define CONFIG_CAN_BUFFER_SIZE 128 |
|||
|
|||
#define USE_FREERTOS |
|||
|
|||
#define USE_LWIP |
|||
|
|||
#ifdef __cplusplus |
|||
#if __cplusplus |
|||
} |
|||
#endif |
|||
#endif /* __cplusplus */ |
|||
|
|||
|
|||
#endif /* __L_STM32_H__ */ |
|||
@ -0,0 +1,41 @@ |
|||
// TEMPLATE FILE: Copy this file and rename the extension to .h before use.
|
|||
// DO NOT edit this file directly.
|
|||
#ifndef __COMMON_CFG_H__ |
|||
#define __COMMON_CFG_H__ |
|||
|
|||
|
|||
#ifdef __cplusplus |
|||
#if __cplusplus |
|||
extern "C"{ |
|||
#endif |
|||
#endif /* __cplusplus */ |
|||
|
|||
#cmakedefine MEM_POOL_TOTAL_SIZE @MEM_POOL_TOTAL_SIZE@ |
|||
|
|||
#cmakedefine IOC_100PIN |
|||
#cmakedefine USE_TALNET |
|||
#cmakedefine USE_LUA_ST |
|||
#cmakedefine USE_UART |
|||
#cmakedefine CONFIG_UART_IT_IDLEDMA |
|||
#cmakedefine USE_LUA_ST_UART |
|||
#cmakedefine USE_PRINT |
|||
#cmakedefine USE_TIMER |
|||
#cmakedefine USE_USB |
|||
#cmakedefine USE_I2C |
|||
#cmakedefine USE_ONCHIP_FLASH |
|||
#cmakedefine USE_CAN |
|||
#cmakedefine USE_LUA_ST_CAN |
|||
#cmakedefine USE_FREERTOS |
|||
#cmakedefine USE_LWIP |
|||
|
|||
#cmakedefine LUACOM_ID @LUACOM_ID@ |
|||
#cmakedefine PRINT_ID @PRINT_ID@ |
|||
|
|||
#ifdef __cplusplus |
|||
#if __cplusplus |
|||
} |
|||
#endif |
|||
#endif /* __cplusplus */ |
|||
|
|||
|
|||
#endif /* __L_STM32_H__ */ |
|||
Loading…
Reference in new issue