From 82b7ecda065914f3f46183b19ed1acfbb7f654c9 Mon Sep 17 00:00:00 2001 From: armink Date: Wed, 1 Nov 2017 10:25:17 +0800 Subject: [PATCH 01/14] [Finsh] Fix an auto complete history bug when current line is contained in last cmd. --- components/finsh/shell.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/finsh/shell.c b/components/finsh/shell.c index 4c20b3c640..90792e0039 100644 --- a/components/finsh/shell.c +++ b/components/finsh/shell.c @@ -372,7 +372,7 @@ static void shell_push_history(struct finsh_shell *shell) if (shell->history_count >= FINSH_HISTORY_LINES) { /* if current cmd is same as last cmd, don't push */ - if (memcmp(&shell->cmd_history[FINSH_HISTORY_LINES - 1], shell->line, shell->line_position)) + if (memcmp(&shell->cmd_history[FINSH_HISTORY_LINES - 1], shell->line, FINSH_CMD_SIZE)) { /* move history */ int index; @@ -391,7 +391,7 @@ static void shell_push_history(struct finsh_shell *shell) else { /* if current cmd is same as last cmd, don't push */ - if (shell->history_count == 0 || memcmp(&shell->cmd_history[shell->history_count - 1], shell->line, shell->line_position)) + if (shell->history_count == 0 || memcmp(&shell->cmd_history[shell->history_count - 1], shell->line, FINSH_CMD_SIZE)) { shell->current_history = shell->history_count; memset(&shell->cmd_history[shell->history_count][0], 0, FINSH_CMD_SIZE); From a9e20047c26fa1d676792ae2f5b473316bed0482 Mon Sep 17 00:00:00 2001 From: SummerGift Date: Wed, 1 Nov 2017 11:02:09 +0800 Subject: [PATCH 02/14] add bsp/stm32f429-disco/Kconfig bsp/stm32f429-disco/drivers/Kconfig --- bsp/stm32f429-disco/Kconfig | 29 +++++++++++++++++++++++++++++ bsp/stm32f429-disco/drivers/Kconfig | 19 +++++++++++++++++++ 2 files changed, 48 insertions(+) create mode 100644 bsp/stm32f429-disco/Kconfig create mode 100644 bsp/stm32f429-disco/drivers/Kconfig diff --git a/bsp/stm32f429-disco/Kconfig b/bsp/stm32f429-disco/Kconfig new file mode 100644 index 0000000000..fe7347e14f --- /dev/null +++ b/bsp/stm32f429-disco/Kconfig @@ -0,0 +1,29 @@ +mainmenu "RT-Thread Configuration" + +config $BSP_DIR + string + option env="BSP_ROOT" + default "." + +config $RTT_DIR + string + option env="RTT_ROOT" + default "../.." + +# you can change the RTT_ROOT default "../.." to your rtthread_root, +# example : default "F:/git_repositories/rt-thread" + +config $PKGS_DIR + string + option env="PKGS_ROOT" + default "packages" + +source "$RTT_DIR/KConfig" +source "$PKGS_DIR/KConfig" + +source "$BSP_DIR/drivers/Kconfig" + + + + + \ No newline at end of file diff --git a/bsp/stm32f429-disco/drivers/Kconfig b/bsp/stm32f429-disco/drivers/Kconfig new file mode 100644 index 0000000000..77c7d9ce6e --- /dev/null +++ b/bsp/stm32f429-disco/drivers/Kconfig @@ -0,0 +1,19 @@ +config RT_USING_EXT_SDRAM + bool "Enable SDRAM on the board" + default y + +config RT_USING_UART1 + bool "Enable UART1" + default y + +config RT_USING_UART2 + bool "Enable UART2" + default n + +config RT_USING_UART3 + bool "Enable UART3" + default n + +config RT_USING_SPI5 + bool "Enable SPI5" + default n From f6e99bc6090833381af9ab59fee58335f35a8745 Mon Sep 17 00:00:00 2001 From: SummerGift Date: Wed, 1 Nov 2017 11:09:30 +0800 Subject: [PATCH 03/14] update bsp/stm32f429-disco/rtconfig.h --- bsp/stm32f429-disco/rtconfig.h | 241 +++++++++++++++------------------ 1 file changed, 111 insertions(+), 130 deletions(-) diff --git a/bsp/stm32f429-disco/rtconfig.h b/bsp/stm32f429-disco/rtconfig.h index 7324ce0372..cc3186f14e 100644 --- a/bsp/stm32f429-disco/rtconfig.h +++ b/bsp/stm32f429-disco/rtconfig.h @@ -1,172 +1,153 @@ -/* RT-Thread config file */ -#ifndef __RTTHREAD_CFG_H__ -#define __RTTHREAD_CFG_H__ +#ifndef RT_CONFIG_H__ +#define RT_CONFIG_H__ -/* RT_NAME_MAX*/ -#define RT_NAME_MAX 8 +/* Automatically generated file; DO NOT EDIT. */ +/* RT-Thread Configuration */ -/* RT_ALIGN_SIZE*/ -#define RT_ALIGN_SIZE 4 +/* RT-Thread Kernel */ -/* PRIORITY_MAX */ -#define RT_THREAD_PRIORITY_MAX 32 - -/* Tick per Second */ -#define RT_TICK_PER_SECOND 100 - -/* SECTION: RT_DEBUG */ -/* Thread Debug */ +#define RT_NAME_MAX 8 +#define RT_ALIGN_SIZE 4 +#define RT_THREAD_PRIORITY_MAX 32 +#define RT_TICK_PER_SECOND 100 #define RT_DEBUG -#define RT_DEBUG_INIT 1 #define RT_USING_OVERFLOW_CHECK - -/* Using Hook */ +#define RT_DEBUG_INIT 1 +/* RT_DEBUG_THREAD is not set */ #define RT_USING_HOOK +#define IDLE_THREAD_STACK_SIZE 1024 +/* RT_USING_TIMER_SOFT is not set */ -#define IDLE_THREAD_STACK_SIZE 1024 +/* Inter-Thread communication */ -/* Using Software Timer */ -/* #define RT_USING_TIMER_SOFT */ -#define RT_TIMER_THREAD_PRIO 4 -#define RT_TIMER_THREAD_STACK_SIZE 512 - -/* SECTION: IPC */ -/* Using Semaphore*/ #define RT_USING_SEMAPHORE - -/* Using Mutex */ #define RT_USING_MUTEX - -/* Using Event */ #define RT_USING_EVENT - -/* Using MailBox */ #define RT_USING_MAILBOX - -/* Using Message Queue */ #define RT_USING_MESSAGEQUEUE +/* RT_USING_SIGNALS is not set */ + +/* Memory Management */ -/* SECTION: Memory Management */ -/* Using Memory Pool Management*/ #define RT_USING_MEMPOOL - -/* Using Dynamic Heap Management */ -#define RT_USING_HEAP #define RT_USING_MEMHEAP -/* Using Small MM */ +#define RT_USING_HEAP #define RT_USING_SMALL_MEM +/* RT_USING_SLAB is not set */ + +/* Kernel Device Object */ + +#define RT_USING_DEVICE +#define RT_USING_CONSOLE +#define RT_CONSOLEBUF_SIZE 128 +#define RT_CONSOLE_DEVICE_NAME "uart1" +/* RT_USING_MODULE is not set */ + +/* RT-Thread Components */ #define RT_USING_COMPONENTS_INIT +/* RT_USING_USER_MAIN is not set */ -#define RT_USING_EXT_SDRAM +/* C++ features */ -/* SECTION: Device System */ -/* Using Device System */ -#define RT_USING_DEVICE -#define RT_USING_DEVICE_IPC -/* Using serial framework */ -#define RT_USING_SERIAL +/* RT_USING_CPLUSPLUS is not set */ -#define RT_USING_UART1 -#define RT_USING_UART2 -#define RT_USING_UART3 +/* Command shell */ -/* Using GPIO pin framework */ -//#define RT_USING_PIN - -/* Using Hardware Timer framework */ -//#define RT_USING_HWTIMER - -/* SECTION: Console options */ -#define RT_USING_CONSOLE -/* the buffer size of console*/ -#define RT_CONSOLEBUF_SIZE 128 - -/* SECTION: finsh, a C-Express shell */ #define RT_USING_FINSH -/* Using symbol table */ +#define FINSH_USING_HISTORY #define FINSH_USING_SYMTAB #define FINSH_USING_DESCRIPTION +#define FINSH_THREAD_PRIORITY 20 +#define FINSH_THREAD_STACK_SIZE 4096 +#define FINSH_CMD_SIZE 80 +/* FINSH_USING_AUTH is not set */ +#define FINSH_USING_MSH +#define FINSH_USING_MSH_DEFAULT +/* FINSH_USING_MSH_ONLY is not set */ -/* SECTION: device filesystem */ -/* Using Device file system */ -/* #define RT_USING_DFS */ -/* the max number of mounted filesystem */ -#define DFS_FILESYSTEMS_MAX 2 -/* the max number of opened files */ -#define DFS_FD_MAX 4 +/* Device virtual file system */ -/* Using ELM FATFS */ -//#define RT_USING_DFS_ELMFAT -#define RT_DFS_ELM_WORD_ACCESS -/* Reentrancy (thread safe) of the FatFs module. */ -#define RT_DFS_ELM_REENTRANT -/* Number of volumes (logical drives) to be used. */ -#define RT_DFS_ELM_DRIVES 2 -/* #define RT_DFS_ELM_USE_LFN 1 */ -#define RT_DFS_ELM_MAX_LFN 255 -/* Maximum sector size to be handled. */ -#define RT_DFS_ELM_MAX_SECTOR_SIZE 512 +/* RT_USING_DFS is not set */ -/* Using ROM file system */ -// #define RT_USING_DFS_ROMFS +/* Device Drivers */ -/* SECTION: lwip, a lighwight TCP/IP protocol stack */ -/* #define RT_USING_LWIP */ -/* Enable ICMP protocol*/ -#define RT_LWIP_ICMP -/* Enable UDP protocol*/ -#define RT_LWIP_UDP -/* Enable TCP protocol*/ -#define RT_LWIP_TCP -/* Enable DNS */ -#define RT_LWIP_DNS +#define RT_USING_DEVICE_IPC +#define RT_USING_SERIAL +/* RT_USING_CAN is not set */ +/* RT_USING_HWTIMER is not set */ +/* RT_USING_I2C is not set */ +/* RT_USING_PIN is not set */ +/* RT_USING_MTD_NOR is not set */ +/* RT_USING_MTD_NAND is not set */ +/* RT_USING_RTC is not set */ +/* RT_USING_SDIO is not set */ +/* RT_USING_SPI is not set */ +/* RT_USING_WDT is not set */ +/* RT_USING_USB_HOST is not set */ +/* RT_USING_USB_DEVICE is not set */ -/* the number of simulatenously active TCP connections*/ -#define RT_LWIP_TCP_PCB_NUM 5 +/* POSIX layer and C standard library */ -/* ip address of target*/ -#define RT_LWIP_IPADDR0 192 -#define RT_LWIP_IPADDR1 168 -#define RT_LWIP_IPADDR2 1 -#define RT_LWIP_IPADDR3 201 +/* RT_USING_LIBC is not set */ +/* RT_USING_PTHREADS is not set */ -/* gateway address of target*/ -#define RT_LWIP_GWADDR0 192 -#define RT_LWIP_GWADDR1 168 -#define RT_LWIP_GWADDR2 1 -#define RT_LWIP_GWADDR3 1 +/* Network stack */ -/* mask address of target*/ -#define RT_LWIP_MSKADDR0 255 -#define RT_LWIP_MSKADDR1 255 -#define RT_LWIP_MSKADDR2 255 -#define RT_LWIP_MSKADDR3 0 +/* light weight TCP/IP stack */ -/* tcp thread options */ -#define RT_LWIP_TCPTHREAD_PRIORITY 12 -#define RT_LWIP_TCPTHREAD_MBOX_SIZE 4 -#define RT_LWIP_TCPTHREAD_STACKSIZE 1024 +/* RT_USING_LWIP is not set */ -/* ethernet if thread options */ -#define RT_LWIP_ETHTHREAD_PRIORITY 15 -#define RT_LWIP_ETHTHREAD_MBOX_SIZE 4 -#define RT_LWIP_ETHTHREAD_STACKSIZE 512 +/* Modbus master and slave stack */ -/* TCP sender buffer space */ -#define RT_LWIP_TCP_SND_BUF 8192 -/* TCP receive window. */ -#define RT_LWIP_TCP_WND 8192 +/* RT_USING_MODBUS is not set */ -#define CHECKSUM_CHECK_TCP 0 -#define CHECKSUM_CHECK_IP 0 -#define CHECKSUM_CHECK_UDP 0 +/* RT-Thread UI Engine */ -#define CHECKSUM_GEN_TCP 0 -#define CHECKSUM_GEN_IP 0 -#define CHECKSUM_GEN_UDP 0 +/* RT_USING_GUIENGINE is not set */ -/* RT_GDB_STUB */ -//#define RT_USING_GDB +/* RT-Thread online packages */ + +/* system packages */ + +/* PKG_USING_PARTITION is not set */ +/* PKG_USING_SQLITE is not set */ + +/* IoT - internet of things */ + +/* PKG_USING_PAHOMQTT is not set */ +/* PKG_USING_WEBCLIENT is not set */ +/* PKG_USING_MONGOOSE is not set */ +/* PKG_USING_WEBTERMINAL is not set */ +/* PKG_USING_CJSON is not set */ +/* PKG_USING_EZXML is not set */ + +/* Marvell WiFi */ + +/* PKG_USING_MARVELLWIFI is not set */ + +/* security packages */ + +/* PKG_USING_MBEDTLS is not set */ + +/* language packages */ + +/* PKG_USING_JERRYSCRIPT is not set */ + +/* multimedia packages */ + +/* tools packages */ + +/* PKG_USING_CMBACKTRACE is not set */ +/* PKG_USING_EASYLOGGER is not set */ + +/* miscellaneous packages */ + +/* PKG_USING_HELLO is not set */ +#define RT_USING_EXT_SDRAM +#define RT_USING_UART1 +/* RT_USING_UART2 is not set */ +/* RT_USING_UART3 is not set */ +/* RT_USING_SPI5 is not set */ #endif From 3e6254e6f1201004f985e16b3c28238dbdebc4b1 Mon Sep 17 00:00:00 2001 From: SummerGift Date: Wed, 1 Nov 2017 11:10:05 +0800 Subject: [PATCH 04/14] update bsp/stm32f429-disco/drivers/board.h --- bsp/stm32f429-disco/drivers/board.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bsp/stm32f429-disco/drivers/board.h b/bsp/stm32f429-disco/drivers/board.h index 87b37eb368..8a32a11d8a 100644 --- a/bsp/stm32f429-disco/drivers/board.h +++ b/bsp/stm32f429-disco/drivers/board.h @@ -59,7 +59,7 @@ extern int __bss_end; // Console on USART: <0=> no console <1=>USART 1 <2=>USART 2 <3=> USART 3 // Default: 1 -#define STM32_CONSOLE_USART 2 +#define STM32_CONSOLE_USART 1 void rt_hw_board_init(void); From 8ba5207b64100f0a9d25b0ee119d9d4e222ebbaa Mon Sep 17 00:00:00 2001 From: SummerGift Date: Wed, 1 Nov 2017 11:14:36 +0800 Subject: [PATCH 05/14] update bsp/stm32f429-disco/project.uvproj --- bsp/stm32f429-disco/project.uvproj | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/bsp/stm32f429-disco/project.uvproj b/bsp/stm32f429-disco/project.uvproj index be5991c77a..03176e4f95 100644 --- a/bsp/stm32f429-disco/project.uvproj +++ b/bsp/stm32f429-disco/project.uvproj @@ -1154,6 +1154,27 @@ ..\..\components\finsh\cmd.c + + + msh.c + 1 + ..\..\components\finsh\msh.c + + + + + msh_cmd.c + 1 + ..\..\components\finsh\msh_cmd.c + + + + + msh_file.c + 1 + ..\..\components\finsh\msh_file.c + + finsh_compiler.c From b08caf651ce8aa4fb8bb0df75daafc0aba59434d Mon Sep 17 00:00:00 2001 From: SummerGift Date: Wed, 1 Nov 2017 11:20:58 +0800 Subject: [PATCH 06/14] update bsp/stm32f429-disco/Kconfig --- bsp/stm32f429-disco/Kconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bsp/stm32f429-disco/Kconfig b/bsp/stm32f429-disco/Kconfig index fe7347e14f..cf8e66ca34 100644 --- a/bsp/stm32f429-disco/Kconfig +++ b/bsp/stm32f429-disco/Kconfig @@ -25,5 +25,7 @@ source "$BSP_DIR/drivers/Kconfig" + + \ No newline at end of file From ee33985eba980e6de8f9f2c6f7c9a61fd35c2e8f Mon Sep 17 00:00:00 2001 From: SummerGift Date: Wed, 1 Nov 2017 14:18:32 +0800 Subject: [PATCH 07/14] add iar template for 429 discovery. --- bsp/stm32f429-disco/project.ewp | 2318 +++++++++++++++++++++++ bsp/stm32f429-disco/project.eww | 10 + bsp/stm32f429-disco/stm32f429_flash.icf | 34 + bsp/stm32f429-disco/template.ewp | 1819 ++++++++++++++++++ 4 files changed, 4181 insertions(+) create mode 100644 bsp/stm32f429-disco/project.ewp create mode 100644 bsp/stm32f429-disco/project.eww create mode 100644 bsp/stm32f429-disco/stm32f429_flash.icf create mode 100644 bsp/stm32f429-disco/template.ewp diff --git a/bsp/stm32f429-disco/project.ewp b/bsp/stm32f429-disco/project.ewp new file mode 100644 index 0000000000..83930a407a --- /dev/null +++ b/bsp/stm32f429-disco/project.ewp @@ -0,0 +1,2318 @@ + + + + 2 + + Debug + + ARM + + 1 + + General + 3 + + 24 + 1 + 1 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + ICCARM + 2 + + 31 + 1 + 1 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + AARM + 2 + + 9 + 1 + 1 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + OBJCOPY + 0 + + 1 + 1 + 1 + + + + + + + + + CUSTOM + 3 + + + + 0 + + + + BICOMP + 0 + + + + BUILDACTION + 1 + + + + + + + ILINK + 0 + + 16 + 1 + 1 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + IARCHIVE + 0 + + 0 + 1 + 1 + + + + + + + BILINK + 0 + + + + + Release + + ARM + + 0 + + General + 3 + + 24 + 1 + 0 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + ICCARM + 2 + + 31 + 1 + 0 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + AARM + 2 + + 9 + 1 + 0 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + OBJCOPY + 0 + + 1 + 1 + 0 + + + + + + + + + CUSTOM + 3 + + + + 0 + + + + BICOMP + 0 + + + + BUILDACTION + 1 + + + + + + + ILINK + 0 + + 16 + 1 + 0 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + IARCHIVE + 0 + + 0 + 1 + 0 + + + + + + + BILINK + 0 + + + + + Applications + + $PROJ_DIR$\applications\application.c + + + $PROJ_DIR$\applications\startup.c + + + + CORTEX-M4 + + $PROJ_DIR$\..\..\libcpu\arm\common\backtrace.c + + + $PROJ_DIR$\..\..\libcpu\arm\cortex-m4\context_iar.S + + + $PROJ_DIR$\..\..\libcpu\arm\cortex-m4\cpuport.c + + + $PROJ_DIR$\..\..\libcpu\arm\common\div0.c + + + $PROJ_DIR$\..\..\libcpu\arm\common\showmem.c + + + + DeviceDrivers + + $PROJ_DIR$\..\..\components\drivers\src\completion.c + + + $PROJ_DIR$\..\..\components\drivers\src\dataqueue.c + + + $PROJ_DIR$\..\..\components\drivers\src\pipe.c + + + $PROJ_DIR$\..\..\components\drivers\src\ringbuffer.c + + + $PROJ_DIR$\..\..\components\drivers\serial\serial.c + + + $PROJ_DIR$\..\..\components\drivers\src\waitqueue.c + + + $PROJ_DIR$\..\..\components\drivers\src\workqueue.c + + + + Drivers + + $PROJ_DIR$\drivers\board.c + + + $PROJ_DIR$\drivers\drv_sdram.c + + + $PROJ_DIR$\drivers\stm32f4xx_it.c + + + $PROJ_DIR$\drivers\usart.c + + + + finsh + + $PROJ_DIR$\..\..\components\finsh\cmd.c + + + $PROJ_DIR$\..\..\components\finsh\finsh_compiler.c + + + $PROJ_DIR$\..\..\components\finsh\finsh_error.c + + + $PROJ_DIR$\..\..\components\finsh\finsh_heap.c + + + $PROJ_DIR$\..\..\components\finsh\finsh_init.c + + + $PROJ_DIR$\..\..\components\finsh\finsh_node.c + + + $PROJ_DIR$\..\..\components\finsh\finsh_ops.c + + + $PROJ_DIR$\..\..\components\finsh\finsh_parser.c + + + $PROJ_DIR$\..\..\components\finsh\finsh_token.c + + + $PROJ_DIR$\..\..\components\finsh\finsh_var.c + + + $PROJ_DIR$\..\..\components\finsh\finsh_vm.c + + + $PROJ_DIR$\..\..\components\finsh\msh.c + + + $PROJ_DIR$\..\..\components\finsh\msh_cmd.c + + + $PROJ_DIR$\..\..\components\finsh\msh_file.c + + + $PROJ_DIR$\..\..\components\finsh\shell.c + + + $PROJ_DIR$\..\..\components\finsh\symbol.c + + + + Kernel + + $PROJ_DIR$\..\..\src\clock.c + + + $PROJ_DIR$\..\..\src\components.c + + + $PROJ_DIR$\..\..\src\device.c + + + $PROJ_DIR$\..\..\src\idle.c + + + $PROJ_DIR$\..\..\src\ipc.c + + + $PROJ_DIR$\..\..\src\irq.c + + + $PROJ_DIR$\..\..\src\kservice.c + + + $PROJ_DIR$\..\..\src\mem.c + + + $PROJ_DIR$\..\..\src\memheap.c + + + $PROJ_DIR$\..\..\src\mempool.c + + + $PROJ_DIR$\..\..\src\object.c + + + $PROJ_DIR$\..\..\src\scheduler.c + + + $PROJ_DIR$\..\..\src\signal.c + + + $PROJ_DIR$\..\..\src\thread.c + + + $PROJ_DIR$\..\..\src\timer.c + + + + STM32_HAL + + $PROJ_DIR$\Libraries\CMSIS\Device\ST\STM32F4xx\Source\Templates\iar\startup_stm32f429xx.s + + + $PROJ_DIR$\Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal.c + + + $PROJ_DIR$\Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_adc.c + + + $PROJ_DIR$\Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_adc_ex.c + + + $PROJ_DIR$\Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_can.c + + + $PROJ_DIR$\Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_cec.c + + + $PROJ_DIR$\Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_cortex.c + + + $PROJ_DIR$\Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_crc.c + + + $PROJ_DIR$\Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_cryp.c + + + $PROJ_DIR$\Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_cryp_ex.c + + + $PROJ_DIR$\Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_dac.c + + + $PROJ_DIR$\Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_dac_ex.c + + + $PROJ_DIR$\Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_dcmi.c + + + $PROJ_DIR$\Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_dcmi_ex.c + + + $PROJ_DIR$\Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_dfsdm.c + + + $PROJ_DIR$\Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_dma.c + + + $PROJ_DIR$\Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_dma2d.c + + + $PROJ_DIR$\Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_dma_ex.c + + + $PROJ_DIR$\Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_dsi.c + + + $PROJ_DIR$\Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_eth.c + + + $PROJ_DIR$\Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_flash.c + + + $PROJ_DIR$\Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_flash_ex.c + + + $PROJ_DIR$\Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_flash_ramfunc.c + + + $PROJ_DIR$\Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_fmpi2c.c + + + $PROJ_DIR$\Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_fmpi2c_ex.c + + + $PROJ_DIR$\Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_gpio.c + + + $PROJ_DIR$\Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_hash.c + + + $PROJ_DIR$\Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_hash_ex.c + + + $PROJ_DIR$\Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_hcd.c + + + $PROJ_DIR$\Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_i2c.c + + + $PROJ_DIR$\Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_i2c_ex.c + + + $PROJ_DIR$\Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_i2s.c + + + $PROJ_DIR$\Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_i2s_ex.c + + + $PROJ_DIR$\Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_irda.c + + + $PROJ_DIR$\Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_iwdg.c + + + $PROJ_DIR$\Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_lptim.c + + + $PROJ_DIR$\Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_ltdc.c + + + $PROJ_DIR$\Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_ltdc_ex.c + + + $PROJ_DIR$\Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_nand.c + + + $PROJ_DIR$\Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_nor.c + + + $PROJ_DIR$\Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_pccard.c + + + $PROJ_DIR$\Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_pcd.c + + + $PROJ_DIR$\Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_pcd_ex.c + + + $PROJ_DIR$\Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_pwr.c + + + $PROJ_DIR$\Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_pwr_ex.c + + + $PROJ_DIR$\Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_qspi.c + + + $PROJ_DIR$\Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_rcc.c + + + $PROJ_DIR$\Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_rcc_ex.c + + + $PROJ_DIR$\Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_rng.c + + + $PROJ_DIR$\Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_rtc.c + + + $PROJ_DIR$\Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_rtc_ex.c + + + $PROJ_DIR$\Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_sai.c + + + $PROJ_DIR$\Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_sai_ex.c + + + $PROJ_DIR$\Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_sd.c + + + $PROJ_DIR$\Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_sdram.c + + + $PROJ_DIR$\Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_smartcard.c + + + $PROJ_DIR$\Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_spdifrx.c + + + $PROJ_DIR$\Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_spi.c + + + $PROJ_DIR$\Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_sram.c + + + $PROJ_DIR$\Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_tim.c + + + $PROJ_DIR$\Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_tim_ex.c + + + $PROJ_DIR$\Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_uart.c + + + $PROJ_DIR$\Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_usart.c + + + $PROJ_DIR$\Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_wwdg.c + + + $PROJ_DIR$\Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_ll_fmc.c + + + $PROJ_DIR$\Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_ll_fsmc.c + + + $PROJ_DIR$\Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_ll_sdmmc.c + + + $PROJ_DIR$\Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_ll_usb.c + + + $PROJ_DIR$\Libraries\CMSIS\Device\ST\STM32F4xx\Source\Templates\system_stm32f4xx.c + + + + + diff --git a/bsp/stm32f429-disco/project.eww b/bsp/stm32f429-disco/project.eww new file mode 100644 index 0000000000..faa93f37cd --- /dev/null +++ b/bsp/stm32f429-disco/project.eww @@ -0,0 +1,10 @@ + + + + + $WS_DIR$\project.ewp + + + + + diff --git a/bsp/stm32f429-disco/stm32f429_flash.icf b/bsp/stm32f429-disco/stm32f429_flash.icf new file mode 100644 index 0000000000..47c5280d08 --- /dev/null +++ b/bsp/stm32f429-disco/stm32f429_flash.icf @@ -0,0 +1,34 @@ +/*###ICF### Section handled by ICF editor, don't touch! ****/ +/*-Editor annotation file-*/ +/* IcfEditorFile="$TOOLKIT_DIR$\config\ide\IcfEditor\cortex_v1_0.xml" */ +/*-Specials-*/ +define symbol __ICFEDIT_intvec_start__ = 0x08000000; +/*-Memory Regions-*/ +define symbol __ICFEDIT_region_ROM_start__ = 0x08000000; +define symbol __ICFEDIT_region_ROM_end__ = 0x080FFFFF; +define symbol __ICFEDIT_region_RAM_start__ = 0x20000000; +define symbol __ICFEDIT_region_RAM_end__ = 0x2002FFFF; +/*-Sizes-*/ +define symbol __ICFEDIT_size_cstack__ = 0x200; +define symbol __ICFEDIT_size_heap__ = 0x000; +/**** End of ICF editor section. ###ICF###*/ + + +define memory mem with size = 4G; +define region ROM_region = mem:[from __ICFEDIT_region_ROM_start__ to __ICFEDIT_region_ROM_end__]; +define region RAM_region = mem:[from __ICFEDIT_region_RAM_start__ to __ICFEDIT_region_RAM_end__]; + +define block CSTACK with alignment = 8, size = __ICFEDIT_size_cstack__ { }; +define block HEAP with alignment = 8, size = __ICFEDIT_size_heap__ { }; +define block RTT_INIT_FUNC with fixed order { readonly section .rti_fn* }; + +initialize by copy { readwrite }; +do not initialize { section .noinit }; + +keep { section FSymTab }; +keep { section VSymTab }; +keep { section .rti_fn* }; +place at address mem:__ICFEDIT_intvec_start__ { readonly section .intvec }; + +place in ROM_region { readonly, block RTT_INIT_FUNC }; +place in RAM_region { readwrite, block CSTACK, last block HEAP}; diff --git a/bsp/stm32f429-disco/template.ewp b/bsp/stm32f429-disco/template.ewp new file mode 100644 index 0000000000..697f6d71f3 --- /dev/null +++ b/bsp/stm32f429-disco/template.ewp @@ -0,0 +1,1819 @@ + + + + 2 + + Debug + + ARM + + 1 + + General + 3 + + 21 + 1 + 1 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + ICCARM + 2 + + 28 + 1 + 1 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + AARM + 2 + + 8 + 1 + 1 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + OBJCOPY + 0 + + 1 + 1 + 1 + + + + + + + + + CUSTOM + 3 + + + + + + + BICOMP + 0 + + + + BUILDACTION + 1 + + + + + + + ILINK + 0 + + 14 + 1 + 1 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + IARCHIVE + 0 + + 0 + 1 + 1 + + + + + + + BILINK + 0 + + + + + Release + + ARM + + 0 + + General + 3 + + 21 + 1 + 0 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + ICCARM + 2 + + 28 + 1 + 0 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + AARM + 2 + + 8 + 1 + 0 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + OBJCOPY + 0 + + 1 + 1 + 0 + + + + + + + + + CUSTOM + 3 + + + + + + + BICOMP + 0 + + + + BUILDACTION + 1 + + + + + + + ILINK + 0 + + 14 + 1 + 0 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + IARCHIVE + 0 + + 0 + 1 + 0 + + + + + + + BILINK + 0 + + + + + + From c353114c084984c986b46a6c0254f7c6e194b3da Mon Sep 17 00:00:00 2001 From: SummerGift Date: Wed, 1 Nov 2017 14:48:49 +0800 Subject: [PATCH 08/14] add mdk5 template for 429discovery. --- bsp/stm32f429-disco/project.uvprojx | 1008 ++++++++++++++++++++++++++ bsp/stm32f429-disco/template.uvprojx | 386 ++++++++++ 2 files changed, 1394 insertions(+) create mode 100644 bsp/stm32f429-disco/project.uvprojx create mode 100644 bsp/stm32f429-disco/template.uvprojx diff --git a/bsp/stm32f429-disco/project.uvprojx b/bsp/stm32f429-disco/project.uvprojx new file mode 100644 index 0000000000..cb0d484a47 --- /dev/null +++ b/bsp/stm32f429-disco/project.uvprojx @@ -0,0 +1,1008 @@ + + + + 2.1 + +
### uVision Project, (C) Keil Software
+ + + + rt_thread_stm32f429 + 0x4 + ARM-ADS + 5060300::V5.06 update 3 (build 300)::ARMCC + + + STM32F429ZITx + STMicroelectronics + Keil.STM32F4xx_DFP.2.5.0 + http://www.keil.com/pack + IRAM(0x20000000,0x30000) IRAM2(0x10000000,0x10000) IROM(0x08000000,0x200000) CPUTYPE("Cortex-M4") FPU2 CLOCK(12000000) ELITTLE + + + UL2CM3(-S0 -C0 -P0 -FD20000000 -FC1000 -FN1 -FF0STM32F4xx_2048 -FS08000000 -FL0200000 -FP0($$Device:STM32F429ZITx$CMSIS\Flash\STM32F4xx_2048.FLM)) + 0 + $$Device:STM32F429ZITx$Drivers\CMSIS\Device\ST\STM32F4xx\Include\stm32f4xx.h + + + + + + + + + + $$Device:STM32F429ZITx$CMSIS\SVD\STM32F429x.svd + 0 + 0 + + + + + + + 0 + 0 + 0 + 0 + 1 + + .\Objects\ + template + 1 + 0 + 0 + 1 + 1 + .\Listings\ + 1 + 0 + 0 + + 0 + 0 + + + 0 + 0 + 0 + 0 + + + 0 + 0 + + + 0 + 0 + 0 + 0 + + + 0 + 0 + + + 0 + 0 + 0 + 0 + + 0 + + + + 0 + 0 + 0 + 0 + 0 + 1 + 0 + 0 + 0 + 0 + 3 + + + 1 + + + SARMCM3.DLL + -REMAP -MPU + DCM.DLL + -pCM4 + SARMCM3.DLL + -MPU + TCM.DLL + -pCM4 + + + + 1 + 0 + 0 + 0 + 16 + + + + + 1 + 0 + 0 + 1 + 0 + -1 + + 1 + BIN\UL2CM3.DLL + + + + + + 0 + + + + 0 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 0 + 1 + 1 + 0 + 1 + 1 + 0 + 0 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 0 + 0 + "Cortex-M4" + + 0 + 0 + 0 + 1 + 1 + 0 + 0 + 2 + 1 + 0 + 8 + 0 + 0 + 0 + 0 + 3 + 3 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 1 + 0 + 0 + 0 + 0 + 1 + 0 + + + 0 + 0x0 + 0x0 + + + 0 + 0x0 + 0x0 + + + 0 + 0x0 + 0x0 + + + 0 + 0x0 + 0x0 + + + 0 + 0x0 + 0x0 + + + 0 + 0x0 + 0x0 + + + 0 + 0x20000000 + 0x30000 + + + 1 + 0x8000000 + 0x200000 + + + 0 + 0x0 + 0x0 + + + 1 + 0x0 + 0x0 + + + 1 + 0x0 + 0x0 + + + 1 + 0x0 + 0x0 + + + 1 + 0x8000000 + 0x200000 + + + 1 + 0x0 + 0x0 + + + 0 + 0x0 + 0x0 + + + 0 + 0x0 + 0x0 + + + 0 + 0x0 + 0x0 + + + 0 + 0x20000000 + 0x30000 + + + 0 + 0x10000000 + 0x10000 + + + + + + 1 + 1 + 0 + 0 + 1 + 0 + 0 + 0 + 0 + 0 + 2 + 0 + 0 + 1 + 0 + 1 + 1 + 1 + 1 + 0 + 0 + 0 + + + USE_HAL_DRIVER, STM32F429xx + + applications;.;drivers;Libraries\STM32F4xx_HAL_Driver\Inc;Libraries\CMSIS\Device\ST\STM32F4xx\Include;Libraries\CMSIS\Include;..\..\include;..\..\libcpu\arm\cortex-m4;..\..\libcpu\arm\common;..\..\components\drivers\include;..\..\components\drivers\include;..\..\components\finsh + + + + 1 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + + + + + + + + + 1 + 0 + 0 + 0 + 1 + 0 + 0x08000000 + 0x20000000 + + + + + --keep *.o(.rti_fn.*) --keep *.o(FSymTab) --keep *.o(VSymTab) + + + + + + + + Applications + + + application.c + 1 + applications\application.c + + + startup.c + 1 + applications\startup.c + + + + + Drivers + + + board.c + 1 + drivers\board.c + + + stm32f4xx_it.c + 1 + drivers\stm32f4xx_it.c + + + usart.c + 1 + drivers\usart.c + + + drv_sdram.c + 1 + drivers\drv_sdram.c + + + + + STM32_HAL + + + system_stm32f4xx.c + 1 + Libraries\CMSIS\Device\ST\STM32F4xx\Source\Templates\system_stm32f4xx.c + + + stm32f4xx_hal.c + 1 + Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal.c + + + stm32f4xx_hal_adc.c + 1 + Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_adc.c + + + stm32f4xx_hal_adc_ex.c + 1 + Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_adc_ex.c + + + stm32f4xx_hal_can.c + 1 + Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_can.c + + + stm32f4xx_hal_cec.c + 1 + Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_cec.c + + + stm32f4xx_hal_cortex.c + 1 + Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_cortex.c + + + stm32f4xx_hal_crc.c + 1 + Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_crc.c + + + stm32f4xx_hal_cryp.c + 1 + Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_cryp.c + + + stm32f4xx_hal_cryp_ex.c + 1 + Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_cryp_ex.c + + + stm32f4xx_hal_dac.c + 1 + Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_dac.c + + + stm32f4xx_hal_dac_ex.c + 1 + Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_dac_ex.c + + + stm32f4xx_hal_dcmi.c + 1 + Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_dcmi.c + + + stm32f4xx_hal_dcmi_ex.c + 1 + Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_dcmi_ex.c + + + stm32f4xx_hal_dfsdm.c + 1 + Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_dfsdm.c + + + stm32f4xx_hal_dma.c + 1 + Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_dma.c + + + stm32f4xx_hal_dma2d.c + 1 + Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_dma2d.c + + + stm32f4xx_hal_dma_ex.c + 1 + Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_dma_ex.c + + + stm32f4xx_hal_dsi.c + 1 + Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_dsi.c + + + stm32f4xx_hal_eth.c + 1 + Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_eth.c + + + stm32f4xx_hal_flash.c + 1 + Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_flash.c + + + stm32f4xx_hal_flash_ex.c + 1 + Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_flash_ex.c + + + stm32f4xx_hal_flash_ramfunc.c + 1 + Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_flash_ramfunc.c + + + stm32f4xx_hal_fmpi2c.c + 1 + Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_fmpi2c.c + + + stm32f4xx_hal_fmpi2c_ex.c + 1 + Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_fmpi2c_ex.c + + + stm32f4xx_hal_gpio.c + 1 + Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_gpio.c + + + stm32f4xx_hal_hash.c + 1 + Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_hash.c + + + stm32f4xx_hal_hash_ex.c + 1 + Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_hash_ex.c + + + stm32f4xx_hal_hcd.c + 1 + Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_hcd.c + + + stm32f4xx_hal_i2c.c + 1 + Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_i2c.c + + + stm32f4xx_hal_i2c_ex.c + 1 + Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_i2c_ex.c + + + stm32f4xx_hal_i2s.c + 1 + Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_i2s.c + + + stm32f4xx_hal_i2s_ex.c + 1 + Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_i2s_ex.c + + + stm32f4xx_hal_irda.c + 1 + Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_irda.c + + + stm32f4xx_hal_iwdg.c + 1 + Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_iwdg.c + + + stm32f4xx_hal_lptim.c + 1 + Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_lptim.c + + + stm32f4xx_hal_ltdc.c + 1 + Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_ltdc.c + + + stm32f4xx_hal_ltdc_ex.c + 1 + Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_ltdc_ex.c + + + stm32f4xx_hal_nand.c + 1 + Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_nand.c + + + stm32f4xx_hal_nor.c + 1 + Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_nor.c + + + stm32f4xx_hal_pccard.c + 1 + Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_pccard.c + + + stm32f4xx_hal_pcd.c + 1 + Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_pcd.c + + + stm32f4xx_hal_pcd_ex.c + 1 + Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_pcd_ex.c + + + stm32f4xx_hal_pwr.c + 1 + Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_pwr.c + + + stm32f4xx_hal_pwr_ex.c + 1 + Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_pwr_ex.c + + + stm32f4xx_hal_qspi.c + 1 + Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_qspi.c + + + stm32f4xx_hal_rcc.c + 1 + Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_rcc.c + + + stm32f4xx_hal_rcc_ex.c + 1 + Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_rcc_ex.c + + + stm32f4xx_hal_rng.c + 1 + Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_rng.c + + + stm32f4xx_hal_rtc.c + 1 + Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_rtc.c + + + stm32f4xx_hal_rtc_ex.c + 1 + Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_rtc_ex.c + + + stm32f4xx_hal_sai.c + 1 + Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_sai.c + + + stm32f4xx_hal_sai_ex.c + 1 + Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_sai_ex.c + + + stm32f4xx_hal_sd.c + 1 + Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_sd.c + + + stm32f4xx_hal_sdram.c + 1 + Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_sdram.c + + + stm32f4xx_hal_smartcard.c + 1 + Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_smartcard.c + + + stm32f4xx_hal_spdifrx.c + 1 + Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_spdifrx.c + + + stm32f4xx_hal_spi.c + 1 + Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_spi.c + + + stm32f4xx_hal_sram.c + 1 + Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_sram.c + + + stm32f4xx_hal_tim.c + 1 + Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_tim.c + + + stm32f4xx_hal_tim_ex.c + 1 + Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_tim_ex.c + + + stm32f4xx_hal_uart.c + 1 + Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_uart.c + + + stm32f4xx_hal_usart.c + 1 + Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_usart.c + + + stm32f4xx_hal_wwdg.c + 1 + Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_wwdg.c + + + stm32f4xx_ll_fmc.c + 1 + Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_ll_fmc.c + + + stm32f4xx_ll_fsmc.c + 1 + Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_ll_fsmc.c + + + stm32f4xx_ll_sdmmc.c + 1 + Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_ll_sdmmc.c + + + stm32f4xx_ll_usb.c + 1 + Libraries\STM32F4xx_HAL_Driver\Src\stm32f4xx_ll_usb.c + + + startup_stm32f429xx.s + 2 + Libraries\CMSIS\Device\ST\STM32F4xx\Source\Templates\arm\startup_stm32f429xx.s + + + + + Kernel + + + clock.c + 1 + ..\..\src\clock.c + + + components.c + 1 + ..\..\src\components.c + + + device.c + 1 + ..\..\src\device.c + + + idle.c + 1 + ..\..\src\idle.c + + + ipc.c + 1 + ..\..\src\ipc.c + + + irq.c + 1 + ..\..\src\irq.c + + + kservice.c + 1 + ..\..\src\kservice.c + + + mem.c + 1 + ..\..\src\mem.c + + + memheap.c + 1 + ..\..\src\memheap.c + + + mempool.c + 1 + ..\..\src\mempool.c + + + object.c + 1 + ..\..\src\object.c + + + scheduler.c + 1 + ..\..\src\scheduler.c + + + signal.c + 1 + ..\..\src\signal.c + + + thread.c + 1 + ..\..\src\thread.c + + + timer.c + 1 + ..\..\src\timer.c + + + + + CORTEX-M4 + + + cpuport.c + 1 + ..\..\libcpu\arm\cortex-m4\cpuport.c + + + context_rvds.S + 2 + ..\..\libcpu\arm\cortex-m4\context_rvds.S + + + backtrace.c + 1 + ..\..\libcpu\arm\common\backtrace.c + + + div0.c + 1 + ..\..\libcpu\arm\common\div0.c + + + showmem.c + 1 + ..\..\libcpu\arm\common\showmem.c + + + + + DeviceDrivers + + + serial.c + 1 + ..\..\components\drivers\serial\serial.c + + + completion.c + 1 + ..\..\components\drivers\src\completion.c + + + dataqueue.c + 1 + ..\..\components\drivers\src\dataqueue.c + + + pipe.c + 1 + ..\..\components\drivers\src\pipe.c + + + ringbuffer.c + 1 + ..\..\components\drivers\src\ringbuffer.c + + + waitqueue.c + 1 + ..\..\components\drivers\src\waitqueue.c + + + workqueue.c + 1 + ..\..\components\drivers\src\workqueue.c + + + + + finsh + + + shell.c + 1 + ..\..\components\finsh\shell.c + + + symbol.c + 1 + ..\..\components\finsh\symbol.c + + + cmd.c + 1 + ..\..\components\finsh\cmd.c + + + msh.c + 1 + ..\..\components\finsh\msh.c + + + msh_cmd.c + 1 + ..\..\components\finsh\msh_cmd.c + + + msh_file.c + 1 + ..\..\components\finsh\msh_file.c + + + finsh_compiler.c + 1 + ..\..\components\finsh\finsh_compiler.c + + + finsh_error.c + 1 + ..\..\components\finsh\finsh_error.c + + + finsh_heap.c + 1 + ..\..\components\finsh\finsh_heap.c + + + finsh_init.c + 1 + ..\..\components\finsh\finsh_init.c + + + finsh_node.c + 1 + ..\..\components\finsh\finsh_node.c + + + finsh_ops.c + 1 + ..\..\components\finsh\finsh_ops.c + + + finsh_parser.c + 1 + ..\..\components\finsh\finsh_parser.c + + + finsh_var.c + 1 + ..\..\components\finsh\finsh_var.c + + + finsh_vm.c + 1 + ..\..\components\finsh\finsh_vm.c + + + finsh_token.c + 1 + ..\..\components\finsh\finsh_token.c + + + + + + + +
diff --git a/bsp/stm32f429-disco/template.uvprojx b/bsp/stm32f429-disco/template.uvprojx new file mode 100644 index 0000000000..f4c15edeec --- /dev/null +++ b/bsp/stm32f429-disco/template.uvprojx @@ -0,0 +1,386 @@ + + + + 2.1 + +
### uVision Project, (C) Keil Software
+ + + + rt_thread_stm32f429 + 0x4 + ARM-ADS + 5060300::V5.06 update 3 (build 300)::ARMCC + + + STM32F429ZITx + STMicroelectronics + Keil.STM32F4xx_DFP.2.5.0 + http://www.keil.com/pack + IRAM(0x20000000,0x30000) IRAM2(0x10000000,0x10000) IROM(0x08000000,0x200000) CPUTYPE("Cortex-M4") FPU2 CLOCK(12000000) ELITTLE + + + UL2CM3(-S0 -C0 -P0 -FD20000000 -FC1000 -FN1 -FF0STM32F4xx_2048 -FS08000000 -FL0200000 -FP0($$Device:STM32F429ZITx$CMSIS\Flash\STM32F4xx_2048.FLM)) + 0 + $$Device:STM32F429ZITx$Drivers\CMSIS\Device\ST\STM32F4xx\Include\stm32f4xx.h + + + + + + + + + + $$Device:STM32F429ZITx$CMSIS\SVD\STM32F429x.svd + 0 + 0 + + + + + + + 0 + 0 + 0 + 0 + 1 + + .\Objects\ + template + 1 + 0 + 0 + 1 + 1 + .\Listings\ + 1 + 0 + 0 + + 0 + 0 + + + 0 + 0 + 0 + 0 + + + 0 + 0 + + + 0 + 0 + 0 + 0 + + + 0 + 0 + + + 0 + 0 + 0 + 0 + + 0 + + + + 0 + 0 + 0 + 0 + 0 + 1 + 0 + 0 + 0 + 0 + 3 + + + 1 + + + SARMCM3.DLL + -REMAP -MPU + DCM.DLL + -pCM4 + SARMCM3.DLL + -MPU + TCM.DLL + -pCM4 + + + + 1 + 0 + 0 + 0 + 16 + + + + + 1 + 0 + 0 + 1 + 0 + -1 + + 1 + BIN\UL2CM3.DLL + + + + + + 0 + + + + 0 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 0 + 1 + 1 + 0 + 1 + 1 + 0 + 0 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 0 + 0 + "Cortex-M4" + + 0 + 0 + 0 + 1 + 1 + 0 + 0 + 2 + 1 + 0 + 8 + 0 + 0 + 0 + 0 + 3 + 3 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 1 + 0 + 0 + 0 + 0 + 1 + 0 + + + 0 + 0x0 + 0x0 + + + 0 + 0x0 + 0x0 + + + 0 + 0x0 + 0x0 + + + 0 + 0x0 + 0x0 + + + 0 + 0x0 + 0x0 + + + 0 + 0x0 + 0x0 + + + 0 + 0x20000000 + 0x30000 + + + 1 + 0x8000000 + 0x200000 + + + 0 + 0x0 + 0x0 + + + 1 + 0x0 + 0x0 + + + 1 + 0x0 + 0x0 + + + 1 + 0x0 + 0x0 + + + 1 + 0x8000000 + 0x200000 + + + 1 + 0x0 + 0x0 + + + 0 + 0x0 + 0x0 + + + 0 + 0x0 + 0x0 + + + 0 + 0x0 + 0x0 + + + 0 + 0x20000000 + 0x30000 + + + 0 + 0x10000000 + 0x10000 + + + + + + 1 + 1 + 0 + 0 + 1 + 0 + 0 + 0 + 0 + 0 + 2 + 0 + 0 + 1 + 0 + 1 + 1 + 1 + 1 + 0 + 0 + 0 + + + + + + + + + 1 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + + + + + + + + + 1 + 0 + 0 + 0 + 1 + 0 + 0x08000000 + 0x20000000 + + + + + + + + + + + + + Source Group 1 + + + + + +
From e99009f76baf7ddaa258f0228789f24e8eca5413 Mon Sep 17 00:00:00 2001 From: weety Date: Wed, 1 Nov 2017 16:07:08 +0800 Subject: [PATCH 09/14] [BSP] Remove the old ipaddr settings. --- bsp/dm365/rtconfig.h | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/bsp/dm365/rtconfig.h b/bsp/dm365/rtconfig.h index bc6f728ab3..2a8cbdb22a 100644 --- a/bsp/dm365/rtconfig.h +++ b/bsp/dm365/rtconfig.h @@ -188,22 +188,13 @@ /* #define RT_LWIP_DHCP */ /* ip address of target */ -#define RT_LWIP_IPADDR0 192 -#define RT_LWIP_IPADDR1 168 -#define RT_LWIP_IPADDR2 1 -#define RT_LWIP_IPADDR3 30 +#define RT_LWIP_IPADDR "192.168.1.30" /* gateway address of target */ -#define RT_LWIP_GWADDR0 192 -#define RT_LWIP_GWADDR1 168 -#define RT_LWIP_GWADDR2 1 -#define RT_LWIP_GWADDR3 1 +#define RT_LWIP_GWADDR "192.168.1.1" /* mask address of target */ -#define RT_LWIP_MSKADDR0 255 -#define RT_LWIP_MSKADDR1 255 -#define RT_LWIP_MSKADDR2 255 -#define RT_LWIP_MSKADDR3 0 +#define RT_LWIP_MSKADDR "255.255.255.0" /* the number of blocks for pbuf */ #define RT_LWIP_PBUF_NUM 16 From 849055e5c08c75149e1579b6aaf1a97fc534d8b5 Mon Sep 17 00:00:00 2001 From: SummerGift Date: Wed, 1 Nov 2017 17:00:33 +0800 Subject: [PATCH 10/14] fix bsp/nv32f100x for mdk compile --- bsp/nv32f100x/board/src/board.c | 1 + bsp/nv32f100x/project.uvprojx | 202 ++++++++------------------------ bsp/nv32f100x/template.uvprojx | 4 +- 3 files changed, 56 insertions(+), 151 deletions(-) diff --git a/bsp/nv32f100x/board/src/board.c b/bsp/nv32f100x/board/src/board.c index 8c753621a9..43c7910384 100644 --- a/bsp/nv32f100x/board/src/board.c +++ b/bsp/nv32f100x/board/src/board.c @@ -14,6 +14,7 @@ #include #include +#include #include "sysinit.h" #include "board.h" #include "drv_uart.h" diff --git a/bsp/nv32f100x/project.uvprojx b/bsp/nv32f100x/project.uvprojx index 927f5d1a66..9bfdd82133 100644 --- a/bsp/nv32f100x/project.uvprojx +++ b/bsp/nv32f100x/project.uvprojx @@ -1,13 +1,16 @@ + 2.1 +
### uVision Project, (C) Keil Software
+ nv32f100x 0x4 ARM-ADS - 5060183::V5.06 update 2 (build 183)::ARMCC + 5060300::V5.06 update 3 (build 300)::ARMCC NV32F100FS16E @@ -15,28 +18,28 @@ Keil.NV32F100_DFP.1.0 http://www.keil.com/pack/ IRAM(0x1FFFF800,0x2000) IROM(0x00000000,0x20000) IROM2(0x00400000,0x1400) CPUTYPE("Cortex-M0+") CLOCK(12000000) ELITTLE - - + + UL2CM3(-S0 -C0 -P0 -FD1FFFF800 -FC2000 -FN2 -FF0nv32f100_128 -FS00 -FL020000 -FF1nv32f100_nvr -FS1400000 -FL11400 -FP0($$Device:NV32F100FS16E$Flash\nv32f100_128.FLM) -FP1($$Device:NV32F100FS16E$Flash\nv32f100_nvr.FLM)) 0 $$Device:NV32F100FS16E$Device\Include\nv32f100.h - - - - - - - - - + + + + + + + + + $$Device:NV32F100FS16E$SVD\nv32f100S16.svd 0 0 - - - - - + + + + + 0 0 @@ -51,15 +54,15 @@ 0 1 1 - C:\Users\HF00\Documents\ + .\output\ 1 0 0 0 0 - - + + 0 0 0 @@ -68,8 +71,8 @@ 0 0 - - + + 0 0 0 @@ -78,15 +81,15 @@ 0 0 - - + + 0 0 0 0 1 - + 0 @@ -100,8 +103,8 @@ 0 0 3 - - + + 0 @@ -134,11 +137,11 @@ 1 BIN\UL2CM3.DLL - - - - - + + + + + 0 @@ -171,7 +174,7 @@ 0 0 "Cortex-M0+" - + 0 0 0 @@ -303,7 +306,7 @@ 0x0 - + 1 @@ -327,10 +330,11 @@ 1 0 0 + 0 - + NV32, KEIL - + app\inc;.;board\inc;lib\inc;..\..\include;..\..\libcpu\arm\cortex-m0;..\..\libcpu\arm\common;..\..\components\drivers\include;..\..\components\drivers\include;..\..\components\drivers\spi;..\..\components\drivers\include;..\..\components\drivers\include;..\..\components\finsh @@ -344,11 +348,12 @@ 0 0 0 + 0 - - - - + + + + @@ -360,13 +365,13 @@ 0 0x08000000 0x20000000 - - - - + + + + --keep *.o(.rti_fn.*) --keep *.o(FSymTab) - - + + @@ -379,8 +384,6 @@ 1 app\src\ledapp.c
-
- main.c 1 @@ -396,22 +399,16 @@ 1 board\src\board.c - - drv_uart.c 1 board\src\drv_uart.c - - start.c 1 board\src\start.c - - sysinit.c 1 @@ -427,127 +424,91 @@ 1 lib\src\acmp.c - - adc.c 1 lib\src\adc.c - - arm_cm0.c 1 lib\src\arm_cm0.c - - crc.c 1 lib\src\crc.c - - eeprom.c 1 lib\src\eeprom.c - - etm.c 1 lib\src\etm.c - - flash.c 1 lib\src\flash.c - - gpio.c 1 lib\src\gpio.c - - i2c.c 1 lib\src\i2c.c - - ics.c 1 lib\src\ics.c - - kbi.c 1 lib\src\kbi.c - - pit.c 1 lib\src\pit.c - - pmc.c 1 lib\src\pmc.c - - rtc.c 1 lib\src\rtc.c - - sim.c 1 lib\src\sim.c - - spi.c 1 lib\src\spi.c - - uart.c 1 lib\src\uart.c - - wdog.c 1 lib\src\wdog.c - - startup_NV32.s 2 @@ -563,85 +524,61 @@ 1 ..\..\src\clock.c - - components.c 1 ..\..\src\components.c - - device.c 1 ..\..\src\device.c - - idle.c 1 ..\..\src\idle.c - - ipc.c 1 ..\..\src\ipc.c - - irq.c 1 ..\..\src\irq.c - - kservice.c 1 ..\..\src\kservice.c - - mem.c 1 ..\..\src\mem.c - - object.c 1 ..\..\src\object.c - - scheduler.c 1 ..\..\src\scheduler.c - - signal.c 1 ..\..\src\signal.c - - thread.c 1 ..\..\src\thread.c - - timer.c 1 @@ -657,29 +594,21 @@ 1 ..\..\libcpu\arm\cortex-m0\cpuport.c - - context_rvds.S 2 ..\..\libcpu\arm\cortex-m0\context_rvds.S - - backtrace.c 1 ..\..\libcpu\arm\common\backtrace.c - - div0.c 1 ..\..\libcpu\arm\common\div0.c - - showmem.c 1 @@ -695,64 +624,46 @@ 1 ..\..\components\drivers\misc\pin.c - - serial.c 1 ..\..\components\drivers\serial\serial.c - - spi_core.c 1 ..\..\components\drivers\spi\spi_core.c - - spi_dev.c 1 ..\..\components\drivers\spi\spi_dev.c - - completion.c 1 ..\..\components\drivers\src\completion.c - - dataqueue.c 1 ..\..\components\drivers\src\dataqueue.c - - pipe.c 1 ..\..\components\drivers\src\pipe.c - - ringbuffer.c 1 ..\..\components\drivers\src\ringbuffer.c - - waitqueue.c 1 ..\..\components\drivers\src\waitqueue.c - - workqueue.c 1 @@ -768,36 +679,26 @@ 1 ..\..\components\finsh\shell.c - - symbol.c 1 ..\..\components\finsh\symbol.c - - cmd.c 1 ..\..\components\finsh\cmd.c - - msh.c 1 ..\..\components\finsh\msh.c - - msh_cmd.c 1 ..\..\components\finsh\msh_cmd.c - - msh_file.c 1 @@ -808,4 +709,5 @@ + diff --git a/bsp/nv32f100x/template.uvprojx b/bsp/nv32f100x/template.uvprojx index bab53d35cc..366d0a93a7 100644 --- a/bsp/nv32f100x/template.uvprojx +++ b/bsp/nv32f100x/template.uvprojx @@ -54,7 +54,7 @@ 0 1 1 - C:\Users\HF00\Documents\ + .\output\ 1 0 0 @@ -330,6 +330,7 @@ 1 0 0 + 0 @@ -347,6 +348,7 @@ 0 0 0 + 0 From 0427afc1a82735a9e0c9c008fe62e79530c7a7ab Mon Sep 17 00:00:00 2001 From: SummerGift Date: Wed, 1 Nov 2017 18:10:32 +0800 Subject: [PATCH 11/14] update bsp/lpc408x/project.uvopt bsp/lpc408x/project.uvproj --- bsp/lpc408x/project.uvopt | 1680 +++++++++++++++++++++++++++++++++++- bsp/lpc408x/project.uvproj | 297 ++----- 2 files changed, 1734 insertions(+), 243 deletions(-) diff --git a/bsp/lpc408x/project.uvopt b/bsp/lpc408x/project.uvopt index bfe099d207..7093ff357b 100644 --- a/bsp/lpc408x/project.uvopt +++ b/bsp/lpc408x/project.uvopt @@ -75,17 +75,7 @@ 0 1 - 0 - - SARMCM3.DLL - -MPU - DCM.DLL - -pCM4 - SARMCM3.DLL - -MPU - TCM.DLL - -pCM4 - + 8 0 1 @@ -97,16 +87,19 @@ 1 1 1 - 0 + 1 1 1 1 0 1 0 + 1 + 1 + 1 0 0 - 7 + 6 @@ -120,6 +113,11 @@ Segger\JL2CM3.dll + + 0 + UL2CM3 + UL2CM3(-O4303 -S0 -C0 -FO7 -FD10000000 -FC800 -FN1 -FF0LPC_IAP_512 -FS00 -FL080000) + 0 JL2CM3 @@ -161,4 +159,1660 @@ + + Applications + 0 + 0 + 0 + 0 + + 1 + 1 + 1 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + applications\application.c + application.c + 0 + 0 + + + 1 + 2 + 1 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + applications\board.c + board.c + 0 + 0 + + + 1 + 3 + 1 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + applications\canapp.c + canapp.c + 0 + 0 + + + 1 + 4 + 1 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + applications\sram.c + sram.c + 0 + 0 + + + 1 + 5 + 1 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + applications\startup.c + startup.c + 0 + 0 + + + + + Drivers + 0 + 0 + 0 + 0 + + 2 + 6 + 1 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + drivers\drv_hwtimer.c + drv_hwtimer.c + 0 + 0 + + + 2 + 7 + 1 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + drivers\drv_led.c + drv_led.c + 0 + 0 + + + 2 + 8 + 1 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + drivers\drv_lpccan.c + drv_lpccan.c + 0 + 0 + + + 2 + 9 + 1 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + drivers\drv_sdram.c + drv_sdram.c + 0 + 0 + + + 2 + 10 + 1 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + drivers\drv_uart.c + drv_uart.c + 0 + 0 + + + + + Libraries + 0 + 0 + 0 + 0 + + 3 + 11 + 1 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + Libraries\Device\NXP\LPC407x_8x_177x_8x\Source\Templates\system_LPC407x_8x_177x_8x.c + system_LPC407x_8x_177x_8x.c + 0 + 0 + + + 3 + 12 + 2 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + Libraries\Device\NXP\LPC407x_8x_177x_8x\Source\Templates\ARM\startup_LPC407x_8x_177x_8x.s + startup_LPC407x_8x_177x_8x.s + 0 + 0 + + + 3 + 13 + 1 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + Libraries\Drivers\source\lpc_adc.c + lpc_adc.c + 0 + 0 + + + 3 + 14 + 1 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + Libraries\Drivers\source\lpc_bod.c + lpc_bod.c + 0 + 0 + + + 3 + 15 + 1 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + Libraries\Drivers\source\lpc_can.c + lpc_can.c + 0 + 0 + + + 3 + 16 + 1 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + Libraries\Drivers\source\lpc_clkpwr.c + lpc_clkpwr.c + 0 + 0 + + + 3 + 17 + 1 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + Libraries\Drivers\source\lpc_crc.c + lpc_crc.c + 0 + 0 + + + 3 + 18 + 1 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + Libraries\Drivers\source\lpc_dac.c + lpc_dac.c + 0 + 0 + + + 3 + 19 + 1 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + Libraries\Drivers\source\lpc_eeprom.c + lpc_eeprom.c + 0 + 0 + + + 3 + 20 + 1 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + Libraries\Drivers\source\lpc_emc.c + lpc_emc.c + 0 + 0 + + + 3 + 21 + 1 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + Libraries\Drivers\source\lpc_exti.c + lpc_exti.c + 0 + 0 + + + 3 + 22 + 1 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + Libraries\Drivers\source\lpc_gpdma.c + lpc_gpdma.c + 0 + 0 + + + 3 + 23 + 1 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + Libraries\Drivers\source\lpc_gpio.c + lpc_gpio.c + 0 + 0 + + + 3 + 24 + 1 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + Libraries\Drivers\source\lpc_i2c.c + lpc_i2c.c + 0 + 0 + + + 3 + 25 + 1 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + Libraries\Drivers\source\lpc_i2s.c + lpc_i2s.c + 0 + 0 + + + 3 + 26 + 1 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + Libraries\Drivers\source\lpc_iap.c + lpc_iap.c + 0 + 0 + + + 3 + 27 + 1 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + Libraries\Drivers\source\lpc_lcd.c + lpc_lcd.c + 0 + 0 + + + 3 + 28 + 1 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + Libraries\Drivers\source\lpc_mcpwm.c + lpc_mcpwm.c + 0 + 0 + + + 3 + 29 + 1 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + Libraries\Drivers\source\lpc_nvic.c + lpc_nvic.c + 0 + 0 + + + 3 + 30 + 1 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + Libraries\Drivers\source\lpc_pinsel.c + lpc_pinsel.c + 0 + 0 + + + 3 + 31 + 1 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + Libraries\Drivers\source\lpc_pwm.c + lpc_pwm.c + 0 + 0 + + + 3 + 32 + 1 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + Libraries\Drivers\source\lpc_qei.c + lpc_qei.c + 0 + 0 + + + 3 + 33 + 1 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + Libraries\Drivers\source\lpc_rtc.c + lpc_rtc.c + 0 + 0 + + + 3 + 34 + 1 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + Libraries\Drivers\source\lpc_ssp.c + lpc_ssp.c + 0 + 0 + + + 3 + 35 + 1 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + Libraries\Drivers\source\lpc_systick.c + lpc_systick.c + 0 + 0 + + + 3 + 36 + 1 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + Libraries\Drivers\source\lpc_timer.c + lpc_timer.c + 0 + 0 + + + 3 + 37 + 1 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + Libraries\Drivers\source\lpc_uart.c + lpc_uart.c + 0 + 0 + + + 3 + 38 + 1 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + Libraries\Drivers\source\lpc_wwdt.c + lpc_wwdt.c + 0 + 0 + + + + + Kernel + 0 + 0 + 0 + 0 + + 4 + 39 + 1 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + ..\..\src\clock.c + clock.c + 0 + 0 + + + 4 + 40 + 1 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + ..\..\src\components.c + components.c + 0 + 0 + + + 4 + 41 + 1 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + ..\..\src\device.c + device.c + 0 + 0 + + + 4 + 42 + 1 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + ..\..\src\idle.c + idle.c + 0 + 0 + + + 4 + 43 + 1 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + ..\..\src\ipc.c + ipc.c + 0 + 0 + + + 4 + 44 + 1 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + ..\..\src\irq.c + irq.c + 0 + 0 + + + 4 + 45 + 1 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + ..\..\src\kservice.c + kservice.c + 0 + 0 + + + 4 + 46 + 1 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + ..\..\src\mem.c + mem.c + 0 + 0 + + + 4 + 47 + 1 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + ..\..\src\memheap.c + memheap.c + 0 + 0 + + + 4 + 48 + 1 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + ..\..\src\mempool.c + mempool.c + 0 + 0 + + + 4 + 49 + 1 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + ..\..\src\object.c + object.c + 0 + 0 + + + 4 + 50 + 1 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + ..\..\src\scheduler.c + scheduler.c + 0 + 0 + + + 4 + 51 + 1 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + ..\..\src\signal.c + signal.c + 0 + 0 + + + 4 + 52 + 1 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + ..\..\src\thread.c + thread.c + 0 + 0 + + + 4 + 53 + 1 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + ..\..\src\timer.c + timer.c + 0 + 0 + + + + + CORTEX-M4 + 0 + 0 + 0 + 0 + + 5 + 54 + 1 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + ..\..\libcpu\arm\cortex-m4\cpuport.c + cpuport.c + 0 + 0 + + + 5 + 55 + 2 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + ..\..\libcpu\arm\cortex-m4\context_rvds.S + context_rvds.S + 0 + 0 + + + 5 + 56 + 1 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + ..\..\libcpu\arm\common\backtrace.c + backtrace.c + 0 + 0 + + + 5 + 57 + 1 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + ..\..\libcpu\arm\common\div0.c + div0.c + 0 + 0 + + + 5 + 58 + 1 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + ..\..\libcpu\arm\common\showmem.c + showmem.c + 0 + 0 + + + + + DeviceDrivers + 0 + 0 + 0 + 0 + + 6 + 59 + 1 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + ..\..\components\drivers\can\can.c + can.c + 0 + 0 + + + 6 + 60 + 1 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + ..\..\components\drivers\serial\serial.c + serial.c + 0 + 0 + + + 6 + 61 + 1 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + ..\..\components\drivers\src\completion.c + completion.c + 0 + 0 + + + 6 + 62 + 1 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + ..\..\components\drivers\src\dataqueue.c + dataqueue.c + 0 + 0 + + + 6 + 63 + 1 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + ..\..\components\drivers\src\pipe.c + pipe.c + 0 + 0 + + + 6 + 64 + 1 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + ..\..\components\drivers\src\ringbuffer.c + ringbuffer.c + 0 + 0 + + + 6 + 65 + 1 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + ..\..\components\drivers\src\waitqueue.c + waitqueue.c + 0 + 0 + + + 6 + 66 + 1 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + ..\..\components\drivers\src\workqueue.c + workqueue.c + 0 + 0 + + + + + finsh + 0 + 0 + 0 + 0 + + 7 + 67 + 1 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + ..\..\components\finsh\shell.c + shell.c + 0 + 0 + + + 7 + 68 + 1 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + ..\..\components\finsh\symbol.c + symbol.c + 0 + 0 + + + 7 + 69 + 1 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + ..\..\components\finsh\cmd.c + cmd.c + 0 + 0 + + + 7 + 70 + 1 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + ..\..\components\finsh\msh.c + msh.c + 0 + 0 + + + 7 + 71 + 1 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + ..\..\components\finsh\msh_cmd.c + msh_cmd.c + 0 + 0 + + + 7 + 72 + 1 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + ..\..\components\finsh\msh_file.c + msh_file.c + 0 + 0 + + + 7 + 73 + 1 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + ..\..\components\finsh\finsh_compiler.c + finsh_compiler.c + 0 + 0 + + + 7 + 74 + 1 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + ..\..\components\finsh\finsh_error.c + finsh_error.c + 0 + 0 + + + 7 + 75 + 1 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + ..\..\components\finsh\finsh_heap.c + finsh_heap.c + 0 + 0 + + + 7 + 76 + 1 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + ..\..\components\finsh\finsh_init.c + finsh_init.c + 0 + 0 + + + 7 + 77 + 1 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + ..\..\components\finsh\finsh_node.c + finsh_node.c + 0 + 0 + + + 7 + 78 + 1 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + ..\..\components\finsh\finsh_ops.c + finsh_ops.c + 0 + 0 + + + 7 + 79 + 1 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + ..\..\components\finsh\finsh_parser.c + finsh_parser.c + 0 + 0 + + + 7 + 80 + 1 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + ..\..\components\finsh\finsh_var.c + finsh_var.c + 0 + 0 + + + 7 + 81 + 1 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + ..\..\components\finsh\finsh_vm.c + finsh_vm.c + 0 + 0 + + + 7 + 82 + 1 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + ..\..\components\finsh\finsh_token.c + finsh_token.c + 0 + 0 + + + + + libc + 0 + 0 + 0 + 0 + + 8 + 83 + 1 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + ..\..\components\libc\compilers\armlibc\libc.c + libc.c + 0 + 0 + + + 8 + 84 + 1 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + ..\..\components\libc\compilers\armlibc\libc_syms.c + libc_syms.c + 0 + 0 + + + 8 + 85 + 1 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + ..\..\components\libc\compilers\armlibc\mem_std.c + mem_std.c + 0 + 0 + + + 8 + 86 + 1 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + ..\..\components\libc\compilers\armlibc\stdio.c + stdio.c + 0 + 0 + + + 8 + 87 + 1 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + ..\..\components\libc\compilers\armlibc\stubs.c + stubs.c + 0 + 0 + + + + + pthreads + 0 + 0 + 0 + 0 + + 9 + 88 + 1 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + ..\..\components\libc\pthreads\clock_time.c + clock_time.c + 0 + 0 + + + 9 + 89 + 1 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + ..\..\components\libc\pthreads\mqueue.c + mqueue.c + 0 + 0 + + + 9 + 90 + 1 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + ..\..\components\libc\pthreads\pthread.c + pthread.c + 0 + 0 + + + 9 + 91 + 1 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + ..\..\components\libc\pthreads\pthread_attr.c + pthread_attr.c + 0 + 0 + + + 9 + 92 + 1 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + ..\..\components\libc\pthreads\pthread_barrier.c + pthread_barrier.c + 0 + 0 + + + 9 + 93 + 1 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + ..\..\components\libc\pthreads\pthread_cond.c + pthread_cond.c + 0 + 0 + + + 9 + 94 + 1 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + ..\..\components\libc\pthreads\pthread_mutex.c + pthread_mutex.c + 0 + 0 + + + 9 + 95 + 1 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + ..\..\components\libc\pthreads\pthread_rwlock.c + pthread_rwlock.c + 0 + 0 + + + 9 + 96 + 1 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + ..\..\components\libc\pthreads\pthread_spin.c + pthread_spin.c + 0 + 0 + + + 9 + 97 + 1 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + ..\..\components\libc\pthreads\pthread_tls.c + pthread_tls.c + 0 + 0 + + + 9 + 98 + 1 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + ..\..\components\libc\pthreads\sched.c + sched.c + 0 + 0 + + + 9 + 99 + 1 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + ..\..\components\libc\pthreads\semaphore.c + semaphore.c + 0 + 0 + + + diff --git a/bsp/lpc408x/project.uvproj b/bsp/lpc408x/project.uvproj index a61a0df9d0..8e01588be7 100644 --- a/bsp/lpc408x/project.uvproj +++ b/bsp/lpc408x/project.uvproj @@ -1,7 +1,10 @@ + 1.1 +
### uVision Project, (C) Keil Software
+ RT-Thread LPC408x @@ -12,25 +15,26 @@ LPC4088 NXP (founded by Philips) IRAM(0x10000000-0x1000FFFF) IRAM2(0x20000000-0x20007FFF) IROM(0-0x7FFFF) CLOCK(12000000) CPUTYPE("Cortex-M4") FPU2 - + "STARTUP\NXP\LPC407x_8x_177x_8x\startup_LPC407x_8x_177x_8x.s" ("NXP LPC407x_8x_177x_8x Startup Code") UL2CM3(-O4303 -S0 -C0 -FO7 -FD10000000 -FC800 -FN1 -FF0LPC_IAP_512 -FS00 -FL080000) 6493 LPC407x_8x_177x_8x.h - - - - - - - - - + + + + + + + + + SFD\NXP\LPC407x_8x_177x_8x\LPC408x_7x.SFR + 0 0 - - - + + + NXP\LPC407x_8x_177x_8x\ NXP\LPC407x_8x_177x_8x\ @@ -54,8 +58,8 @@ 0 0 - - + + 0 0 0 @@ -64,21 +68,21 @@ 0 0 - - + + 0 0 0 0 - - + + 0 0 0 - + 0 @@ -92,8 +96,9 @@ 0 0 3 - - + + + 1 SARMCM3.DLL @@ -123,33 +128,36 @@ 1 1 0 + 1 1 1 - 0 + 1 1 1 1 0 1 0 + 1 + 1 0 - 7 + 6 - - - - - + + + + + - - - - - + + + + + Segger\JL2CM3.dll @@ -158,14 +166,18 @@ 1 0 0 - 0 + 1 1 4099 - 0 + 1 Segger\JL2CM3.dll "" () - + + + + + 0 @@ -197,7 +209,7 @@ 0 0 "Cortex-M4" - + 0 0 0 @@ -328,7 +340,7 @@ 0x8000 - + 1 @@ -344,10 +356,12 @@ 0 0 0 + 0 + 0 - + CORE_M4, RT_USING_ARM_LIBC - + applications;.;drivers;Libraries\Device\NXP\LPC407x_8x_177x_8x\Include;Libraries\CMSIS\Include;Libraries\Drivers\include;..\..\include;..\..\libcpu\arm\cortex-m4;..\..\libcpu\arm\common;..\..\components\drivers\include;..\..\components\drivers\include;..\..\components\drivers\include;..\..\components\finsh;..\..\components\libc\compilers\armlibc;..\..\components\libc\pthreads @@ -360,11 +374,12 @@ 0 0 0 + 0 - - - - + + + + @@ -376,12 +391,13 @@ 0 0x00000000 0x10000000 - - - + + + + --keep *.o(.rti_fn.*) --keep *.o(FSymTab) --keep *.o(VSymTab) - - + + @@ -394,29 +410,21 @@ 1 applications\application.c
-
- board.c 1 applications\board.c - - canapp.c 1 applications\canapp.c - - sram.c 1 applications\sram.c - - startup.c 1 @@ -432,29 +440,21 @@ 1 drivers\drv_hwtimer.c - - drv_led.c 1 drivers\drv_led.c - - drv_lpccan.c 1 drivers\drv_lpccan.c - - drv_sdram.c 1 drivers\drv_sdram.c - - drv_uart.c 1 @@ -470,190 +470,136 @@ 1 Libraries\Device\NXP\LPC407x_8x_177x_8x\Source\Templates\system_LPC407x_8x_177x_8x.c - - startup_LPC407x_8x_177x_8x.s 2 Libraries\Device\NXP\LPC407x_8x_177x_8x\Source\Templates\ARM\startup_LPC407x_8x_177x_8x.s - - lpc_adc.c 1 Libraries\Drivers\source\lpc_adc.c - - lpc_bod.c 1 Libraries\Drivers\source\lpc_bod.c - - lpc_can.c 1 Libraries\Drivers\source\lpc_can.c - - lpc_clkpwr.c 1 Libraries\Drivers\source\lpc_clkpwr.c - - lpc_crc.c 1 Libraries\Drivers\source\lpc_crc.c - - lpc_dac.c 1 Libraries\Drivers\source\lpc_dac.c - - lpc_eeprom.c 1 Libraries\Drivers\source\lpc_eeprom.c - - lpc_emc.c 1 Libraries\Drivers\source\lpc_emc.c - - lpc_exti.c 1 Libraries\Drivers\source\lpc_exti.c - - lpc_gpdma.c 1 Libraries\Drivers\source\lpc_gpdma.c - - lpc_gpio.c 1 Libraries\Drivers\source\lpc_gpio.c - - lpc_i2c.c 1 Libraries\Drivers\source\lpc_i2c.c - - lpc_i2s.c 1 Libraries\Drivers\source\lpc_i2s.c - - lpc_iap.c 1 Libraries\Drivers\source\lpc_iap.c - - lpc_lcd.c 1 Libraries\Drivers\source\lpc_lcd.c - - lpc_mcpwm.c 1 Libraries\Drivers\source\lpc_mcpwm.c - - lpc_nvic.c 1 Libraries\Drivers\source\lpc_nvic.c - - lpc_pinsel.c 1 Libraries\Drivers\source\lpc_pinsel.c - - lpc_pwm.c 1 Libraries\Drivers\source\lpc_pwm.c - - lpc_qei.c 1 Libraries\Drivers\source\lpc_qei.c - - lpc_rtc.c 1 Libraries\Drivers\source\lpc_rtc.c - - lpc_ssp.c 1 Libraries\Drivers\source\lpc_ssp.c - - lpc_systick.c 1 Libraries\Drivers\source\lpc_systick.c - - lpc_timer.c 1 Libraries\Drivers\source\lpc_timer.c - - lpc_uart.c 1 Libraries\Drivers\source\lpc_uart.c - - lpc_wwdt.c 1 @@ -669,99 +615,71 @@ 1 ..\..\src\clock.c - - components.c 1 ..\..\src\components.c - - device.c 1 ..\..\src\device.c - - idle.c 1 ..\..\src\idle.c - - ipc.c 1 ..\..\src\ipc.c - - irq.c 1 ..\..\src\irq.c - - kservice.c 1 ..\..\src\kservice.c - - mem.c 1 ..\..\src\mem.c - - memheap.c 1 ..\..\src\memheap.c - - mempool.c 1 ..\..\src\mempool.c - - object.c 1 ..\..\src\object.c - - scheduler.c 1 ..\..\src\scheduler.c - - signal.c 1 ..\..\src\signal.c - - thread.c 1 ..\..\src\thread.c - - timer.c 1 @@ -777,29 +695,21 @@ 1 ..\..\libcpu\arm\cortex-m4\cpuport.c - - context_rvds.S 2 ..\..\libcpu\arm\cortex-m4\context_rvds.S - - backtrace.c 1 ..\..\libcpu\arm\common\backtrace.c - - div0.c 1 ..\..\libcpu\arm\common\div0.c - - showmem.c 1 @@ -815,50 +725,36 @@ 1 ..\..\components\drivers\can\can.c - - serial.c 1 ..\..\components\drivers\serial\serial.c - - completion.c 1 ..\..\components\drivers\src\completion.c - - dataqueue.c 1 ..\..\components\drivers\src\dataqueue.c - - pipe.c 1 ..\..\components\drivers\src\pipe.c - - ringbuffer.c 1 ..\..\components\drivers\src\ringbuffer.c - - waitqueue.c 1 ..\..\components\drivers\src\waitqueue.c - - workqueue.c 1 @@ -874,106 +770,76 @@ 1 ..\..\components\finsh\shell.c - - symbol.c 1 ..\..\components\finsh\symbol.c - - cmd.c 1 ..\..\components\finsh\cmd.c - - msh.c 1 ..\..\components\finsh\msh.c - - msh_cmd.c 1 ..\..\components\finsh\msh_cmd.c - - msh_file.c 1 ..\..\components\finsh\msh_file.c - - finsh_compiler.c 1 ..\..\components\finsh\finsh_compiler.c - - finsh_error.c 1 ..\..\components\finsh\finsh_error.c - - finsh_heap.c 1 ..\..\components\finsh\finsh_heap.c - - finsh_init.c 1 ..\..\components\finsh\finsh_init.c - - finsh_node.c 1 ..\..\components\finsh\finsh_node.c - - finsh_ops.c 1 ..\..\components\finsh\finsh_ops.c - - finsh_parser.c 1 ..\..\components\finsh\finsh_parser.c - - finsh_var.c 1 ..\..\components\finsh\finsh_var.c - - finsh_vm.c 1 ..\..\components\finsh\finsh_vm.c - - finsh_token.c 1 @@ -989,29 +855,21 @@ 1 ..\..\components\libc\compilers\armlibc\libc.c - - libc_syms.c 1 ..\..\components\libc\compilers\armlibc\libc_syms.c - - mem_std.c 1 ..\..\components\libc\compilers\armlibc\mem_std.c - - stdio.c 1 ..\..\components\libc\compilers\armlibc\stdio.c - - stubs.c 1 @@ -1027,78 +885,56 @@ 1 ..\..\components\libc\pthreads\clock_time.c - - mqueue.c 1 ..\..\components\libc\pthreads\mqueue.c - - pthread.c 1 ..\..\components\libc\pthreads\pthread.c - - pthread_attr.c 1 ..\..\components\libc\pthreads\pthread_attr.c - - pthread_barrier.c 1 ..\..\components\libc\pthreads\pthread_barrier.c - - pthread_cond.c 1 ..\..\components\libc\pthreads\pthread_cond.c - - pthread_mutex.c 1 ..\..\components\libc\pthreads\pthread_mutex.c - - pthread_rwlock.c 1 ..\..\components\libc\pthreads\pthread_rwlock.c - - pthread_spin.c 1 ..\..\components\libc\pthreads\pthread_spin.c - - pthread_tls.c 1 ..\..\components\libc\pthreads\pthread_tls.c - - sched.c 1 ..\..\components\libc\pthreads\sched.c - - semaphore.c 1 @@ -1109,4 +945,5 @@ + From be48c3c419b733bb849d106b7b8693ccc404502c Mon Sep 17 00:00:00 2001 From: tanek liang Date: Wed, 1 Nov 2017 19:20:01 +0800 Subject: [PATCH 12/14] [libc] fix time () not found when no RT_USING_RTC defined --- components/libc/compilers/armlibc/stubs.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/components/libc/compilers/armlibc/stubs.c b/components/libc/compilers/armlibc/stubs.c index 74ca5fd1f6..5ec25ed8b3 100644 --- a/components/libc/compilers/armlibc/stubs.c +++ b/components/libc/compilers/armlibc/stubs.c @@ -327,3 +327,12 @@ int fgetc(FILE *f) return -1; } #endif + +#ifndef RT_USING_RTC +time_t time(time_t *t) +{ + time_t time_now = 0; + + return time_now; +} +#endif From 6b4750c870ffea3e8e225a2804b05ff76b7f6942 Mon Sep 17 00:00:00 2001 From: SummerGift Date: Wed, 1 Nov 2017 19:19:01 +0800 Subject: [PATCH 13/14] fix bsp/gd32450z-eval for mdk --- bsp/gd32450z-eval/applications/rtgui_demo.c | 7 +- bsp/gd32450z-eval/project.uvproj | 891 +++++++++++++------- bsp/gd32450z-eval/project.uvprojx | 2 +- 3 files changed, 606 insertions(+), 294 deletions(-) diff --git a/bsp/gd32450z-eval/applications/rtgui_demo.c b/bsp/gd32450z-eval/applications/rtgui_demo.c index f8f3636a85..e89ce53b3b 100644 --- a/bsp/gd32450z-eval/applications/rtgui_demo.c +++ b/bsp/gd32450z-eval/applications/rtgui_demo.c @@ -31,7 +31,7 @@ #include #include -#include +//#include struct rtgui_win *main_win; rt_bool_t dc_event_handler(struct rtgui_object *object, rtgui_event_t *event); @@ -105,9 +105,8 @@ rt_bool_t dc_event_handler(struct rtgui_object *object, rtgui_event_t *event) rect.x1 += (rect.x2 - rect.x1) / 2; rect.y1 += (rect.y2 - rect.y1) / 2; rtgui_dc_draw_text_stroke(dc, __DATE__"--"__TIME__, &rect, HIGH_LIGHT, BLUE); - - - rtgui_dc_end_drawing(dc); + + rtgui_dc_end_drawing(dc,RT_TRUE); } return RT_FALSE; } diff --git a/bsp/gd32450z-eval/project.uvproj b/bsp/gd32450z-eval/project.uvproj index 69cd18f7ae..e9bfcedcaf 100644 --- a/bsp/gd32450z-eval/project.uvproj +++ b/bsp/gd32450z-eval/project.uvproj @@ -1,10 +1,7 @@ - 1.1 -
### uVision Project, (C) Keil Software
- rt-thread_gd32f4xx @@ -15,26 +12,26 @@ GD32F450ZK GigaDevice IRAM(0x20000000-0x2002FFFF) IRAM2(0x10000000-0x1000FFFF) IROM(0x08000000-0x082FFFFF) CLOCK(16000000) CPUTYPE("Cortex-M4") FPU2 - + "Startup\GD\GD32F4xx\startup_gd32f4xx.s" ("GD32F4xx Startup Code") UL2CM3(-O207 -S0 -C0 -FO7 -FD20000000 -FC800 -FN1 -FF0GD32F4xx_3MB -FS08000000 -FL0300000) 0 gd32f4xx0.h - - - - - - - - - + + + + + + + + + SFD\GD\GD32F4xx\GD32F4xx.SFR 0 0 - - - + + + GD\GD32F4xx\ GD\GD32F4xx\ @@ -58,8 +55,8 @@ 0 0 - - + + 0 0 0 @@ -68,21 +65,21 @@ 0 0 - - + + 0 0 0 0 - - + + 0 0 0 - + 0 @@ -96,8 +93,8 @@ 0 0 3 - - + + 1 @@ -106,7 +103,7 @@ DCM.DLL -pCM3 SARMCM3.DLL - + TCM.DLL -pCM3 @@ -144,21 +141,21 @@ 0 0 - 6 + 12 - - - - - + + + + + - - - - - - Segger\JL2CM3.dll + + + + + + BIN\CMSIS_AGDI.dll @@ -173,10 +170,10 @@ 1 BIN\UL2CM3.DLL "" () - - - - + + + + 0 @@ -209,7 +206,7 @@ 0 0 "Cortex-M4" - + 0 0 0 @@ -340,7 +337,7 @@ 0x10000 - + 1 @@ -359,10 +356,10 @@ 1 0 - + GD32F4XX, USE_STDPERIPH_DRIVER - - applications;.;drivers;Libraries\CMSIS\GD\GD32F4xx\Include;Libraries\CMSIS;Libraries\GD32F4xx_standard_peripheral\Include;..\..\..\git\rt-thread\include;..\..\..\git\rt-thread\libcpu\arm\cortex-m4;..\..\..\git\rt-thread\libcpu\arm\common;..\..\..\git\rt-thread\components\dfs\include;..\..\..\git\rt-thread\components\dfs\filesystems\devfs;..\..\..\git\rt-thread\components\dfs\filesystems\elmfat;..\..\..\git\rt-thread\components\drivers\include;..\..\..\git\rt-thread\components\drivers\include;..\..\..\git\rt-thread\components\drivers\include;..\..\..\git\rt-thread\components\drivers\spi;..\..\..\git\rt-thread\components\drivers\include;..\..\..\git\rt-thread\components\drivers\spi\sfud\inc;..\..\..\git\rt-thread\components\drivers\include;..\..\..\git\rt-thread\components\finsh;..\..\..\git\rt-thread\components\gui\include;..\..\..\git\rt-thread\components\net\lwip-1.4.1\src;..\..\..\git\rt-thread\components\net\lwip-1.4.1\src\include;..\..\..\git\rt-thread\components\net\lwip-1.4.1\src\include\ipv4;..\..\..\git\rt-thread\components\net\lwip-1.4.1\src\arch\include;..\..\..\git\rt-thread\components\net\lwip-1.4.1\src\include\netif;..\..\..\git\rt-thread\components\trace;..\..\..\git\rt-thread\components\trace\SystemView_Src_V240\Config;..\..\..\git\rt-thread\components\trace;..\..\..\git\rt-thread\components\trace\SystemView_Src_V240\SEGGER + + applications;.;drivers;Libraries\CMSIS\GD\GD32F4xx\Include;Libraries\CMSIS;Libraries\GD32F4xx_standard_peripheral\Include;..\..\include;..\..\libcpu\arm\cortex-m4;..\..\libcpu\arm\common;..\..\components\dfs\include;..\..\components\dfs\filesystems\devfs;..\..\components\dfs\filesystems\elmfat;..\..\components\drivers\include;..\..\components\drivers\include;..\..\components\drivers\include;..\..\components\drivers\spi;..\..\components\drivers\include;..\..\components\drivers\spi\sfud\inc;..\..\components\drivers\include;..\..\components\finsh;..\..\components\gui\include;..\..\components\net\lwip-2.0.2\src;..\..\components\net\lwip-2.0.2\src\include;..\..\components\net\lwip-2.0.2\src\include\ipv4;..\..\components\net\lwip-2.0.2\src\arch\include;..\..\components\net\lwip-2.0.2\src\include\netif @@ -376,10 +373,10 @@ 0 0 - - - - + + + + @@ -391,13 +388,13 @@ 0 0x08000000 0x20000000 - - - - - --keep *.o(RTMSymTab) --keep *.o(.rti_fn.*) --keep *.o(FSymTab) --keep *.o(VSymTab) - - + + + + + --keep *.o(RTMSymTab) --keep *.o(.rti_fn.*) --keep *.o(FSymTab) --keep *.o(VSymTab) + + @@ -410,11 +407,15 @@ 1 applications\application.c
+
+ rtgui_demo.c 1 applications\rtgui_demo.c + + startup.c 1 @@ -430,41 +431,57 @@ 1 drivers\board.c + + drv_exmc_sdram.c 1 drivers\drv_exmc_sdram.c + + drv_usart.c 1 drivers\drv_usart.c + + drv_enet.c 1 drivers\drv_enet.c + + synopsys_emac.c 1 drivers\synopsys_emac.c + + drv_lcd.c 1 drivers\drv_lcd.c + + gd32f450z_lcd_eval.c 1 drivers\gd32f450z_lcd_eval.c + + drv_spi_flash.c 1 drivers\drv_spi_flash.c + + drv_spi.c 1 @@ -480,151 +497,211 @@ 1 Libraries\GD32F4xx_standard_peripheral\Source\gd32f4xx_adc.c + + gd32f4xx_can.c 1 Libraries\GD32F4xx_standard_peripheral\Source\gd32f4xx_can.c + + gd32f4xx_crc.c 1 Libraries\GD32F4xx_standard_peripheral\Source\gd32f4xx_crc.c + + gd32f4xx_ctc.c 1 Libraries\GD32F4xx_standard_peripheral\Source\gd32f4xx_ctc.c + + gd32f4xx_dac.c 1 Libraries\GD32F4xx_standard_peripheral\Source\gd32f4xx_dac.c + + gd32f4xx_dbg.c 1 Libraries\GD32F4xx_standard_peripheral\Source\gd32f4xx_dbg.c + + gd32f4xx_dci.c 1 Libraries\GD32F4xx_standard_peripheral\Source\gd32f4xx_dci.c + + gd32f4xx_dma.c 1 Libraries\GD32F4xx_standard_peripheral\Source\gd32f4xx_dma.c + + gd32f4xx_enet.c 1 Libraries\GD32F4xx_standard_peripheral\Source\gd32f4xx_enet.c + + gd32f4xx_exmc.c 1 Libraries\GD32F4xx_standard_peripheral\Source\gd32f4xx_exmc.c + + gd32f4xx_exti.c 1 Libraries\GD32F4xx_standard_peripheral\Source\gd32f4xx_exti.c + + gd32f4xx_fmc.c 1 Libraries\GD32F4xx_standard_peripheral\Source\gd32f4xx_fmc.c + + gd32f4xx_fwdgt.c 1 Libraries\GD32F4xx_standard_peripheral\Source\gd32f4xx_fwdgt.c + + gd32f4xx_gpio.c 1 Libraries\GD32F4xx_standard_peripheral\Source\gd32f4xx_gpio.c + + gd32f4xx_i2c.c 1 Libraries\GD32F4xx_standard_peripheral\Source\gd32f4xx_i2c.c + + gd32f4xx_ipa.c 1 Libraries\GD32F4xx_standard_peripheral\Source\gd32f4xx_ipa.c + + gd32f4xx_iref.c 1 Libraries\GD32F4xx_standard_peripheral\Source\gd32f4xx_iref.c + + gd32f4xx_misc.c 1 Libraries\GD32F4xx_standard_peripheral\Source\gd32f4xx_misc.c + + gd32f4xx_pmu.c 1 Libraries\GD32F4xx_standard_peripheral\Source\gd32f4xx_pmu.c + + gd32f4xx_rcu.c 1 Libraries\GD32F4xx_standard_peripheral\Source\gd32f4xx_rcu.c + + gd32f4xx_rtc.c 1 Libraries\GD32F4xx_standard_peripheral\Source\gd32f4xx_rtc.c + + gd32f4xx_sdio.c 1 Libraries\GD32F4xx_standard_peripheral\Source\gd32f4xx_sdio.c + + gd32f4xx_spi.c 1 Libraries\GD32F4xx_standard_peripheral\Source\gd32f4xx_spi.c + + gd32f4xx_syscfg.c 1 Libraries\GD32F4xx_standard_peripheral\Source\gd32f4xx_syscfg.c + + gd32f4xx_timer.c 1 Libraries\GD32F4xx_standard_peripheral\Source\gd32f4xx_timer.c + + gd32f4xx_tli.c 1 Libraries\GD32F4xx_standard_peripheral\Source\gd32f4xx_tli.c + + gd32f4xx_trng.c 1 Libraries\GD32F4xx_standard_peripheral\Source\gd32f4xx_trng.c + + gd32f4xx_usart.c 1 Libraries\GD32F4xx_standard_peripheral\Source\gd32f4xx_usart.c + + gd32f4xx_wwdgt.c 1 Libraries\GD32F4xx_standard_peripheral\Source\gd32f4xx_wwdgt.c + + system_gd32f4xx.c 1 Libraries\CMSIS\GD\GD32F4xx\Source\system_gd32f4xx.c + + startup_gd32f4xx.s 2 @@ -638,77 +715,112 @@ clock.c 1 - ..\..\..\git\rt-thread\src\clock.c + ..\..\src\clock.c + + components.c 1 - ..\..\..\git\rt-thread\src\components.c + ..\..\src\components.c + + device.c 1 - ..\..\..\git\rt-thread\src\device.c + ..\..\src\device.c + + idle.c 1 - ..\..\..\git\rt-thread\src\idle.c + ..\..\src\idle.c + + ipc.c 1 - ..\..\..\git\rt-thread\src\ipc.c + ..\..\src\ipc.c + + irq.c 1 - ..\..\..\git\rt-thread\src\irq.c + ..\..\src\irq.c + + kservice.c 1 - ..\..\..\git\rt-thread\src\kservice.c + ..\..\src\kservice.c + + mem.c 1 - ..\..\..\git\rt-thread\src\mem.c + ..\..\src\mem.c + + memheap.c 1 - ..\..\..\git\rt-thread\src\memheap.c + ..\..\src\memheap.c + + mempool.c 1 - ..\..\..\git\rt-thread\src\mempool.c + ..\..\src\mempool.c + + module.c 1 - ..\..\..\git\rt-thread\src\module.c + ..\..\src\module.c + + object.c 1 - ..\..\..\git\rt-thread\src\object.c + ..\..\src\object.c + + scheduler.c 1 - ..\..\..\git\rt-thread\src\scheduler.c + ..\..\src\scheduler.c + + + + signal.c + 1 + ..\..\src\signal.c + + + thread.c 1 - ..\..\..\git\rt-thread\src\thread.c + ..\..\src\thread.c + + timer.c 1 - ..\..\..\git\rt-thread\src\timer.c + ..\..\src\timer.c @@ -718,27 +830,35 @@ cpuport.c 1 - ..\..\..\git\rt-thread\libcpu\arm\cortex-m4\cpuport.c + ..\..\libcpu\arm\cortex-m4\cpuport.c + + context_rvds.S 2 - ..\..\..\git\rt-thread\libcpu\arm\cortex-m4\context_rvds.S + ..\..\libcpu\arm\cortex-m4\context_rvds.S + + backtrace.c 1 - ..\..\..\git\rt-thread\libcpu\arm\common\backtrace.c + ..\..\libcpu\arm\common\backtrace.c + + div0.c 1 - ..\..\..\git\rt-thread\libcpu\arm\common\div0.c + ..\..\libcpu\arm\common\div0.c + + showmem.c 1 - ..\..\..\git\rt-thread\libcpu\arm\common\showmem.c + ..\..\libcpu\arm\common\showmem.c @@ -748,42 +868,49 @@ dfs.c 1 - ..\..\..\git\rt-thread\components\dfs\src\dfs.c + ..\..\components\dfs\src\dfs.c + + dfs_file.c 1 - ..\..\..\git\rt-thread\components\dfs\src\dfs_file.c + ..\..\components\dfs\src\dfs_file.c + + dfs_fs.c 1 - ..\..\..\git\rt-thread\components\dfs\src\dfs_fs.c + ..\..\components\dfs\src\dfs_fs.c + + dfs_posix.c 1 - ..\..\..\git\rt-thread\components\dfs\src\dfs_posix.c - - - console.c - 1 - ..\..\..\git\rt-thread\components\dfs\filesystems\devfs\console.c + ..\..\components\dfs\src\dfs_posix.c + + devfs.c 1 - ..\..\..\git\rt-thread\components\dfs\filesystems\devfs\devfs.c + ..\..\components\dfs\filesystems\devfs\devfs.c + + dfs_elm.c 1 - ..\..\..\git\rt-thread\components\dfs\filesystems\elmfat\dfs_elm.c + ..\..\components\dfs\filesystems\elmfat\dfs_elm.c + + ff.c 1 - ..\..\..\git\rt-thread\components\dfs\filesystems\elmfat\ff.c + ..\..\components\dfs\filesystems\elmfat\ff.c @@ -793,77 +920,105 @@ i2c_core.c 1 - ..\..\..\git\rt-thread\components\drivers\i2c\i2c_core.c + ..\..\components\drivers\i2c\i2c_core.c + + i2c_dev.c 1 - ..\..\..\git\rt-thread\components\drivers\i2c\i2c_dev.c + ..\..\components\drivers\i2c\i2c_dev.c + + i2c-bit-ops.c 1 - ..\..\..\git\rt-thread\components\drivers\i2c\i2c-bit-ops.c + ..\..\components\drivers\i2c\i2c-bit-ops.c + + rtc.c 1 - ..\..\..\git\rt-thread\components\drivers\rtc\rtc.c + ..\..\components\drivers\rtc\rtc.c + + serial.c 1 - ..\..\..\git\rt-thread\components\drivers\serial\serial.c + ..\..\components\drivers\serial\serial.c + + spi_core.c 1 - ..\..\..\git\rt-thread\components\drivers\spi\spi_core.c + ..\..\components\drivers\spi\spi_core.c + + spi_dev.c 1 - ..\..\..\git\rt-thread\components\drivers\spi\spi_dev.c + ..\..\components\drivers\spi\spi_dev.c + + spi_flash_sfud.c 1 - ..\..\..\git\rt-thread\components\drivers\spi\spi_flash_sfud.c + ..\..\components\drivers\spi\spi_flash_sfud.c + + sfud.c 1 - ..\..\..\git\rt-thread\components\drivers\spi\sfud\src\sfud.c + ..\..\components\drivers\spi\sfud\src\sfud.c + + completion.c 1 - ..\..\..\git\rt-thread\components\drivers\src\completion.c + ..\..\components\drivers\src\completion.c + + dataqueue.c 1 - ..\..\..\git\rt-thread\components\drivers\src\dataqueue.c + ..\..\components\drivers\src\dataqueue.c + + pipe.c 1 - ..\..\..\git\rt-thread\components\drivers\src\pipe.c - - - portal.c - 1 - ..\..\..\git\rt-thread\components\drivers\src\portal.c + ..\..\components\drivers\src\pipe.c + + ringbuffer.c 1 - ..\..\..\git\rt-thread\components\drivers\src\ringbuffer.c + ..\..\components\drivers\src\ringbuffer.c + + + + waitqueue.c + 1 + ..\..\components\drivers\src\waitqueue.c + + + workqueue.c 1 - ..\..\..\git\rt-thread\components\drivers\src\workqueue.c + ..\..\components\drivers\src\workqueue.c @@ -873,67 +1028,91 @@ shell.c 1 - ..\..\..\git\rt-thread\components\finsh\shell.c + ..\..\components\finsh\shell.c + + symbol.c 1 - ..\..\..\git\rt-thread\components\finsh\symbol.c + ..\..\components\finsh\symbol.c + + cmd.c 1 - ..\..\..\git\rt-thread\components\finsh\cmd.c + ..\..\components\finsh\cmd.c + + finsh_compiler.c 1 - ..\..\..\git\rt-thread\components\finsh\finsh_compiler.c + ..\..\components\finsh\finsh_compiler.c + + finsh_error.c 1 - ..\..\..\git\rt-thread\components\finsh\finsh_error.c + ..\..\components\finsh\finsh_error.c + + finsh_heap.c 1 - ..\..\..\git\rt-thread\components\finsh\finsh_heap.c + ..\..\components\finsh\finsh_heap.c + + finsh_init.c 1 - ..\..\..\git\rt-thread\components\finsh\finsh_init.c + ..\..\components\finsh\finsh_init.c + + finsh_node.c 1 - ..\..\..\git\rt-thread\components\finsh\finsh_node.c + ..\..\components\finsh\finsh_node.c + + finsh_ops.c 1 - ..\..\..\git\rt-thread\components\finsh\finsh_ops.c + ..\..\components\finsh\finsh_ops.c + + finsh_parser.c 1 - ..\..\..\git\rt-thread\components\finsh\finsh_parser.c + ..\..\components\finsh\finsh_parser.c + + finsh_var.c 1 - ..\..\..\git\rt-thread\components\finsh\finsh_var.c + ..\..\components\finsh\finsh_var.c + + finsh_vm.c 1 - ..\..\..\git\rt-thread\components\finsh\finsh_vm.c + ..\..\components\finsh\finsh_vm.c + + finsh_token.c 1 - ..\..\..\git\rt-thread\components\finsh\finsh_token.c + ..\..\components\finsh\finsh_token.c @@ -943,412 +1122,546 @@ asc12font.c 1 - ..\..\..\git\rt-thread\components\gui\src\asc12font.c + ..\..\components\gui\src\asc12font.c + + asc16font.c 1 - ..\..\..\git\rt-thread\components\gui\src\asc16font.c + ..\..\components\gui\src\asc16font.c + + blit.c 1 - ..\..\..\git\rt-thread\components\gui\src\blit.c + ..\..\components\gui\src\blit.c + + box.c 1 - ..\..\..\git\rt-thread\components\gui\src\box.c + ..\..\components\gui\src\box.c + + color.c 1 - ..\..\..\git\rt-thread\components\gui\src\color.c + ..\..\components\gui\src\color.c + + container.c 1 - ..\..\..\git\rt-thread\components\gui\src\container.c + ..\..\components\gui\src\container.c + + dc.c 1 - ..\..\..\git\rt-thread\components\gui\src\dc.c + ..\..\components\gui\src\dc.c + + dc_blend.c 1 - ..\..\..\git\rt-thread\components\gui\src\dc_blend.c + ..\..\components\gui\src\dc_blend.c + + dc_buffer.c 1 - ..\..\..\git\rt-thread\components\gui\src\dc_buffer.c + ..\..\components\gui\src\dc_buffer.c + + dc_client.c 1 - ..\..\..\git\rt-thread\components\gui\src\dc_client.c + ..\..\components\gui\src\dc_client.c + + dc_hw.c 1 - ..\..\..\git\rt-thread\components\gui\src\dc_hw.c + ..\..\components\gui\src\dc_hw.c + + dc_rotozoom.c 1 - ..\..\..\git\rt-thread\components\gui\src\dc_rotozoom.c + ..\..\components\gui\src\dc_rotozoom.c + + dc_trans.c 1 - ..\..\..\git\rt-thread\components\gui\src\dc_trans.c + ..\..\components\gui\src\dc_trans.c + + filerw.c 1 - ..\..\..\git\rt-thread\components\gui\src\filerw.c + ..\..\components\gui\src\filerw.c + + font.c 1 - ..\..\..\git\rt-thread\components\gui\src\font.c + ..\..\components\gui\src\font.c + + font_bmp.c 1 - ..\..\..\git\rt-thread\components\gui\src\font_bmp.c + ..\..\components\gui\src\font_bmp.c + + font_fnt.c 1 - ..\..\..\git\rt-thread\components\gui\src\font_fnt.c + ..\..\components\gui\src\font_fnt.c + + font_freetype.c 1 - ..\..\..\git\rt-thread\components\gui\src\font_freetype.c + ..\..\components\gui\src\font_freetype.c + + font_hz_bmp.c 1 - ..\..\..\git\rt-thread\components\gui\src\font_hz_bmp.c + ..\..\components\gui\src\font_hz_bmp.c + + font_hz_file.c 1 - ..\..\..\git\rt-thread\components\gui\src\font_hz_file.c + ..\..\components\gui\src\font_hz_file.c + + hz12font.c 1 - ..\..\..\git\rt-thread\components\gui\src\hz12font.c + ..\..\components\gui\src\hz12font.c + + hz16font.c 1 - ..\..\..\git\rt-thread\components\gui\src\hz16font.c + ..\..\components\gui\src\hz16font.c + + image.c 1 - ..\..\..\git\rt-thread\components\gui\src\image.c + ..\..\components\gui\src\image.c + + image_bmp.c 1 - ..\..\..\git\rt-thread\components\gui\src\image_bmp.c + ..\..\components\gui\src\image_bmp.c + + + + image_container.c + 1 + ..\..\components\gui\src\image_container.c + + + image_hdc.c 1 - ..\..\..\git\rt-thread\components\gui\src\image_hdc.c + ..\..\components\gui\src\image_hdc.c + + image_jpg.c 1 - ..\..\..\git\rt-thread\components\gui\src\image_jpg.c + ..\..\components\gui\src\image_jpg.c + + image_png.c 1 - ..\..\..\git\rt-thread\components\gui\src\image_png.c + ..\..\components\gui\src\image_png.c + + image_xpm.c 1 - ..\..\..\git\rt-thread\components\gui\src\image_xpm.c + ..\..\components\gui\src\image_xpm.c + + matrix.c 1 - ..\..\..\git\rt-thread\components\gui\src\matrix.c + ..\..\components\gui\src\matrix.c + + mouse.c 1 - ..\..\..\git\rt-thread\components\gui\src\mouse.c + ..\..\components\gui\src\mouse.c + + region.c 1 - ..\..\..\git\rt-thread\components\gui\src\region.c + ..\..\components\gui\src\region.c + + rtgui_app.c 1 - ..\..\..\git\rt-thread\components\gui\src\rtgui_app.c + ..\..\components\gui\src\rtgui_app.c + + rtgui_driver.c 1 - ..\..\..\git\rt-thread\components\gui\src\rtgui_driver.c + ..\..\components\gui\src\rtgui_driver.c + + rtgui_object.c 1 - ..\..\..\git\rt-thread\components\gui\src\rtgui_object.c + ..\..\components\gui\src\rtgui_object.c + + rtgui_system.c 1 - ..\..\..\git\rt-thread\components\gui\src\rtgui_system.c + ..\..\components\gui\src\rtgui_system.c + + server.c 1 - ..\..\..\git\rt-thread\components\gui\src\server.c + ..\..\components\gui\src\server.c + + title.c 1 - ..\..\..\git\rt-thread\components\gui\src\title.c + ..\..\components\gui\src\title.c + + topwin.c 1 - ..\..\..\git\rt-thread\components\gui\src\topwin.c + ..\..\components\gui\src\topwin.c + + widget.c 1 - ..\..\..\git\rt-thread\components\gui\src\widget.c + ..\..\components\gui\src\widget.c + + window.c 1 - ..\..\..\git\rt-thread\components\gui\src\window.c + ..\..\components\gui\src\window.c - LwIP + lwIP + + + sys_arch.c + 1 + ..\..\components\net\lwip-2.0.2\src\arch\sys_arch.c + + api_lib.c 1 - ..\..\..\git\rt-thread\components\net\lwip-1.4.1\src\api\api_lib.c + ..\..\components\net\lwip-2.0.2\src\api\api_lib.c + + api_msg.c 1 - ..\..\..\git\rt-thread\components\net\lwip-1.4.1\src\api\api_msg.c + ..\..\components\net\lwip-2.0.2\src\api\api_msg.c + + err.c 1 - ..\..\..\git\rt-thread\components\net\lwip-1.4.1\src\api\err.c + ..\..\components\net\lwip-2.0.2\src\api\err.c + + netbuf.c 1 - ..\..\..\git\rt-thread\components\net\lwip-1.4.1\src\api\netbuf.c + ..\..\components\net\lwip-2.0.2\src\api\netbuf.c + + netdb.c 1 - ..\..\..\git\rt-thread\components\net\lwip-1.4.1\src\api\netdb.c + ..\..\components\net\lwip-2.0.2\src\api\netdb.c + + netifapi.c 1 - ..\..\..\git\rt-thread\components\net\lwip-1.4.1\src\api\netifapi.c + ..\..\components\net\lwip-2.0.2\src\api\netifapi.c + + sockets.c 1 - ..\..\..\git\rt-thread\components\net\lwip-1.4.1\src\api\sockets.c + ..\..\components\net\lwip-2.0.2\src\api\sockets.c + + tcpip.c 1 - ..\..\..\git\rt-thread\components\net\lwip-1.4.1\src\api\tcpip.c - - - sys_arch.c - 1 - ..\..\..\git\rt-thread\components\net\lwip-1.4.1\src\arch\sys_arch.c + ..\..\components\net\lwip-2.0.2\src\api\tcpip.c + + def.c 1 - ..\..\..\git\rt-thread\components\net\lwip-1.4.1\src\core\def.c - - - dhcp.c - 1 - ..\..\..\git\rt-thread\components\net\lwip-1.4.1\src\core\dhcp.c + ..\..\components\net\lwip-2.0.2\src\core\def.c + + dns.c 1 - ..\..\..\git\rt-thread\components\net\lwip-1.4.1\src\core\dns.c - - - init.c - 1 - ..\..\..\git\rt-thread\components\net\lwip-1.4.1\src\core\init.c - - - memp.c - 1 - ..\..\..\git\rt-thread\components\net\lwip-1.4.1\src\core\memp.c - - - netif.c - 1 - ..\..\..\git\rt-thread\components\net\lwip-1.4.1\src\core\netif.c - - - pbuf.c - 1 - ..\..\..\git\rt-thread\components\net\lwip-1.4.1\src\core\pbuf.c - - - raw.c - 1 - ..\..\..\git\rt-thread\components\net\lwip-1.4.1\src\core\raw.c - - - stats.c - 1 - ..\..\..\git\rt-thread\components\net\lwip-1.4.1\src\core\stats.c - - - sys.c - 1 - ..\..\..\git\rt-thread\components\net\lwip-1.4.1\src\core\sys.c - - - tcp.c - 1 - ..\..\..\git\rt-thread\components\net\lwip-1.4.1\src\core\tcp.c - - - tcp_in.c - 1 - ..\..\..\git\rt-thread\components\net\lwip-1.4.1\src\core\tcp_in.c - - - tcp_out.c - 1 - ..\..\..\git\rt-thread\components\net\lwip-1.4.1\src\core\tcp_out.c - - - timers.c - 1 - ..\..\..\git\rt-thread\components\net\lwip-1.4.1\src\core\timers.c - - - udp.c - 1 - ..\..\..\git\rt-thread\components\net\lwip-1.4.1\src\core\udp.c - - - autoip.c - 1 - ..\..\..\git\rt-thread\components\net\lwip-1.4.1\src\core\ipv4\autoip.c - - - icmp.c - 1 - ..\..\..\git\rt-thread\components\net\lwip-1.4.1\src\core\ipv4\icmp.c - - - igmp.c - 1 - ..\..\..\git\rt-thread\components\net\lwip-1.4.1\src\core\ipv4\igmp.c - - - inet.c - 1 - ..\..\..\git\rt-thread\components\net\lwip-1.4.1\src\core\ipv4\inet.c + ..\..\components\net\lwip-2.0.2\src\core\dns.c + + inet_chksum.c 1 - ..\..\..\git\rt-thread\components\net\lwip-1.4.1\src\core\ipv4\inet_chksum.c + ..\..\components\net\lwip-2.0.2\src\core\inet_chksum.c + + + + init.c + 1 + ..\..\components\net\lwip-2.0.2\src\core\init.c + + + ip.c 1 - ..\..\..\git\rt-thread\components\net\lwip-1.4.1\src\core\ipv4\ip.c + ..\..\components\net\lwip-2.0.2\src\core\ip.c + + - ip_addr.c + memp.c 1 - ..\..\..\git\rt-thread\components\net\lwip-1.4.1\src\core\ipv4\ip_addr.c + ..\..\components\net\lwip-2.0.2\src\core\memp.c + + - ip_frag.c + netif.c 1 - ..\..\..\git\rt-thread\components\net\lwip-1.4.1\src\core\ipv4\ip_frag.c + ..\..\components\net\lwip-2.0.2\src\core\netif.c + + - etharp.c + pbuf.c 1 - ..\..\..\git\rt-thread\components\net\lwip-1.4.1\src\netif\etharp.c + ..\..\components\net\lwip-2.0.2\src\core\pbuf.c + + + + raw.c + 1 + ..\..\components\net\lwip-2.0.2\src\core\raw.c + + + + + stats.c + 1 + ..\..\components\net\lwip-2.0.2\src\core\stats.c + + + + + sys.c + 1 + ..\..\components\net\lwip-2.0.2\src\core\sys.c + + + + + tcp.c + 1 + ..\..\components\net\lwip-2.0.2\src\core\tcp.c + + + + + tcp_in.c + 1 + ..\..\components\net\lwip-2.0.2\src\core\tcp_in.c + + + + + tcp_out.c + 1 + ..\..\components\net\lwip-2.0.2\src\core\tcp_out.c + + + + + timeouts.c + 1 + ..\..\components\net\lwip-2.0.2\src\core\timeouts.c + + + + + udp.c + 1 + ..\..\components\net\lwip-2.0.2\src\core\udp.c + + + + + ethernet.c + 1 + ..\..\components\net\lwip-2.0.2\src\netif\ethernet.c + + + ethernetif.c 1 - ..\..\..\git\rt-thread\components\net\lwip-1.4.1\src\netif\ethernetif.c - - - slipif.c - 1 - ..\..\..\git\rt-thread\components\net\lwip-1.4.1\src\netif\slipif.c + ..\..\components\net\lwip-2.0.2\src\netif\ethernetif.c - - - trace - SEGGER_SYSVIEW_Config_RTThread.c + lowpan6.c 1 - ..\..\..\git\rt-thread\components\trace\SystemView_Src_V240\Config\SEGGER_SYSVIEW_Config_RTThread.c + ..\..\components\net\lwip-2.0.2\src\netif\lowpan6.c + + - SEGGER_SYSVIEW_RTThread.c + autoip.c 1 - ..\..\..\git\rt-thread\components\trace\SystemView_Src_V240\Config\SEGGER_SYSVIEW_RTThread.c + ..\..\components\net\lwip-2.0.2\src\core\ipv4\autoip.c + + - SEGGER_RTT.c + dhcp.c 1 - ..\..\..\git\rt-thread\components\trace\SystemView_Src_V240\SEGGER\SEGGER_RTT.c + ..\..\components\net\lwip-2.0.2\src\core\ipv4\dhcp.c + + - SEGGER_SYSVIEW.c + etharp.c 1 - ..\..\..\git\rt-thread\components\trace\SystemView_Src_V240\SEGGER\SEGGER_SYSVIEW.c + ..\..\components\net\lwip-2.0.2\src\core\ipv4\etharp.c + + + + + icmp.c + 1 + ..\..\components\net\lwip-2.0.2\src\core\ipv4\icmp.c + + + + + igmp.c + 1 + ..\..\components\net\lwip-2.0.2\src\core\ipv4\igmp.c + + + + + ip4.c + 1 + ..\..\components\net\lwip-2.0.2\src\core\ipv4\ip4.c + + + + + ip4_addr.c + 1 + ..\..\components\net\lwip-2.0.2\src\core\ipv4\ip4_addr.c + + + + + ip4_frag.c + 1 + ..\..\components\net\lwip-2.0.2\src\core\ipv4\ip4_frag.c - diff --git a/bsp/gd32450z-eval/project.uvprojx b/bsp/gd32450z-eval/project.uvprojx index 6ccda76c67..531902778d 100644 --- a/bsp/gd32450z-eval/project.uvprojx +++ b/bsp/gd32450z-eval/project.uvprojx @@ -10,7 +10,7 @@ rt-thread_gd32f4xx 0x4 ARM-ADS - 5060422::V5.06 update 4 (build 422)::ARMCC + 5060300::V5.06 update 3 (build 300)::ARMCC GD32F450ZK From 3136e5fca67d44d0fe0b16f2302f02f2531fa61a Mon Sep 17 00:00:00 2001 From: SummerGift Date: Wed, 1 Nov 2017 19:30:33 +0800 Subject: [PATCH 14/14] update asm9260t/project for mdk --- bsp/asm9260t/project.uvopt | 1075 +++++++++++++++++++++++++++++++++- bsp/asm9260t/project.uvproj | 217 ++----- bsp/asm9260t/template.uvopt | 3 +- bsp/asm9260t/template.uvproj | 7 +- 4 files changed, 1132 insertions(+), 170 deletions(-) diff --git a/bsp/asm9260t/project.uvopt b/bsp/asm9260t/project.uvopt index 68b788c6b0..faad67187e 100644 --- a/bsp/asm9260t/project.uvopt +++ b/bsp/asm9260t/project.uvopt @@ -13,7 +13,6 @@ *.txt; *.h; *.inc *.plm *.cpp - 0 @@ -32,7 +31,6 @@ 1 1 0 - 0 1 @@ -110,6 +108,7 @@ 1 1 1 + 1 0 0 5 @@ -172,4 +171,1076 @@ + + Applications + 0 + 0 + 0 + 0 + + 1 + 1 + 1 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + applications\application.c + application.c + 0 + 0 + + + 1 + 2 + 1 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + applications\startup.c + startup.c + 0 + 0 + + + + + Drivers + 0 + 0 + 0 + 0 + + 2 + 3 + 1 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + drivers\board.c + board.c + 0 + 0 + + + 2 + 4 + 1 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + drivers\usart.c + usart.c + 0 + 0 + + + 2 + 5 + 1 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + drivers\led.c + led.c + 0 + 0 + + + + + platform + 0 + 0 + 0 + 0 + + 3 + 6 + 1 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + platform\gpio.c + gpio.c + 0 + 0 + + + 3 + 7 + 1 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + platform\interrupt.c + interrupt.c + 0 + 0 + + + 3 + 8 + 1 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + platform\reset.c + reset.c + 0 + 0 + + + 3 + 9 + 1 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + platform\rt_low_level_init.c + rt_low_level_init.c + 0 + 0 + + + 3 + 10 + 1 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + platform\system_clock.c + system_clock.c + 0 + 0 + + + 3 + 11 + 1 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + platform\timer0.c + timer0.c + 0 + 0 + + + 3 + 12 + 1 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + platform\uart.c + uart.c + 0 + 0 + + + + + Kernel + 0 + 0 + 0 + 0 + + 4 + 13 + 1 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + ..\..\src\clock.c + clock.c + 0 + 0 + + + 4 + 14 + 1 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + ..\..\src\components.c + components.c + 0 + 0 + + + 4 + 15 + 1 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + ..\..\src\device.c + device.c + 0 + 0 + + + 4 + 16 + 1 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + ..\..\src\idle.c + idle.c + 0 + 0 + + + 4 + 17 + 1 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + ..\..\src\ipc.c + ipc.c + 0 + 0 + + + 4 + 18 + 1 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + ..\..\src\irq.c + irq.c + 0 + 0 + + + 4 + 19 + 1 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + ..\..\src\kservice.c + kservice.c + 0 + 0 + + + 4 + 20 + 1 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + ..\..\src\mempool.c + mempool.c + 0 + 0 + + + 4 + 21 + 1 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + ..\..\src\object.c + object.c + 0 + 0 + + + 4 + 22 + 1 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + ..\..\src\scheduler.c + scheduler.c + 0 + 0 + + + 4 + 23 + 1 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + ..\..\src\signal.c + signal.c + 0 + 0 + + + 4 + 24 + 1 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + ..\..\src\slab.c + slab.c + 0 + 0 + + + 4 + 25 + 1 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + ..\..\src\thread.c + thread.c + 0 + 0 + + + 4 + 26 + 1 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + ..\..\src\timer.c + timer.c + 0 + 0 + + + + + ARM926 + 0 + 0 + 0 + 0 + + 5 + 27 + 1 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + ..\..\libcpu\arm\arm926\cpuport.c + cpuport.c + 0 + 0 + + + 5 + 28 + 1 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + ..\..\libcpu\arm\arm926\mmu.c + mmu.c + 0 + 0 + + + 5 + 29 + 1 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + ..\..\libcpu\arm\arm926\stack.c + stack.c + 0 + 0 + + + 5 + 30 + 1 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + ..\..\libcpu\arm\arm926\trap.c + trap.c + 0 + 0 + + + 5 + 31 + 2 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + ..\..\libcpu\arm\arm926\context_rvds.S + context_rvds.S + 0 + 0 + + + 5 + 32 + 2 + 0 + 0 + 28 + 0 + 56 + 57 + 0 + ..\..\libcpu\arm\arm926\start_rvds.S + start_rvds.S + 0 + 0 + + + 5 + 33 + 1 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + ..\..\libcpu\arm\common\backtrace.c + backtrace.c + 0 + 0 + + + 5 + 34 + 1 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + ..\..\libcpu\arm\common\div0.c + div0.c + 0 + 0 + + + 5 + 35 + 1 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + ..\..\libcpu\arm\common\showmem.c + showmem.c + 0 + 0 + + + + + DeviceDrivers + 0 + 0 + 0 + 0 + + 6 + 36 + 1 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + ..\..\components\drivers\i2c\i2c_core.c + i2c_core.c + 0 + 0 + + + 6 + 37 + 1 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + ..\..\components\drivers\i2c\i2c_dev.c + i2c_dev.c + 0 + 0 + + + 6 + 38 + 1 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + ..\..\components\drivers\i2c\i2c-bit-ops.c + i2c-bit-ops.c + 0 + 0 + + + 6 + 39 + 1 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + ..\..\components\drivers\serial\serial.c + serial.c + 0 + 0 + + + 6 + 40 + 1 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + ..\..\components\drivers\src\completion.c + completion.c + 0 + 0 + + + 6 + 41 + 1 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + ..\..\components\drivers\src\dataqueue.c + dataqueue.c + 0 + 0 + + + 6 + 42 + 1 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + ..\..\components\drivers\src\pipe.c + pipe.c + 0 + 0 + + + 6 + 43 + 1 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + ..\..\components\drivers\src\ringbuffer.c + ringbuffer.c + 0 + 0 + + + 6 + 44 + 1 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + ..\..\components\drivers\src\waitqueue.c + waitqueue.c + 0 + 0 + + + 6 + 45 + 1 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + ..\..\components\drivers\src\workqueue.c + workqueue.c + 0 + 0 + + + + + finsh + 0 + 0 + 0 + 0 + + 7 + 46 + 1 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + ..\..\components\finsh\shell.c + shell.c + 0 + 0 + + + 7 + 47 + 1 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + ..\..\components\finsh\symbol.c + symbol.c + 0 + 0 + + + 7 + 48 + 1 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + ..\..\components\finsh\cmd.c + cmd.c + 0 + 0 + + + 7 + 49 + 1 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + ..\..\components\finsh\finsh_compiler.c + finsh_compiler.c + 0 + 0 + + + 7 + 50 + 1 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + ..\..\components\finsh\finsh_error.c + finsh_error.c + 0 + 0 + + + 7 + 51 + 1 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + ..\..\components\finsh\finsh_heap.c + finsh_heap.c + 0 + 0 + + + 7 + 52 + 1 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + ..\..\components\finsh\finsh_init.c + finsh_init.c + 0 + 0 + + + 7 + 53 + 1 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + ..\..\components\finsh\finsh_node.c + finsh_node.c + 0 + 0 + + + 7 + 54 + 1 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + ..\..\components\finsh\finsh_ops.c + finsh_ops.c + 0 + 0 + + + 7 + 55 + 1 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + ..\..\components\finsh\finsh_parser.c + finsh_parser.c + 0 + 0 + + + 7 + 56 + 1 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + ..\..\components\finsh\finsh_var.c + finsh_var.c + 0 + 0 + + + 7 + 57 + 1 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + ..\..\components\finsh\finsh_vm.c + finsh_vm.c + 0 + 0 + + + 7 + 58 + 1 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + ..\..\components\finsh\finsh_token.c + finsh_token.c + 0 + 0 + + + + + libc + 0 + 0 + 0 + 0 + + 8 + 59 + 1 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + ..\..\components\libc\compilers\armlibc\libc.c + libc.c + 0 + 0 + + + 8 + 60 + 1 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + ..\..\components\libc\compilers\armlibc\libc_syms.c + libc_syms.c + 0 + 0 + + + 8 + 61 + 1 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + ..\..\components\libc\compilers\armlibc\mem_std.c + mem_std.c + 0 + 0 + + + 8 + 62 + 1 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + ..\..\components\libc\compilers\armlibc\stdio.c + stdio.c + 0 + 0 + + + 8 + 63 + 1 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + ..\..\components\libc\compilers\armlibc\stubs.c + stubs.c + 0 + 0 + + + diff --git a/bsp/asm9260t/project.uvproj b/bsp/asm9260t/project.uvproj index 4516220066..26029b978d 100644 --- a/bsp/asm9260t/project.uvproj +++ b/bsp/asm9260t/project.uvproj @@ -1,7 +1,10 @@ + 1.1 +
### uVision Project, (C) Keil Software
+ rtthread @@ -12,26 +15,26 @@ AT91SAM9260 Atmel IRAM(0x200000-0x200FFF) IRAM2(0x300000-0x300FFF) IROM(0x100000-0x107FFF) CLOCK(18432000) CPUTYPE(ARM926EJ-S) - + "STARTUP\Atmel\SAM9260.s" ("Atmel AT91SAM9260 Startup Code") UL2ARM(-UV2077N9E -O47 -S0 -C0 -N00("ARM926EJ-S Core") -D00(0792603F) -L00(4) -FO7 -FD300000 -FC1000 -FN1 -FF0AT91SAM9_DF_P1056_CS1 -FS020000000 -FL083BE00) 4210 AT91SAM9260.H - - - - - - - - - - + + + + + + + + + + 0 0 - - - + + + Atmel\SAM9260\ Atmel\SAM9260\ @@ -55,8 +58,8 @@ 0 0 - - + + 0 0 0 @@ -65,23 +68,21 @@ 0 0 - - + + 0 0 - 0 - 0 0 0 - - + + 0 0 0 - + 0 @@ -95,8 +96,8 @@ 0 0 3 - - + + 1 @@ -105,7 +106,7 @@ DARMATS9.DLL -p91SAM9260 SARM.DLL - + TARMATS9.DLL -p91SAM9260 @@ -140,21 +141,22 @@ 1 1 1 + 1 0 5 - - - - - + + + + + - - - - + + + + .\jlink\at91sam9260.ini Segger\JLTAgdi.dll @@ -172,9 +174,9 @@ BIN\UL2ARM.DLL "" () .\jlink\at91sam9260.ini - - - + + + 0 @@ -207,7 +209,7 @@ 0 0 ARM926EJ-S - + 0 0 0 @@ -338,7 +340,7 @@ 0x1000 - + 1 @@ -357,9 +359,9 @@ 0 0 - + RT_USING_ARM_LIBC - + applications;.;drivers;platform;..\..\include;..\..\libcpu\arm\arm926;..\..\libcpu\arm\common;..\..\components\drivers\include;..\..\components\drivers\include;..\..\components\drivers\include;..\..\components\finsh;..\..\components\libc\compilers\armlibc @@ -374,10 +376,10 @@ 0 0 - - - - + + + + .\platform @@ -389,13 +391,13 @@ 0 0x20000000 0x20800000 - - .\at91sam9260_ram.scat - - + + .\link_scripts\sdram.scat + + --keep *.o(.rti_fn.*) --keep *.o(FSymTab) --keep *.o(VSymTab) - - + + @@ -408,8 +410,6 @@ 1 applications\application.c - - startup.c 1 @@ -425,15 +425,11 @@ 1 drivers\board.c - - usart.c 1 drivers\usart.c - - led.c 1 @@ -449,43 +445,31 @@ 1 platform\gpio.c - - interrupt.c 1 platform\interrupt.c - - reset.c 1 platform\reset.c - - rt_low_level_init.c 1 platform\rt_low_level_init.c - - system_clock.c 1 platform\system_clock.c - - timer0.c 1 platform\timer0.c - - uart.c 1 @@ -501,92 +485,66 @@ 1 ..\..\src\clock.c - - components.c 1 ..\..\src\components.c - - device.c 1 ..\..\src\device.c - - idle.c 1 ..\..\src\idle.c - - ipc.c 1 ..\..\src\ipc.c - - irq.c 1 ..\..\src\irq.c - - kservice.c 1 ..\..\src\kservice.c - - mempool.c 1 ..\..\src\mempool.c - - object.c 1 ..\..\src\object.c - - scheduler.c 1 ..\..\src\scheduler.c - - signal.c 1 ..\..\src\signal.c - - slab.c 1 ..\..\src\slab.c - - thread.c 1 ..\..\src\thread.c - - timer.c 1 @@ -602,57 +560,41 @@ 1 ..\..\libcpu\arm\arm926\cpuport.c - - mmu.c 1 ..\..\libcpu\arm\arm926\mmu.c - - stack.c 1 ..\..\libcpu\arm\arm926\stack.c - - trap.c 1 ..\..\libcpu\arm\arm926\trap.c - - context_rvds.S 2 ..\..\libcpu\arm\arm926\context_rvds.S - - start_rvds.S 2 ..\..\libcpu\arm\arm926\start_rvds.S - - backtrace.c 1 ..\..\libcpu\arm\common\backtrace.c - - div0.c 1 ..\..\libcpu\arm\common\div0.c - - showmem.c 1 @@ -668,64 +610,46 @@ 1 ..\..\components\drivers\i2c\i2c_core.c - - i2c_dev.c 1 ..\..\components\drivers\i2c\i2c_dev.c - - i2c-bit-ops.c 1 ..\..\components\drivers\i2c\i2c-bit-ops.c - - serial.c 1 ..\..\components\drivers\serial\serial.c - - completion.c 1 ..\..\components\drivers\src\completion.c - - dataqueue.c 1 ..\..\components\drivers\src\dataqueue.c - - pipe.c 1 ..\..\components\drivers\src\pipe.c - - ringbuffer.c 1 ..\..\components\drivers\src\ringbuffer.c - - waitqueue.c 1 ..\..\components\drivers\src\waitqueue.c - - workqueue.c 1 @@ -741,85 +665,61 @@ 1 ..\..\components\finsh\shell.c - - symbol.c 1 ..\..\components\finsh\symbol.c - - cmd.c 1 ..\..\components\finsh\cmd.c - - finsh_compiler.c 1 ..\..\components\finsh\finsh_compiler.c - - finsh_error.c 1 ..\..\components\finsh\finsh_error.c - - finsh_heap.c 1 ..\..\components\finsh\finsh_heap.c - - finsh_init.c 1 ..\..\components\finsh\finsh_init.c - - finsh_node.c 1 ..\..\components\finsh\finsh_node.c - - finsh_ops.c 1 ..\..\components\finsh\finsh_ops.c - - finsh_parser.c 1 ..\..\components\finsh\finsh_parser.c - - finsh_var.c 1 ..\..\components\finsh\finsh_var.c - - finsh_vm.c 1 ..\..\components\finsh\finsh_vm.c - - finsh_token.c 1 @@ -835,29 +735,21 @@ 1 ..\..\components\libc\compilers\armlibc\libc.c - - libc_syms.c 1 ..\..\components\libc\compilers\armlibc\libc_syms.c - - mem_std.c 1 ..\..\components\libc\compilers\armlibc\mem_std.c - - stdio.c 1 ..\..\components\libc\compilers\armlibc\stdio.c - - stubs.c 1 @@ -868,4 +760,5 @@ +
diff --git a/bsp/asm9260t/template.uvopt b/bsp/asm9260t/template.uvopt index 68b788c6b0..2dca5102b8 100644 --- a/bsp/asm9260t/template.uvopt +++ b/bsp/asm9260t/template.uvopt @@ -13,7 +13,6 @@ *.txt; *.h; *.inc *.plm *.cpp - 0 @@ -32,7 +31,6 @@ 1 1 0 - 0 1 @@ -110,6 +108,7 @@ 1 1 1 + 1 0 0 5 diff --git a/bsp/asm9260t/template.uvproj b/bsp/asm9260t/template.uvproj index 2e357d9fdf..b1931883a7 100644 --- a/bsp/asm9260t/template.uvproj +++ b/bsp/asm9260t/template.uvproj @@ -72,8 +72,6 @@ 0 0 - 0 - 0 0 @@ -143,6 +141,7 @@ 1 1 1 + 1 0 5 @@ -380,7 +379,7 @@ - + .\platform @@ -393,7 +392,7 @@ 0x20000000 0x20800000 - .\at91sam9260_ram.scat + .\link_scripts\sdram.scat