Merge pull request #1430 from balanceTWK/master
[bsp][stm32f429apollo] 移除CONSOLE_DEVICE宏定义以及相关的
This commit is contained in:
commit
ab41281bfd
|
@ -51,7 +51,7 @@ CONFIG_RT_USING_DEVICE=y
|
||||||
# CONFIG_RT_USING_INTERRUPT_INFO is not set
|
# CONFIG_RT_USING_INTERRUPT_INFO is not set
|
||||||
CONFIG_RT_USING_CONSOLE=y
|
CONFIG_RT_USING_CONSOLE=y
|
||||||
CONFIG_RT_CONSOLEBUF_SIZE=128
|
CONFIG_RT_CONSOLEBUF_SIZE=128
|
||||||
CONFIG_RT_CONSOLE_DEVICE_NAME="uart"
|
CONFIG_RT_CONSOLE_DEVICE_NAME="uart1"
|
||||||
# CONFIG_RT_USING_MODULE is not set
|
# CONFIG_RT_USING_MODULE is not set
|
||||||
CONFIG_ARCH_ARM=y
|
CONFIG_ARCH_ARM=y
|
||||||
CONFIG_ARCH_ARM_CORTEX_M=y
|
CONFIG_ARCH_ARM_CORTEX_M=y
|
||||||
|
@ -77,6 +77,7 @@ CONFIG_FINSH_USING_HISTORY=y
|
||||||
CONFIG_FINSH_HISTORY_LINES=5
|
CONFIG_FINSH_HISTORY_LINES=5
|
||||||
CONFIG_FINSH_USING_SYMTAB=y
|
CONFIG_FINSH_USING_SYMTAB=y
|
||||||
CONFIG_FINSH_USING_DESCRIPTION=y
|
CONFIG_FINSH_USING_DESCRIPTION=y
|
||||||
|
# CONFIG_FINSH_ECHO_DISABLE_DEFAULT is not set
|
||||||
CONFIG_FINSH_THREAD_PRIORITY=20
|
CONFIG_FINSH_THREAD_PRIORITY=20
|
||||||
CONFIG_FINSH_THREAD_STACK_SIZE=2048
|
CONFIG_FINSH_THREAD_STACK_SIZE=2048
|
||||||
CONFIG_FINSH_CMD_SIZE=80
|
CONFIG_FINSH_CMD_SIZE=80
|
||||||
|
@ -141,7 +142,7 @@ CONFIG_RT_USING_SPI=y
|
||||||
CONFIG_RT_USING_SFUD=y
|
CONFIG_RT_USING_SFUD=y
|
||||||
CONFIG_RT_SFUD_USING_SFDP=y
|
CONFIG_RT_SFUD_USING_SFDP=y
|
||||||
# CONFIG_RT_SFUD_USING_FLASH_INFO_TABLE is not set
|
# CONFIG_RT_SFUD_USING_FLASH_INFO_TABLE is not set
|
||||||
# CONFIG_RT_SFUD_DEBUG is not set
|
# CONFIG_RT_DEBUG_SFUD is not set
|
||||||
# CONFIG_RT_USING_W25QXX is not set
|
# CONFIG_RT_USING_W25QXX is not set
|
||||||
# CONFIG_RT_USING_GD is not set
|
# CONFIG_RT_USING_GD is not set
|
||||||
# CONFIG_RT_USING_ENC28J60 is not set
|
# CONFIG_RT_USING_ENC28J60 is not set
|
||||||
|
@ -288,6 +289,7 @@ CONFIG_LWIP_NETIF_LOOPBACK=0
|
||||||
# CONFIG_PKG_USING_COAP is not set
|
# CONFIG_PKG_USING_COAP is not set
|
||||||
# CONFIG_PKG_USING_NOPOLL is not set
|
# CONFIG_PKG_USING_NOPOLL is not set
|
||||||
# CONFIG_PKG_USING_NETUTILS is not set
|
# CONFIG_PKG_USING_NETUTILS is not set
|
||||||
|
# CONFIG_PKG_USING_ONENET is not set
|
||||||
|
|
||||||
#
|
#
|
||||||
# security packages
|
# security packages
|
||||||
|
@ -301,6 +303,7 @@ CONFIG_LWIP_NETIF_LOOPBACK=0
|
||||||
#
|
#
|
||||||
# CONFIG_PKG_USING_JERRYSCRIPT is not set
|
# CONFIG_PKG_USING_JERRYSCRIPT is not set
|
||||||
# CONFIG_PKG_USING_MICROPYTHON is not set
|
# CONFIG_PKG_USING_MICROPYTHON is not set
|
||||||
|
# CONFIG_PKG_USING_LUA2RTT is not set
|
||||||
|
|
||||||
#
|
#
|
||||||
# multimedia packages
|
# multimedia packages
|
||||||
|
@ -311,6 +314,7 @@ CONFIG_LWIP_NETIF_LOOPBACK=0
|
||||||
# tools packages
|
# tools packages
|
||||||
#
|
#
|
||||||
# CONFIG_PKG_USING_CMBACKTRACE is not set
|
# CONFIG_PKG_USING_CMBACKTRACE is not set
|
||||||
|
# CONFIG_PKG_USING_EASYFLASH is not set
|
||||||
# CONFIG_PKG_USING_EASYLOGGER is not set
|
# CONFIG_PKG_USING_EASYLOGGER is not set
|
||||||
# CONFIG_PKG_USING_SYSTEMVIEW is not set
|
# CONFIG_PKG_USING_SYSTEMVIEW is not set
|
||||||
# CONFIG_PKG_USING_IPERF is not set
|
# CONFIG_PKG_USING_IPERF is not set
|
||||||
|
@ -321,12 +325,14 @@ CONFIG_LWIP_NETIF_LOOPBACK=0
|
||||||
# CONFIG_PKG_USING_FASTLZ is not set
|
# CONFIG_PKG_USING_FASTLZ is not set
|
||||||
# CONFIG_PKG_USING_MINILZO is not set
|
# CONFIG_PKG_USING_MINILZO is not set
|
||||||
# CONFIG_PKG_USING_QUICKLZ is not set
|
# CONFIG_PKG_USING_QUICKLZ is not set
|
||||||
|
# CONFIG_PKG_USING_MULTIBUTTON is not set
|
||||||
|
# CONFIG_PKG_USING_SAMPLES is not set
|
||||||
|
# CONFIG_PKG_USING_CANFESTIVAL is not set
|
||||||
|
|
||||||
#
|
#
|
||||||
# example package: hello
|
# example package: hello
|
||||||
#
|
#
|
||||||
# CONFIG_PKG_USING_HELLO is not set
|
# CONFIG_PKG_USING_HELLO is not set
|
||||||
# CONFIG_PKG_USING_MULTIBUTTON is not set
|
|
||||||
CONFIG_RT_USING_EXT_SDRAM=y
|
CONFIG_RT_USING_EXT_SDRAM=y
|
||||||
CONFIG_RT_USING_UART1=y
|
CONFIG_RT_USING_UART1=y
|
||||||
CONFIG_RT_USING_UART2=y
|
CONFIG_RT_USING_UART2=y
|
||||||
|
|
|
@ -155,7 +155,7 @@ void rt_hw_board_init()
|
||||||
SystemClock_Config();
|
SystemClock_Config();
|
||||||
stm32_hw_usart_init();
|
stm32_hw_usart_init();
|
||||||
#ifdef RT_USING_CONSOLE
|
#ifdef RT_USING_CONSOLE
|
||||||
rt_console_set_device(CONSOLE_DEVICE);
|
rt_console_set_device(RT_CONSOLE_DEVICE_NAME);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef RT_USING_COMPONENTS_INIT
|
#ifdef RT_USING_COMPONENTS_INIT
|
||||||
|
|
|
@ -59,24 +59,8 @@ extern int __bss_end;
|
||||||
|
|
||||||
#define HEAP_END STM32_SRAM_END
|
#define HEAP_END STM32_SRAM_END
|
||||||
|
|
||||||
// <o> Console on USART: <0=> no console <1=>USART 1 <2=>USART 2 <3=> USART 3
|
|
||||||
// <i>Default: 1
|
|
||||||
#define STM32_CONSOLE_USART 1
|
|
||||||
|
|
||||||
void rt_hw_board_init(void);
|
void rt_hw_board_init(void);
|
||||||
|
|
||||||
#if STM32_CONSOLE_USART == 0
|
|
||||||
#define CONSOLE_DEVICE "no"
|
|
||||||
#elif STM32_CONSOLE_USART == 1
|
|
||||||
#define CONSOLE_DEVICE "uart1"
|
|
||||||
#elif STM32_CONSOLE_USART == 2
|
|
||||||
#define CONSOLE_DEVICE "uart2"
|
|
||||||
#elif STM32_CONSOLE_USART == 3
|
|
||||||
#define CONSOLE_DEVICE "uart3"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#define FINSH_DEVICE_NAME CONSOLE_DEVICE
|
|
||||||
|
|
||||||
#define STM32F4xx_PIN_NUMBERS 176
|
#define STM32F4xx_PIN_NUMBERS 176
|
||||||
|
|
||||||
void Error_Handler(void);
|
void Error_Handler(void);
|
||||||
|
|
|
@ -40,7 +40,7 @@
|
||||||
#define RT_USING_DEVICE
|
#define RT_USING_DEVICE
|
||||||
#define RT_USING_CONSOLE
|
#define RT_USING_CONSOLE
|
||||||
#define RT_CONSOLEBUF_SIZE 128
|
#define RT_CONSOLEBUF_SIZE 128
|
||||||
#define RT_CONSOLE_DEVICE_NAME "uart"
|
#define RT_CONSOLE_DEVICE_NAME "uart1"
|
||||||
#define ARCH_ARM
|
#define ARCH_ARM
|
||||||
#define ARCH_ARM_CORTEX_M
|
#define ARCH_ARM_CORTEX_M
|
||||||
#define ARCH_ARM_CORTEX_M4
|
#define ARCH_ARM_CORTEX_M4
|
||||||
|
|
Loading…
Reference in New Issue