#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__ */