diff --git a/bsp/CME_M7/.config b/bsp/CME_M7/.config index df3696cafd..b5f2308dad 100644 --- a/bsp/CME_M7/.config +++ b/bsp/CME_M7/.config @@ -7,7 +7,6 @@ # RT-Thread Kernel # CONFIG_RT_NAME_MAX=8 -# CONFIG_RT_USING_BIG_ENDIAN is not set # CONFIG_RT_USING_ARCH_DATA_TYPE is not set # CONFIG_RT_USING_SMP is not set CONFIG_RT_ALIGN_SIZE=4 @@ -201,7 +200,6 @@ CONFIG_RT_USING_PIN=y # # POSIX layer and C standard library # -# CONFIG_RT_USING_MODULE is not set CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8 # @@ -210,7 +208,9 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8 # CONFIG_RT_USING_POSIX_FS is not set # CONFIG_RT_USING_POSIX_DELAY is not set # CONFIG_RT_USING_POSIX_CLOCK is not set +# CONFIG_RT_USING_POSIX_TIMER is not set # CONFIG_RT_USING_PTHREADS is not set +# CONFIG_RT_USING_MODULE is not set # # Interprocess Communication (IPC) @@ -243,7 +243,6 @@ CONFIG_NETDEV_USING_PING=y # CONFIG_RT_USING_LWIP=y # CONFIG_RT_USING_LWIP141 is not set -# CONFIG_RT_USING_LWIP202 is not set CONFIG_RT_USING_LWIP203=y # CONFIG_RT_USING_LWIP212 is not set # CONFIG_RT_USING_LWIP_IPV6 is not set @@ -476,6 +475,7 @@ CONFIG_RT_LWIP_USING_PING=y # CONFIG_PKG_USING_MCURSES is not set # CONFIG_PKG_USING_TERMBOX is not set # CONFIG_PKG_USING_VT100 is not set +# CONFIG_PKG_USING_QRCODE is not set # # tools packages @@ -486,7 +486,6 @@ CONFIG_RT_LWIP_USING_PING=y # CONFIG_PKG_USING_SYSTEMVIEW is not set # CONFIG_PKG_USING_SEGGER_RTT is not set # CONFIG_PKG_USING_RDB is not set -# CONFIG_PKG_USING_QRCODE is not set # CONFIG_PKG_USING_ULOG_EASYFLASH is not set # CONFIG_PKG_USING_ULOG_FILE is not set # CONFIG_PKG_USING_LOGMGR is not set @@ -537,6 +536,7 @@ CONFIG_RT_LWIP_USING_PING=y # CONFIG_PKG_USING_POSIX_GETLINE is not set # CONFIG_PKG_USING_POSIX_WCWIDTH is not set # CONFIG_PKG_USING_POSIX_ITOA is not set +# CONFIG_PKG_USING_POSIX_STRINGS is not set # # acceleration: Assembly language or algorithmic acceleration packages @@ -648,6 +648,7 @@ CONFIG_RT_LWIP_USING_PING=y # CONFIG_PKG_USING_SSD1306 is not set # CONFIG_PKG_USING_QKEY is not set # CONFIG_PKG_USING_RS485 is not set +# CONFIG_PKG_USING_RS232 is not set # CONFIG_PKG_USING_NES is not set # CONFIG_PKG_USING_VIRTUAL_SENSOR is not set # CONFIG_PKG_USING_VDEVICE is not set @@ -735,4 +736,6 @@ CONFIG_RT_LWIP_USING_PING=y # CONFIG_PKG_USING_LWGPS is not set # CONFIG_PKG_USING_STATE_MACHINE is not set # CONFIG_PKG_USING_DESIGN_PATTERN is not set +# CONFIG_PKG_USING_CONTROLLER is not set +# CONFIG_PKG_USING_PHASE_LOCKED_LOOP is not set CONFIG_SOC_CME_M7=y diff --git a/bsp/CME_M7/project.uvproj b/bsp/CME_M7/project.uvproj index 72266ffc5e..7ec3e2c7f2 100644 --- a/bsp/CME_M7/project.uvproj +++ b/bsp/CME_M7/project.uvproj @@ -363,7 +363,7 @@ __RTTHREAD__, RT_USING_ARM_LIBC, __CLK_TCK=RT_TICK_PER_SECOND - applications;.;CMSIS\CME_M7;CMSIS\CMSIS\Include;..\..\components\libc\compilers\common;..\..\components\libc\compilers\common\nogcc;..\..\libcpu\arm\common;..\..\libcpu\arm\cortex-m3;..\..\components\drivers\include;..\..\components\drivers\include;..\..\components\drivers\include;drivers;..\..\components\dfs\include;..\..\components\dfs\filesystems\elmfat;..\..\components\finsh;.;..\..\include;StdPeriph_Driver\inc;..\..\components\net\lwip-2.0.3\src;..\..\components\net\lwip-2.0.3\src\include;..\..\components\net\lwip-2.0.3\src\include\ipv4;..\..\components\net\lwip-2.0.3\src\arch\include;..\..\components\net\lwip-2.0.3\src\include\netif;..\..\components\net\lwip-2.0.3\src\include\posix;..\..\components\libc\posix\io\poll;..\..\components\libc\posix\ipc;..\..\examples\utest\testcases\kernel + applications;.;CMSIS\CME_M7;CMSIS\CMSIS\Include;..\..\components\libc\compilers\common;..\..\components\libc\compilers\common\extension;..\..\libcpu\arm\common;..\..\libcpu\arm\cortex-m3;..\..\components\drivers\include;..\..\components\drivers\include;..\..\components\drivers\include;drivers;..\..\components\dfs\include;..\..\components\dfs\filesystems\elmfat;..\..\components\finsh;.;..\..\include;StdPeriph_Driver\inc;..\..\components\net\lwip-2.0.3\src;..\..\components\net\lwip-2.0.3\src\include;..\..\components\net\lwip-2.0.3\src\include\ipv4;..\..\components\net\lwip-2.0.3\src\arch\include;..\..\components\net\lwip-2.0.3\src\include\netif;..\..\components\net\lwip-2.0.3\src\include\posix;..\..\components\libc\posix\io\poll;..\..\components\libc\posix\io\stdio;..\..\components\libc\posix\ipc;..\..\examples\utest\testcases\kernel @@ -414,16 +414,16 @@ - startup.c + application.c 1 - applications\startup.c + applications\application.c - application.c + startup.c 1 - applications\application.c + applications\startup.c @@ -453,13 +453,6 @@ ..\..\components\libc\compilers\armlibc\syscall_mem.c - - - libc_syms.c - 1 - ..\..\components\libc\compilers\armlibc\libc_syms.c - - syscalls.c @@ -505,13 +498,6 @@ ..\..\libcpu\arm\common\showmem.c - - - context_rvds.S - 2 - ..\..\libcpu\arm\cortex-m3\context_rvds.S - - cpuport.c @@ -519,9 +505,65 @@ ..\..\libcpu\arm\cortex-m3\cpuport.c + + + context_rvds.S + 2 + ..\..\libcpu\arm\cortex-m3\context_rvds.S + + DeviceDrivers + + + pipe.c + 1 + ..\..\components\drivers\ipc\pipe.c + + + + + ringblk_buf.c + 1 + ..\..\components\drivers\ipc\ringblk_buf.c + + + + + ringbuffer.c + 1 + ..\..\components\drivers\ipc\ringbuffer.c + + + + + completion.c + 1 + ..\..\components\drivers\ipc\completion.c + + + + + waitqueue.c + 1 + ..\..\components\drivers\ipc\waitqueue.c + + + + + dataqueue.c + 1 + ..\..\components\drivers\ipc\dataqueue.c + + + + + workqueue.c + 1 + ..\..\components\drivers\ipc\workqueue.c + + pin.c @@ -536,55 +578,6 @@ ..\..\components\drivers\serial\serial.c - - - waitqueue.c - 1 - ..\..\components\drivers\src\waitqueue.c - - - - - completion.c - 1 - ..\..\components\drivers\src\completion.c - - - - - ringblk_buf.c - 1 - ..\..\components\drivers\src\ringblk_buf.c - - - - - ringbuffer.c - 1 - ..\..\components\drivers\src\ringbuffer.c - - - - - workqueue.c - 1 - ..\..\components\drivers\src\workqueue.c - - - - - dataqueue.c - 1 - ..\..\components\drivers\src\dataqueue.c - - - - - pipe.c - 1 - ..\..\components\drivers\src\pipe.c - - Drivers @@ -649,16 +642,16 @@ - dfs_elm.c + ffunicode.c 1 - ..\..\components\dfs\filesystems\elmfat\dfs_elm.c + ..\..\components\dfs\filesystems\elmfat\ffunicode.c - ffunicode.c + dfs_elm.c 1 - ..\..\components\dfs\filesystems\elmfat\ffunicode.c + ..\..\components\dfs\filesystems\elmfat\dfs_elm.c @@ -702,13 +695,6 @@ Kernel - - - timer.c - 1 - ..\..\src\timer.c - - mem.c @@ -716,27 +702,6 @@ ..\..\src\mem.c - - - idle.c - 1 - ..\..\src\idle.c - - - - - clock.c - 1 - ..\..\src\clock.c - - - - - irq.c - 1 - ..\..\src\irq.c - - thread.c @@ -746,9 +711,9 @@ - device.c + irq.c 1 - ..\..\src\device.c + ..\..\src\irq.c @@ -774,9 +739,30 @@ - ipc.c + timer.c 1 - ..\..\src\ipc.c + ..\..\src\timer.c + + + + + device.c + 1 + ..\..\src\device.c + + + + + mempool.c + 1 + ..\..\src\mempool.c + + + + + idle.c + 1 + ..\..\src\idle.c @@ -788,9 +774,16 @@ - mempool.c + ipc.c 1 - ..\..\src\mempool.c + ..\..\src\ipc.c + + + + + clock.c + 1 + ..\..\src\clock.c @@ -798,44 +791,9 @@ Libraries - cmem7_eth.c + cmem7_spi.c 1 - StdPeriph_Driver\src\cmem7_eth.c - - - - - cmem7_flash.c - 1 - StdPeriph_Driver\src\cmem7_flash.c - - - - - cmem7_uart.c - 1 - StdPeriph_Driver\src\cmem7_uart.c - - - - - cmem7_misc.c - 1 - StdPeriph_Driver\src\cmem7_misc.c - - - - - cmem7_i2c.c - 1 - StdPeriph_Driver\src\cmem7_i2c.c - - - - - cmem7_can.c - 1 - StdPeriph_Driver\src\cmem7_can.c + StdPeriph_Driver\src\cmem7_spi.c @@ -847,16 +805,16 @@ - cmem7_dma.c + cmem7_eth.c 1 - StdPeriph_Driver\src\cmem7_dma.c + StdPeriph_Driver\src\cmem7_eth.c - cmem7_gpio.c + cmem7_aes.c 1 - StdPeriph_Driver\src\cmem7_gpio.c + StdPeriph_Driver\src\cmem7_aes.c @@ -875,9 +833,9 @@ - cmem7_adc.c + cmem7_gpio.c 1 - StdPeriph_Driver\src\cmem7_adc.c + StdPeriph_Driver\src\cmem7_gpio.c @@ -889,16 +847,37 @@ - cmem7_spi.c + cmem7_can.c 1 - StdPeriph_Driver\src\cmem7_spi.c + StdPeriph_Driver\src\cmem7_can.c - cmem7_aes.c + cmem7_dma.c 1 - StdPeriph_Driver\src\cmem7_aes.c + StdPeriph_Driver\src\cmem7_dma.c + + + + + cmem7_i2c.c + 1 + StdPeriph_Driver\src\cmem7_i2c.c + + + + + cmem7_adc.c + 1 + StdPeriph_Driver\src\cmem7_adc.c + + + + + cmem7_flash.c + 1 + StdPeriph_Driver\src\cmem7_flash.c @@ -908,6 +887,13 @@ StdPeriph_Driver\src\cmem7_efuse.c + + + cmem7_misc.c + 1 + StdPeriph_Driver\src\cmem7_misc.c + + cmem7_usb.c @@ -915,16 +901,16 @@ StdPeriph_Driver\src\cmem7_usb.c + + + cmem7_uart.c + 1 + StdPeriph_Driver\src\cmem7_uart.c + + lwIP - - - ping.c - 1 - ..\..\components\net\lwip-2.0.3\src\apps\ping\ping.c - - netdb.c @@ -995,6 +981,13 @@ ..\..\components\net\lwip-2.0.3\src\core\ipv4\ip4_addr.c + + + ping.c + 1 + ..\..\components\net\lwip-2.0.3\src\apps\ping\ping.c + + dhcp.c diff --git a/bsp/Vango_V85xx/.config b/bsp/Vango_V85xx/.config index d3346eb20d..2d07a3ac94 100644 --- a/bsp/Vango_V85xx/.config +++ b/bsp/Vango_V85xx/.config @@ -7,7 +7,6 @@ # RT-Thread Kernel # CONFIG_RT_NAME_MAX=8 -# CONFIG_RT_USING_BIG_ENDIAN is not set # CONFIG_RT_USING_ARCH_DATA_TYPE is not set # CONFIG_RT_USING_SMP is not set CONFIG_RT_ALIGN_SIZE=4 @@ -177,7 +176,6 @@ CONFIG_RT_USING_PIN=y # # POSIX layer and C standard library # -# CONFIG_RT_USING_MODULE is not set CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8 # @@ -186,7 +184,9 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8 # CONFIG_RT_USING_POSIX_FS is not set # CONFIG_RT_USING_POSIX_DELAY is not set # CONFIG_RT_USING_POSIX_CLOCK is not set +# CONFIG_RT_USING_POSIX_TIMER is not set # CONFIG_RT_USING_PTHREADS is not set +# CONFIG_RT_USING_MODULE is not set # # Interprocess Communication (IPC) @@ -395,6 +395,7 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8 # CONFIG_PKG_USING_MCURSES is not set # CONFIG_PKG_USING_TERMBOX is not set # CONFIG_PKG_USING_VT100 is not set +# CONFIG_PKG_USING_QRCODE is not set # # tools packages @@ -405,7 +406,6 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8 # CONFIG_PKG_USING_SYSTEMVIEW is not set # CONFIG_PKG_USING_SEGGER_RTT is not set # CONFIG_PKG_USING_RDB is not set -# CONFIG_PKG_USING_QRCODE is not set # CONFIG_PKG_USING_ULOG_EASYFLASH is not set # CONFIG_PKG_USING_ULOG_FILE is not set # CONFIG_PKG_USING_LOGMGR is not set @@ -456,6 +456,7 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8 # CONFIG_PKG_USING_POSIX_GETLINE is not set # CONFIG_PKG_USING_POSIX_WCWIDTH is not set # CONFIG_PKG_USING_POSIX_ITOA is not set +# CONFIG_PKG_USING_POSIX_STRINGS is not set # # acceleration: Assembly language or algorithmic acceleration packages @@ -567,6 +568,7 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8 # CONFIG_PKG_USING_SSD1306 is not set # CONFIG_PKG_USING_QKEY is not set # CONFIG_PKG_USING_RS485 is not set +# CONFIG_PKG_USING_RS232 is not set # CONFIG_PKG_USING_NES is not set # CONFIG_PKG_USING_VIRTUAL_SENSOR is not set # CONFIG_PKG_USING_VDEVICE is not set @@ -654,6 +656,8 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8 # CONFIG_PKG_USING_LWGPS is not set # CONFIG_PKG_USING_STATE_MACHINE is not set # CONFIG_PKG_USING_DESIGN_PATTERN is not set +# CONFIG_PKG_USING_CONTROLLER is not set +# CONFIG_PKG_USING_PHASE_LOCKED_LOOP is not set CONFIG_SOC_SERIES_V85XX=y CONFIG_SOC_V85XX=y diff --git a/bsp/Vango_V85xx/project.uvprojx b/bsp/Vango_V85xx/project.uvprojx index 90a6b141c4..9410726a6d 100644 --- a/bsp/Vango_V85xx/project.uvprojx +++ b/bsp/Vango_V85xx/project.uvprojx @@ -333,7 +333,7 @@ V85xx, USE_STDPERIPH_DRIVER, __CLK_TCK=RT_TICK_PER_SECOND, __RTTHREAD__, USE_TARGET_DRIVER, RT_USING_ARM_LIBC - applications;..\..\components\libc\compilers\common;..\..\components\libc\compilers\common\nogcc;..\..\libcpu\arm\common;..\..\libcpu\arm\cortex-m0;..\..\components\drivers\include;..\..\components\drivers\include;..\..\components\drivers\include;drivers;..\..\components\dfs\include;..\..\components\dfs\filesystems\devfs;..\..\components\finsh;.;..\..\include;..\..\components\libc\posix\io\poll;..\..\components\libc\posix\ipc;..\..\examples\utest\testcases\kernel;Libraries\CMSIS\Vango\V85xx\Include;Libraries\CMSIS;Libraries\VangoV85xx_standard_peripheral\Include + applications;..\..\components\libc\compilers\common;..\..\components\libc\compilers\common\extension;..\..\libcpu\arm\common;..\..\libcpu\arm\cortex-m0;..\..\components\drivers\include;..\..\components\drivers\include;..\..\components\drivers\include;drivers;..\..\components\dfs\include;..\..\components\dfs\filesystems\devfs;..\..\components\finsh;.;..\..\include;..\..\components\libc\posix\io\poll;..\..\components\libc\posix\io\stdio;..\..\components\libc\posix\ipc;..\..\examples\utest\testcases\kernel;Libraries\CMSIS\Vango\V85xx\Include;Libraries\CMSIS;Libraries\VangoV85xx_standard_peripheral\Include @@ -400,13 +400,6 @@ ..\..\components\libc\compilers\armlibc\syscalls.c - - - libc_syms.c - 1 - ..\..\components\libc\compilers\armlibc\libc_syms.c - - time.c @@ -433,16 +426,16 @@ - showmem.c + backtrace.c 1 - ..\..\libcpu\arm\common\showmem.c + ..\..\libcpu\arm\common\backtrace.c - backtrace.c + showmem.c 1 - ..\..\libcpu\arm\common\backtrace.c + ..\..\libcpu\arm\common\showmem.c @@ -462,6 +455,55 @@ DeviceDrivers + + + dataqueue.c + 1 + ..\..\components\drivers\ipc\dataqueue.c + + + + + ringbuffer.c + 1 + ..\..\components\drivers\ipc\ringbuffer.c + + + + + completion.c + 1 + ..\..\components\drivers\ipc\completion.c + + + + + pipe.c + 1 + ..\..\components\drivers\ipc\pipe.c + + + + + waitqueue.c + 1 + ..\..\components\drivers\ipc\waitqueue.c + + + + + workqueue.c + 1 + ..\..\components\drivers\ipc\workqueue.c + + + + + ringblk_buf.c + 1 + ..\..\components\drivers\ipc\ringblk_buf.c + + pin.c @@ -476,55 +518,6 @@ ..\..\components\drivers\serial\serial.c - - - ringblk_buf.c - 1 - ..\..\components\drivers\src\ringblk_buf.c - - - - - completion.c - 1 - ..\..\components\drivers\src\completion.c - - - - - waitqueue.c - 1 - ..\..\components\drivers\src\waitqueue.c - - - - - workqueue.c - 1 - ..\..\components\drivers\src\workqueue.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 - - Drivers @@ -621,27 +614,6 @@ Kernel - - - ipc.c - 1 - ..\..\src\ipc.c - - - - - mempool.c - 1 - ..\..\src\mempool.c - - - - - kservice.c - 1 - ..\..\src\kservice.c - - components.c @@ -658,30 +630,9 @@ - timer.c + mempool.c 1 - ..\..\src\timer.c - - - - - device.c - 1 - ..\..\src\device.c - - - - - thread.c - 1 - ..\..\src\thread.c - - - - - scheduler.c - 1 - ..\..\src\scheduler.c + ..\..\src\mempool.c @@ -691,6 +642,13 @@ ..\..\src\clock.c + + + ipc.c + 1 + ..\..\src\ipc.c + + object.c @@ -700,9 +658,30 @@ - idle.c + device.c 1 - ..\..\src\idle.c + ..\..\src\device.c + + + + + kservice.c + 1 + ..\..\src\kservice.c + + + + + scheduler.c + 1 + ..\..\src\scheduler.c + + + + + timer.c + 1 + ..\..\src\timer.c @@ -712,56 +691,28 @@ ..\..\src\irq.c + + + thread.c + 1 + ..\..\src\thread.c + + + + + idle.c + 1 + ..\..\src\idle.c + + Vango_Lib - lib_spi.c + lib_pwm.c 1 - Libraries\VangoV85xx_standard_peripheral\Source\lib_spi.c - - - - - lib_clk.c - 1 - Libraries\VangoV85xx_standard_peripheral\Source\lib_clk.c - - - - - lib_ana.c - 1 - Libraries\VangoV85xx_standard_peripheral\Source\lib_ana.c - - - - - startup_target.S - 2 - Libraries\CMSIS\Vango\V85xx\Source\Keil5\startup_target.S - - - - - lib_i2c.c - 1 - Libraries\VangoV85xx_standard_peripheral\Source\lib_i2c.c - - - - - lib_tmr.c - 1 - Libraries\VangoV85xx_standard_peripheral\Source\lib_tmr.c - - - - - lib_iso7816.c - 1 - Libraries\VangoV85xx_standard_peripheral\Source\lib_iso7816.c + Libraries\VangoV85xx_standard_peripheral\Source\lib_pwm.c @@ -778,6 +729,111 @@ Libraries\VangoV85xx_standard_peripheral\Source\lib_gpio.c + + + lib_spi.c + 1 + Libraries\VangoV85xx_standard_peripheral\Source\lib_spi.c + + + + + lib_wdt.c + 1 + Libraries\VangoV85xx_standard_peripheral\Source\lib_wdt.c + + + + + lib_uart.c + 1 + Libraries\VangoV85xx_standard_peripheral\Source\lib_uart.c + + + + + system_target.c + 1 + Libraries\CMSIS\Vango\V85xx\Source\system_target.c + + + + + lib_u32k.c + 1 + Libraries\VangoV85xx_standard_peripheral\Source\lib_u32k.c + + + + + lib_clk.c + 1 + Libraries\VangoV85xx_standard_peripheral\Source\lib_clk.c + + + + + startup_target.S + 2 + Libraries\CMSIS\Vango\V85xx\Source\Keil5\startup_target.S + + + + + lib_cortex.c + 1 + Libraries\CMSIS\Vango\V85xx\Source\lib_cortex.c + + + + + lib_adc.c + 1 + Libraries\VangoV85xx_standard_peripheral\Source\lib_adc.c + + + + + lib_iso7816.c + 1 + Libraries\VangoV85xx_standard_peripheral\Source\lib_iso7816.c + + + + + lib_tmr.c + 1 + Libraries\VangoV85xx_standard_peripheral\Source\lib_tmr.c + + + + + lib_adc_tiny.c + 1 + Libraries\VangoV85xx_standard_peripheral\Source\lib_adc_tiny.c + + + + + lib_misc.c + 1 + Libraries\VangoV85xx_standard_peripheral\Source\lib_misc.c + + + + + lib_dma.c + 1 + Libraries\VangoV85xx_standard_peripheral\Source\lib_dma.c + + + + + lib_comp.c + 1 + Libraries\VangoV85xx_standard_peripheral\Source\lib_comp.c + + lib_version.c @@ -794,9 +850,9 @@ - lib_comp.c + lib_flash.c 1 - Libraries\VangoV85xx_standard_peripheral\Source\lib_comp.c + Libraries\VangoV85xx_standard_peripheral\Source\lib_flash.c @@ -808,44 +864,16 @@ - lib_pwm.c + lib_pmu.c 1 - Libraries\VangoV85xx_standard_peripheral\Source\lib_pwm.c + Libraries\VangoV85xx_standard_peripheral\Source\lib_pmu.c - lib_flash.c + lib_i2c.c 1 - Libraries\VangoV85xx_standard_peripheral\Source\lib_flash.c - - - - - lib_uart.c - 1 - Libraries\VangoV85xx_standard_peripheral\Source\lib_uart.c - - - - - lib_u32k.c - 1 - Libraries\VangoV85xx_standard_peripheral\Source\lib_u32k.c - - - - - lib_cortex.c - 1 - Libraries\CMSIS\Vango\V85xx\Source\lib_cortex.c - - - - - lib_dma.c - 1 - Libraries\VangoV85xx_standard_peripheral\Source\lib_dma.c + Libraries\VangoV85xx_standard_peripheral\Source\lib_i2c.c @@ -855,34 +883,6 @@ Libraries\VangoV85xx_standard_peripheral\Source\lib_crypt.c - - - lib_pmu.c - 1 - Libraries\VangoV85xx_standard_peripheral\Source\lib_pmu.c - - - - - lib_wdt.c - 1 - Libraries\VangoV85xx_standard_peripheral\Source\lib_wdt.c - - - - - lib_adc_tiny.c - 1 - Libraries\VangoV85xx_standard_peripheral\Source\lib_adc_tiny.c - - - - - lib_adc.c - 1 - Libraries\VangoV85xx_standard_peripheral\Source\lib_adc.c - - lib_lcd.c @@ -892,16 +892,9 @@ - system_target.c + lib_ana.c 1 - Libraries\CMSIS\Vango\V85xx\Source\system_target.c - - - - - lib_misc.c - 1 - Libraries\VangoV85xx_standard_peripheral\Source\lib_misc.c + Libraries\VangoV85xx_standard_peripheral\Source\lib_ana.c diff --git a/bsp/acm32f0x0-nucleo/.config b/bsp/acm32f0x0-nucleo/.config index 491853cabc..5a20703666 100644 --- a/bsp/acm32f0x0-nucleo/.config +++ b/bsp/acm32f0x0-nucleo/.config @@ -7,7 +7,6 @@ # RT-Thread Kernel # CONFIG_RT_NAME_MAX=8 -# CONFIG_RT_USING_BIG_ENDIAN is not set # CONFIG_RT_USING_ARCH_DATA_TYPE is not set # CONFIG_RT_USING_SMP is not set CONFIG_RT_ALIGN_SIZE=4 @@ -170,7 +169,6 @@ CONFIG_RT_USING_WDT=y # # POSIX layer and C standard library # -# CONFIG_RT_USING_MODULE is not set CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8 # @@ -179,7 +177,9 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8 # CONFIG_RT_USING_POSIX_FS is not set # CONFIG_RT_USING_POSIX_DELAY is not set # CONFIG_RT_USING_POSIX_CLOCK is not set +# CONFIG_RT_USING_POSIX_TIMER is not set # CONFIG_RT_USING_PTHREADS is not set +# CONFIG_RT_USING_MODULE is not set # # Interprocess Communication (IPC) @@ -389,6 +389,7 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8 # CONFIG_PKG_USING_MCURSES is not set # CONFIG_PKG_USING_TERMBOX is not set # CONFIG_PKG_USING_VT100 is not set +# CONFIG_PKG_USING_QRCODE is not set # # tools packages @@ -399,7 +400,6 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8 # CONFIG_PKG_USING_SYSTEMVIEW is not set # CONFIG_PKG_USING_SEGGER_RTT is not set # CONFIG_PKG_USING_RDB is not set -# CONFIG_PKG_USING_QRCODE is not set # CONFIG_PKG_USING_ULOG_EASYFLASH is not set # CONFIG_PKG_USING_ULOG_FILE is not set # CONFIG_PKG_USING_LOGMGR is not set @@ -450,6 +450,7 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8 # CONFIG_PKG_USING_POSIX_GETLINE is not set # CONFIG_PKG_USING_POSIX_WCWIDTH is not set # CONFIG_PKG_USING_POSIX_ITOA is not set +# CONFIG_PKG_USING_POSIX_STRINGS is not set # # acceleration: Assembly language or algorithmic acceleration packages @@ -561,6 +562,7 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8 # CONFIG_PKG_USING_SSD1306 is not set # CONFIG_PKG_USING_QKEY is not set # CONFIG_PKG_USING_RS485 is not set +# CONFIG_PKG_USING_RS232 is not set # CONFIG_PKG_USING_NES is not set # CONFIG_PKG_USING_VIRTUAL_SENSOR is not set # CONFIG_PKG_USING_VDEVICE is not set @@ -648,6 +650,8 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8 # CONFIG_PKG_USING_LWGPS is not set # CONFIG_PKG_USING_STATE_MACHINE is not set # CONFIG_PKG_USING_DESIGN_PATTERN is not set +# CONFIG_PKG_USING_CONTROLLER is not set +# CONFIG_PKG_USING_PHASE_LOCKED_LOOP is not set CONFIG_SOC_SERIES_ACM32F0=y # diff --git a/bsp/acm32f0x0-nucleo/project.ewp b/bsp/acm32f0x0-nucleo/project.ewp index 9678e58c61..437ad9e558 100644 --- a/bsp/acm32f0x0-nucleo/project.ewp +++ b/bsp/acm32f0x0-nucleo/project.ewp @@ -353,15 +353,16 @@ $PROJ_DIR$\libraries\HAL_Driver\Inc $PROJ_DIR$\..\..\include + $PROJ_DIR$\..\..\components\libc\compilers\common\extension $PROJ_DIR$\..\..\components\libc\compilers\common $PROJ_DIR$\..\..\components\libc\posix\ipc $PROJ_DIR$\drivers - $PROJ_DIR$\..\..\components\libc\compilers\common\nogcc $PROJ_DIR$\..\..\examples\utest\testcases\kernel $PROJ_DIR$\. $PROJ_DIR$\libraries\Device $PROJ_DIR$\applications $PROJ_DIR$\..\..\components\libc\posix\io\poll + $PROJ_DIR$\..\..\components\libc\posix\io\stdio $PROJ_DIR$\libraries\CMSIS $PROJ_DIR$\..\..\libcpu\arm\cortex-m0 $PROJ_DIR$\..\..\components\drivers\include @@ -1406,15 +1407,16 @@ $PROJ_DIR$\libraries\HAL_Driver\Inc $PROJ_DIR$\..\..\include + $PROJ_DIR$\..\..\components\libc\compilers\common\extension $PROJ_DIR$\..\..\components\libc\compilers\common $PROJ_DIR$\..\..\components\libc\posix\ipc $PROJ_DIR$\drivers - $PROJ_DIR$\..\..\components\libc\compilers\common\nogcc $PROJ_DIR$\..\..\examples\utest\testcases\kernel $PROJ_DIR$\. $PROJ_DIR$\libraries\Device $PROJ_DIR$\applications $PROJ_DIR$\..\..\components\libc\posix\io\poll + $PROJ_DIR$\..\..\components\libc\posix\io\stdio $PROJ_DIR$\libraries\CMSIS $PROJ_DIR$\..\..\libcpu\arm\cortex-m0 $PROJ_DIR$\..\..\components\drivers\include @@ -2153,33 +2155,33 @@ $PROJ_DIR$\..\..\components\libc\compilers\common\time.c + + $PROJ_DIR$\..\..\components\libc\compilers\dlib\syscall_write.c + $PROJ_DIR$\..\..\components\libc\compilers\dlib\syscalls.c - - $PROJ_DIR$\..\..\components\libc\compilers\dlib\syscall_read.c - - - $PROJ_DIR$\..\..\components\libc\compilers\dlib\syscall_remove.c - - - $PROJ_DIR$\..\..\components\libc\compilers\dlib\syscall_open.c - $PROJ_DIR$\..\..\components\libc\compilers\dlib\environ.c - $PROJ_DIR$\..\..\components\libc\compilers\dlib\syscall_mem.c - - - $PROJ_DIR$\..\..\components\libc\compilers\dlib\syscall_write.c + $PROJ_DIR$\..\..\components\libc\compilers\dlib\syscall_read.c $PROJ_DIR$\..\..\components\libc\compilers\dlib\syscall_close.c + + $PROJ_DIR$\..\..\components\libc\compilers\dlib\syscall_mem.c + + + $PROJ_DIR$\..\..\components\libc\compilers\dlib\syscall_open.c + $PROJ_DIR$\..\..\components\libc\compilers\dlib\syscall_lseek.c + + $PROJ_DIR$\..\..\components\libc\compilers\dlib\syscall_remove.c + CPU @@ -2193,10 +2195,10 @@ $PROJ_DIR$\..\..\libcpu\arm\common\showmem.c - $PROJ_DIR$\..\..\libcpu\arm\cortex-m0\cpuport.c + $PROJ_DIR$\..\..\libcpu\arm\cortex-m0\context_iar.S - $PROJ_DIR$\..\..\libcpu\arm\cortex-m0\context_iar.S + $PROJ_DIR$\..\..\libcpu\arm\cortex-m0\cpuport.c @@ -2204,6 +2206,27 @@ $PROJ_DIR$\..\..\components\drivers\hwtimer\hwtimer.c + + $PROJ_DIR$\..\..\components\drivers\ipc\completion.c + + + $PROJ_DIR$\..\..\components\drivers\ipc\waitqueue.c + + + $PROJ_DIR$\..\..\components\drivers\ipc\ringblk_buf.c + + + $PROJ_DIR$\..\..\components\drivers\ipc\ringbuffer.c + + + $PROJ_DIR$\..\..\components\drivers\ipc\dataqueue.c + + + $PROJ_DIR$\..\..\components\drivers\ipc\workqueue.c + + + $PROJ_DIR$\..\..\components\drivers\ipc\pipe.c + $PROJ_DIR$\..\..\components\drivers\misc\adc.c @@ -2213,44 +2236,23 @@ $PROJ_DIR$\..\..\components\drivers\serial\serial.c - - $PROJ_DIR$\..\..\components\drivers\src\workqueue.c - - - $PROJ_DIR$\..\..\components\drivers\src\waitqueue.c - - - $PROJ_DIR$\..\..\components\drivers\src\dataqueue.c - - - $PROJ_DIR$\..\..\components\drivers\src\ringblk_buf.c - - - $PROJ_DIR$\..\..\components\drivers\src\ringbuffer.c - - - $PROJ_DIR$\..\..\components\drivers\src\pipe.c - - - $PROJ_DIR$\..\..\components\drivers\src\completion.c - $PROJ_DIR$\..\..\components\drivers\watchdog\watchdog.c Drivers - - $PROJ_DIR$\drivers\board.c - $PROJ_DIR$\drivers\drv_adc.c - $PROJ_DIR$\drivers\drv_uart.c + $PROJ_DIR$\drivers\drv_hwtimer.c - $PROJ_DIR$\drivers\drv_hwtimer.c + $PROJ_DIR$\drivers\board.c + + + $PROJ_DIR$\drivers\drv_uart.c $PROJ_DIR$\drivers\drv_gpio.c @@ -2274,44 +2276,44 @@ Kernel - $PROJ_DIR$\..\..\src\mem.c - - - $PROJ_DIR$\..\..\src\kservice.c - - - $PROJ_DIR$\..\..\src\timer.c - - - $PROJ_DIR$\..\..\src\device.c - - - $PROJ_DIR$\..\..\src\object.c - - - $PROJ_DIR$\..\..\src\components.c + $PROJ_DIR$\..\..\src\thread.c $PROJ_DIR$\..\..\src\clock.c - - $PROJ_DIR$\..\..\src\thread.c - $PROJ_DIR$\..\..\src\idle.c - - $PROJ_DIR$\..\..\src\mempool.c - $PROJ_DIR$\..\..\src\ipc.c $PROJ_DIR$\..\..\src\scheduler.c + + $PROJ_DIR$\..\..\src\timer.c + + + $PROJ_DIR$\..\..\src\mem.c + + + $PROJ_DIR$\..\..\src\kservice.c + + + $PROJ_DIR$\..\..\src\components.c + $PROJ_DIR$\..\..\src\irq.c + + $PROJ_DIR$\..\..\src\mempool.c + + + $PROJ_DIR$\..\..\src\device.c + + + $PROJ_DIR$\..\..\src\object.c + POSIX diff --git a/bsp/acm32f0x0-nucleo/project.uvprojx b/bsp/acm32f0x0-nucleo/project.uvprojx index 309adbf5e0..a4eb4ae8bd 100644 --- a/bsp/acm32f0x0-nucleo/project.uvprojx +++ b/bsp/acm32f0x0-nucleo/project.uvprojx @@ -336,7 +336,7 @@ __RTTHREAD__, RT_USING_ARM_LIBC, __CLK_TCK=RT_TICK_PER_SECOND - libraries\HAL_Driver\Inc;libraries\Device;libraries\CMSIS;applications;.;..\..\components\libc\compilers\common;..\..\components\libc\compilers\common\nogcc;..\..\libcpu\arm\common;..\..\libcpu\arm\cortex-m0;..\..\components\drivers\include;..\..\components\drivers\include;..\..\components\drivers\include;..\..\components\drivers\include;..\..\components\drivers\include;drivers;..\..\components\finsh;.;..\..\include;..\..\components\libc\posix\io\poll;..\..\components\libc\posix\ipc;..\..\examples\utest\testcases\kernel + libraries\HAL_Driver\Inc;libraries\Device;libraries\CMSIS;applications;.;..\..\components\libc\compilers\common;..\..\components\libc\compilers\common\extension;..\..\libcpu\arm\common;..\..\libcpu\arm\cortex-m0;..\..\components\drivers\include;..\..\components\drivers\include;..\..\components\drivers\include;..\..\components\drivers\include;..\..\components\drivers\include;drivers;..\..\components\finsh;.;..\..\include;..\..\components\libc\posix\io\poll;..\..\components\libc\posix\io\stdio;..\..\components\libc\posix\ipc;..\..\examples\utest\testcases\kernel @@ -464,9 +464,9 @@ Compiler - libc_syms.c + syscall_mem.c 1 - ..\..\components\libc\compilers\armlibc\libc_syms.c + ..\..\components\libc\compilers\armlibc\syscall_mem.c @@ -476,13 +476,6 @@ ..\..\components\libc\compilers\armlibc\syscalls.c - - - syscall_mem.c - 1 - ..\..\components\libc\compilers\armlibc\syscall_mem.c - - time.c @@ -502,9 +495,9 @@ CPU - showmem.c + div0.c 1 - ..\..\libcpu\arm\common\showmem.c + ..\..\libcpu\arm\common\div0.c @@ -516,16 +509,9 @@ - div0.c + showmem.c 1 - ..\..\libcpu\arm\common\div0.c - - - - - context_rvds.S - 2 - ..\..\libcpu\arm\cortex-m0\context_rvds.S + ..\..\libcpu\arm\common\showmem.c @@ -535,6 +521,13 @@ ..\..\libcpu\arm\cortex-m0\cpuport.c + + + context_rvds.S + 2 + ..\..\libcpu\arm\cortex-m0\context_rvds.S + + DeviceDrivers @@ -545,6 +538,55 @@ ..\..\components\drivers\hwtimer\hwtimer.c + + + completion.c + 1 + ..\..\components\drivers\ipc\completion.c + + + + + workqueue.c + 1 + ..\..\components\drivers\ipc\workqueue.c + + + + + waitqueue.c + 1 + ..\..\components\drivers\ipc\waitqueue.c + + + + + ringbuffer.c + 1 + ..\..\components\drivers\ipc\ringbuffer.c + + + + + pipe.c + 1 + ..\..\components\drivers\ipc\pipe.c + + + + + ringblk_buf.c + 1 + ..\..\components\drivers\ipc\ringblk_buf.c + + + + + dataqueue.c + 1 + ..\..\components\drivers\ipc\dataqueue.c + + adc.c @@ -566,55 +608,6 @@ ..\..\components\drivers\serial\serial.c - - - ringblk_buf.c - 1 - ..\..\components\drivers\src\ringblk_buf.c - - - - - waitqueue.c - 1 - ..\..\components\drivers\src\waitqueue.c - - - - - completion.c - 1 - ..\..\components\drivers\src\completion.c - - - - - workqueue.c - 1 - ..\..\components\drivers\src\workqueue.c - - - - - dataqueue.c - 1 - ..\..\components\drivers\src\dataqueue.c - - - - - ringbuffer.c - 1 - ..\..\components\drivers\src\ringbuffer.c - - - - - pipe.c - 1 - ..\..\components\drivers\src\pipe.c - - watchdog.c @@ -625,27 +618,6 @@ Drivers - - - drv_hwtimer.c - 1 - drivers\drv_hwtimer.c - - - - - drv_wdt.c - 1 - drivers\drv_wdt.c - - - - - board.c - 1 - drivers\board.c - - drv_adc.c @@ -660,6 +632,27 @@ drivers\drv_gpio.c + + + drv_wdt.c + 1 + drivers\drv_wdt.c + + + + + drv_hwtimer.c + 1 + drivers\drv_hwtimer.c + + + + + board.c + 1 + drivers\board.c + + drv_uart.c @@ -694,27 +687,6 @@ Kernel - - - mempool.c - 1 - ..\..\src\mempool.c - - - - - mem.c - 1 - ..\..\src\mem.c - - - - - ipc.c - 1 - ..\..\src\ipc.c - - irq.c @@ -731,23 +703,9 @@ - components.c + mempool.c 1 - ..\..\src\components.c - - - - - kservice.c - 1 - ..\..\src\kservice.c - - - - - idle.c - 1 - ..\..\src\idle.c + ..\..\src\mempool.c @@ -759,9 +717,30 @@ - clock.c + ipc.c 1 - ..\..\src\clock.c + ..\..\src\ipc.c + + + + + kservice.c + 1 + ..\..\src\kservice.c + + + + + thread.c + 1 + ..\..\src\thread.c + + + + + components.c + 1 + ..\..\src\components.c @@ -773,16 +752,30 @@ - object.c + mem.c 1 - ..\..\src\object.c + ..\..\src\mem.c - thread.c + idle.c 1 - ..\..\src\thread.c + ..\..\src\idle.c + + + + + clock.c + 1 + ..\..\src\clock.c + + + + + object.c + 1 + ..\..\src\object.c diff --git a/bsp/acm32f4xx-nucleo/.config b/bsp/acm32f4xx-nucleo/.config index c963fda082..ce0561d807 100644 --- a/bsp/acm32f4xx-nucleo/.config +++ b/bsp/acm32f4xx-nucleo/.config @@ -7,7 +7,6 @@ # RT-Thread Kernel # CONFIG_RT_NAME_MAX=8 -# CONFIG_RT_USING_BIG_ENDIAN is not set # CONFIG_RT_USING_ARCH_DATA_TYPE is not set # CONFIG_RT_USING_SMP is not set CONFIG_RT_ALIGN_SIZE=4 @@ -167,7 +166,6 @@ CONFIG_RT_USING_PIN=y # # POSIX layer and C standard library # -# CONFIG_RT_USING_MODULE is not set CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8 # @@ -176,7 +174,9 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8 # CONFIG_RT_USING_POSIX_FS is not set # CONFIG_RT_USING_POSIX_DELAY is not set # CONFIG_RT_USING_POSIX_CLOCK is not set +# CONFIG_RT_USING_POSIX_TIMER is not set # CONFIG_RT_USING_PTHREADS is not set +# CONFIG_RT_USING_MODULE is not set # # Interprocess Communication (IPC) @@ -385,6 +385,7 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8 # CONFIG_PKG_USING_MCURSES is not set # CONFIG_PKG_USING_TERMBOX is not set # CONFIG_PKG_USING_VT100 is not set +# CONFIG_PKG_USING_QRCODE is not set # # tools packages @@ -395,7 +396,6 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8 # CONFIG_PKG_USING_SYSTEMVIEW is not set # CONFIG_PKG_USING_SEGGER_RTT is not set # CONFIG_PKG_USING_RDB is not set -# CONFIG_PKG_USING_QRCODE is not set # CONFIG_PKG_USING_ULOG_EASYFLASH is not set # CONFIG_PKG_USING_ULOG_FILE is not set # CONFIG_PKG_USING_LOGMGR is not set @@ -446,6 +446,7 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8 # CONFIG_PKG_USING_POSIX_GETLINE is not set # CONFIG_PKG_USING_POSIX_WCWIDTH is not set # CONFIG_PKG_USING_POSIX_ITOA is not set +# CONFIG_PKG_USING_POSIX_STRINGS is not set # # acceleration: Assembly language or algorithmic acceleration packages @@ -557,6 +558,7 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8 # CONFIG_PKG_USING_SSD1306 is not set # CONFIG_PKG_USING_QKEY is not set # CONFIG_PKG_USING_RS485 is not set +# CONFIG_PKG_USING_RS232 is not set # CONFIG_PKG_USING_NES is not set # CONFIG_PKG_USING_VIRTUAL_SENSOR is not set # CONFIG_PKG_USING_VDEVICE is not set @@ -644,6 +646,8 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8 # CONFIG_PKG_USING_LWGPS is not set # CONFIG_PKG_USING_STATE_MACHINE is not set # CONFIG_PKG_USING_DESIGN_PATTERN is not set +# CONFIG_PKG_USING_CONTROLLER is not set +# CONFIG_PKG_USING_PHASE_LOCKED_LOOP is not set # # Hardware Drivers Config diff --git a/bsp/acm32f4xx-nucleo/project.uvprojx b/bsp/acm32f4xx-nucleo/project.uvprojx index 57aa3046a9..f31be304e2 100644 --- a/bsp/acm32f4xx-nucleo/project.uvprojx +++ b/bsp/acm32f4xx-nucleo/project.uvprojx @@ -336,7 +336,7 @@ __RTTHREAD__, RT_USING_ARM_LIBC, __CLK_TCK=RT_TICK_PER_SECOND - libraries\HAL_Driver\Inc;libraries\Device;libraries\CMSIS;applications;.;..\..\components\libc\compilers\common;..\..\components\libc\compilers\common\nogcc;..\..\libcpu\arm\common;..\..\libcpu\arm\cortex-m33;..\..\components\drivers\include;..\..\components\drivers\include;..\..\components\drivers\include;drivers;..\..\components\finsh;.;..\..\include;..\..\components\libc\posix\io\poll;..\..\components\libc\posix\ipc;..\..\examples\utest\testcases\kernel + libraries\HAL_Driver\Inc;libraries\Device;libraries\CMSIS;applications;.;..\..\components\libc\compilers\common;..\..\components\libc\compilers\common\extension;..\..\libcpu\arm\common;..\..\libcpu\arm\cortex-m33;..\..\components\drivers\include;..\..\components\drivers\include;..\..\components\drivers\include;drivers;..\..\components\finsh;.;..\..\include;..\..\components\libc\posix\io\poll;..\..\components\libc\posix\io\stdio;..\..\components\libc\posix\ipc;..\..\examples\utest\testcases\kernel @@ -441,13 +441,6 @@ Compiler - - - libc_syms.c - 1 - ..\..\components\libc\compilers\armlibc\libc_syms.c - - syscall_mem.c @@ -486,13 +479,6 @@ ..\..\libcpu\arm\common\showmem.c - - - div0.c - 1 - ..\..\libcpu\arm\common\div0.c - - backtrace.c @@ -502,16 +488,16 @@ - trustzone.c + div0.c 1 - ..\..\libcpu\arm\cortex-m33\trustzone.c + ..\..\libcpu\arm\common\div0.c - cpuport.c + trustzone.c 1 - ..\..\libcpu\arm\cortex-m33\cpuport.c + ..\..\libcpu\arm\cortex-m33\trustzone.c @@ -528,9 +514,65 @@ ..\..\libcpu\arm\cortex-m33\context_rvds.S + + + cpuport.c + 1 + ..\..\libcpu\arm\cortex-m33\cpuport.c + + DeviceDrivers + + + ringbuffer.c + 1 + ..\..\components\drivers\ipc\ringbuffer.c + + + + + dataqueue.c + 1 + ..\..\components\drivers\ipc\dataqueue.c + + + + + pipe.c + 1 + ..\..\components\drivers\ipc\pipe.c + + + + + ringblk_buf.c + 1 + ..\..\components\drivers\ipc\ringblk_buf.c + + + + + workqueue.c + 1 + ..\..\components\drivers\ipc\workqueue.c + + + + + completion.c + 1 + ..\..\components\drivers\ipc\completion.c + + + + + waitqueue.c + 1 + ..\..\components\drivers\ipc\waitqueue.c + + pin.c @@ -545,70 +587,21 @@ ..\..\components\drivers\serial\serial.c - - - workqueue.c - 1 - ..\..\components\drivers\src\workqueue.c - - - - - completion.c - 1 - ..\..\components\drivers\src\completion.c - - - - - ringblk_buf.c - 1 - ..\..\components\drivers\src\ringblk_buf.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 - - - - - dataqueue.c - 1 - ..\..\components\drivers\src\dataqueue.c - - Drivers - drv_uart.c + drv_gpio.c 1 - drivers\drv_uart.c + drivers\drv_gpio.c - drv_gpio.c + drv_uart.c 1 - drivers\drv_gpio.c + drivers\drv_uart.c @@ -647,23 +640,9 @@ Kernel - clock.c + scheduler.c 1 - ..\..\src\clock.c - - - - - thread.c - 1 - ..\..\src\thread.c - - - - - timer.c - 1 - ..\..\src\timer.c + ..\..\src\scheduler.c @@ -675,30 +654,16 @@ - object.c + irq.c 1 - ..\..\src\object.c + ..\..\src\irq.c - mem.c + thread.c 1 - ..\..\src\mem.c - - - - - device.c - 1 - ..\..\src\device.c - - - - - mempool.c - 1 - ..\..\src\mempool.c + ..\..\src\thread.c @@ -710,23 +675,30 @@ - components.c + device.c 1 - ..\..\src\components.c + ..\..\src\device.c - irq.c + mem.c 1 - ..\..\src\irq.c + ..\..\src\mem.c - scheduler.c + object.c 1 - ..\..\src\scheduler.c + ..\..\src\object.c + + + + + timer.c + 1 + ..\..\src\timer.c @@ -736,6 +708,27 @@ ..\..\src\kservice.c + + + mempool.c + 1 + ..\..\src\mempool.c + + + + + components.c + 1 + ..\..\src\components.c + + + + + clock.c + 1 + ..\..\src\clock.c + + diff --git a/bsp/allwinner_tina/.config b/bsp/allwinner_tina/.config index 91c1e655ea..e4c7f97b25 100644 --- a/bsp/allwinner_tina/.config +++ b/bsp/allwinner_tina/.config @@ -7,7 +7,6 @@ # RT-Thread Kernel # CONFIG_RT_NAME_MAX=8 -# CONFIG_RT_USING_BIG_ENDIAN is not set # CONFIG_RT_USING_ARCH_DATA_TYPE is not set # CONFIG_RT_USING_SMP is not set CONFIG_RT_ALIGN_SIZE=4 @@ -217,7 +216,6 @@ CONFIG_RT_SFUD_SPI_MAX_HZ=50000000 # # POSIX layer and C standard library # -# CONFIG_RT_USING_MODULE is not set CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8 # @@ -226,7 +224,9 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8 # CONFIG_RT_USING_POSIX_FS is not set # CONFIG_RT_USING_POSIX_DELAY is not set # CONFIG_RT_USING_POSIX_CLOCK is not set +# CONFIG_RT_USING_POSIX_TIMER is not set # CONFIG_RT_USING_PTHREADS is not set +# CONFIG_RT_USING_MODULE is not set # # Interprocess Communication (IPC) @@ -436,6 +436,7 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8 # CONFIG_PKG_USING_MCURSES is not set # CONFIG_PKG_USING_TERMBOX is not set # CONFIG_PKG_USING_VT100 is not set +# CONFIG_PKG_USING_QRCODE is not set # # tools packages @@ -446,7 +447,6 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8 # CONFIG_PKG_USING_SYSTEMVIEW is not set # CONFIG_PKG_USING_SEGGER_RTT is not set # CONFIG_PKG_USING_RDB is not set -# CONFIG_PKG_USING_QRCODE is not set # CONFIG_PKG_USING_ULOG_EASYFLASH is not set # CONFIG_PKG_USING_ULOG_FILE is not set # CONFIG_PKG_USING_LOGMGR is not set @@ -497,6 +497,7 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8 # CONFIG_PKG_USING_POSIX_GETLINE is not set # CONFIG_PKG_USING_POSIX_WCWIDTH is not set # CONFIG_PKG_USING_POSIX_ITOA is not set +# CONFIG_PKG_USING_POSIX_STRINGS is not set # # acceleration: Assembly language or algorithmic acceleration packages @@ -609,6 +610,7 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8 # CONFIG_PKG_USING_SSD1306 is not set # CONFIG_PKG_USING_QKEY is not set # CONFIG_PKG_USING_RS485 is not set +# CONFIG_PKG_USING_RS232 is not set # CONFIG_PKG_USING_NES is not set # CONFIG_PKG_USING_VIRTUAL_SENSOR is not set # CONFIG_PKG_USING_VDEVICE is not set @@ -696,6 +698,8 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8 # CONFIG_PKG_USING_LWGPS is not set # CONFIG_PKG_USING_STATE_MACHINE is not set # CONFIG_PKG_USING_DESIGN_PATTERN is not set +# CONFIG_PKG_USING_CONTROLLER is not set +# CONFIG_PKG_USING_PHASE_LOCKED_LOOP is not set CONFIG_SOC_TINA=y CONFIG_TINA_USING_UART0=y # CONFIG_TINA_USING_UART1 is not set diff --git a/bsp/amebaz/.config b/bsp/amebaz/.config index da33f27b18..4b36ab8a38 100644 --- a/bsp/amebaz/.config +++ b/bsp/amebaz/.config @@ -7,7 +7,6 @@ # RT-Thread Kernel # CONFIG_RT_NAME_MAX=8 -# CONFIG_RT_USING_BIG_ENDIAN is not set # CONFIG_RT_USING_ARCH_DATA_TYPE is not set # CONFIG_RT_USING_SMP is not set CONFIG_RT_ALIGN_SIZE=4 @@ -199,7 +198,6 @@ CONFIG_RT_WLAN_CMD_DEBUG=y # # POSIX layer and C standard library # -# CONFIG_RT_USING_MODULE is not set CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8 # @@ -208,7 +206,9 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8 # CONFIG_RT_USING_POSIX_FS is not set # CONFIG_RT_USING_POSIX_DELAY is not set # CONFIG_RT_USING_POSIX_CLOCK is not set +# CONFIG_RT_USING_POSIX_TIMER is not set # CONFIG_RT_USING_PTHREADS is not set +# CONFIG_RT_USING_MODULE is not set # # Interprocess Communication (IPC) @@ -241,8 +241,7 @@ CONFIG_NETDEV_USING_PING=y # CONFIG_RT_USING_LWIP=y # CONFIG_RT_USING_LWIP141 is not set -CONFIG_RT_USING_LWIP202=y -# CONFIG_RT_USING_LWIP203 is not set +CONFIG_RT_USING_LWIP203=y # CONFIG_RT_USING_LWIP212 is not set # CONFIG_RT_USING_LWIP_IPV6 is not set CONFIG_RT_LWIP_MEM_ALIGNMENT=4 @@ -476,6 +475,7 @@ CONFIG_DHCPD_USING_ROUTER=y # CONFIG_PKG_USING_MCURSES is not set # CONFIG_PKG_USING_TERMBOX is not set # CONFIG_PKG_USING_VT100 is not set +# CONFIG_PKG_USING_QRCODE is not set # # tools packages @@ -486,7 +486,6 @@ CONFIG_DHCPD_USING_ROUTER=y # CONFIG_PKG_USING_SYSTEMVIEW is not set # CONFIG_PKG_USING_SEGGER_RTT is not set # CONFIG_PKG_USING_RDB is not set -# CONFIG_PKG_USING_QRCODE is not set # CONFIG_PKG_USING_ULOG_EASYFLASH is not set # CONFIG_PKG_USING_ULOG_FILE is not set # CONFIG_PKG_USING_LOGMGR is not set @@ -537,6 +536,7 @@ CONFIG_DHCPD_USING_ROUTER=y # CONFIG_PKG_USING_POSIX_GETLINE is not set # CONFIG_PKG_USING_POSIX_WCWIDTH is not set # CONFIG_PKG_USING_POSIX_ITOA is not set +# CONFIG_PKG_USING_POSIX_STRINGS is not set # # acceleration: Assembly language or algorithmic acceleration packages @@ -652,6 +652,7 @@ CONFIG_PKG_REALTEK_AMEBA_VER="latest" # CONFIG_PKG_USING_SSD1306 is not set # CONFIG_PKG_USING_QKEY is not set # CONFIG_PKG_USING_RS485 is not set +# CONFIG_PKG_USING_RS232 is not set # CONFIG_PKG_USING_NES is not set # CONFIG_PKG_USING_VIRTUAL_SENSOR is not set # CONFIG_PKG_USING_VDEVICE is not set @@ -739,6 +740,8 @@ CONFIG_PKG_REALTEK_AMEBA_VER="latest" # CONFIG_PKG_USING_LWGPS is not set # CONFIG_PKG_USING_STATE_MACHINE is not set # CONFIG_PKG_USING_DESIGN_PATTERN is not set +# CONFIG_PKG_USING_CONTROLLER is not set +# CONFIG_PKG_USING_PHASE_LOCKED_LOOP is not set # # Env config diff --git a/bsp/amebaz/project.ewp b/bsp/amebaz/project.ewp index d86a2c90cd..f7d605cbd6 100644 --- a/bsp/amebaz/project.ewp +++ b/bsp/amebaz/project.ewp @@ -307,27 +307,28 @@ $PROJ_DIR$\..\..\components\libc\compilers\common $PROJ_DIR$\..\..\include - $PROJ_DIR$\..\..\components\net\lwip-2.0.2\src\include\netif + $PROJ_DIR$\..\..\components\net\lwip-2.0.3\src\include\netif + $PROJ_DIR$\..\..\components\net\lwip-2.0.3\src\arch\include $PROJ_DIR$\..\..\libcpu\arm\common $PROJ_DIR$\..\..\components\drivers\include - $PROJ_DIR$\..\..\components\net\lwip-2.0.2\src $PROJ_DIR$\..\..\components\libc\posix\ipc $PROJ_DIR$\drivers - $PROJ_DIR$\..\..\components\net\lwip-2.0.2\src\include\ipv4 $PROJ_DIR$\. $PROJ_DIR$\..\..\libcpu\arm\cortex-m4 - $PROJ_DIR$\..\..\components\net\lwip-2.0.2\src\include $PROJ_DIR$\applications $PROJ_DIR$\drivers\wlan + $PROJ_DIR$\..\..\components\net\lwip-2.0.3\src\include\ipv4 $PROJ_DIR$\..\..\components\finsh - $PROJ_DIR$\..\..\components\drivers\wlan - $PROJ_DIR$\..\..\components\libc\compilers\common\nogcc + $PROJ_DIR$\..\..\components\net\lwip_dhcpd + $PROJ_DIR$\..\..\components\libc\compilers\common\extension $PROJ_DIR$\..\..\components\libc\posix\io\poll $PROJ_DIR$\..\..\examples\utest\testcases\kernel + $PROJ_DIR$\..\..\components\libc\posix\io\stdio $PROJ_DIR$\libraries\smartconfig\inc - $PROJ_DIR$\..\..\components\net\lwip_dhcpd - $PROJ_DIR$\..\..\components\net\lwip-2.0.2\src\include\posix - $PROJ_DIR$\..\..\components\net\lwip-2.0.2\src\arch\include + $PROJ_DIR$\..\..\components\net\lwip-2.0.3\src + $PROJ_DIR$\..\..\components\drivers\wlan + $PROJ_DIR$\..\..\components\net\lwip-2.0.3\src\include + $PROJ_DIR$\..\..\components\net\lwip-2.0.3\src\include\posix @@ -2174,51 +2176,51 @@ Compiler - - $PROJ_DIR$\..\..\..\components\libc\compilers\common\stdlib.c - $PROJ_DIR$\..\..\..\components\libc\compilers\common\time.c - $PROJ_DIR$\..\..\..\components\libc\compilers\dlib\syscall_mem.c + $PROJ_DIR$\..\..\..\components\libc\compilers\common\stdlib.c $PROJ_DIR$\..\..\..\components\libc\compilers\dlib\syscall_read.c + + $PROJ_DIR$\..\..\..\components\libc\compilers\dlib\syscall_write.c + $PROJ_DIR$\..\..\..\components\libc\compilers\dlib\syscall_close.c $PROJ_DIR$\..\..\..\components\libc\compilers\dlib\syscall_remove.c - - $PROJ_DIR$\..\..\..\components\libc\compilers\dlib\environ.c - - - $PROJ_DIR$\..\..\..\components\libc\compilers\dlib\syscall_write.c - $PROJ_DIR$\..\..\..\components\libc\compilers\dlib\syscalls.c + + $PROJ_DIR$\..\..\..\components\libc\compilers\dlib\environ.c + $PROJ_DIR$\..\..\..\components\libc\compilers\dlib\syscall_lseek.c + + $PROJ_DIR$\..\..\..\components\libc\compilers\dlib\syscall_mem.c + $PROJ_DIR$\..\..\..\components\libc\compilers\dlib\syscall_open.c CPU - - $PROJ_DIR$\..\..\..\libcpu\arm\common\backtrace.c - $PROJ_DIR$\..\..\..\libcpu\arm\common\div0.c $PROJ_DIR$\..\..\..\libcpu\arm\common\showmem.c + + $PROJ_DIR$\..\..\..\libcpu\arm\common\backtrace.c + $PROJ_DIR$\..\..\..\libcpu\arm\cortex-m4\cpuport.c @@ -2228,48 +2230,48 @@ DeviceDrivers + + $PROJ_DIR$\..\..\..\components\drivers\ipc\ringblk_buf.c + + + $PROJ_DIR$\..\..\..\components\drivers\ipc\waitqueue.c + + + $PROJ_DIR$\..\..\..\components\drivers\ipc\completion.c + + + $PROJ_DIR$\..\..\..\components\drivers\ipc\workqueue.c + + + $PROJ_DIR$\..\..\..\components\drivers\ipc\ringbuffer.c + + + $PROJ_DIR$\..\..\..\components\drivers\ipc\pipe.c + + + $PROJ_DIR$\..\..\..\components\drivers\ipc\dataqueue.c + $PROJ_DIR$\..\..\..\components\drivers\misc\pin.c $PROJ_DIR$\..\..\..\components\drivers\serial\serial.c - - $PROJ_DIR$\..\..\..\components\drivers\src\ringbuffer.c - - - $PROJ_DIR$\..\..\..\components\drivers\src\pipe.c - - - $PROJ_DIR$\..\..\..\components\drivers\src\workqueue.c - - - $PROJ_DIR$\..\..\..\components\drivers\src\completion.c - - - $PROJ_DIR$\..\..\..\components\drivers\src\waitqueue.c - - - $PROJ_DIR$\..\..\..\components\drivers\src\dataqueue.c - - - $PROJ_DIR$\..\..\..\components\drivers\src\ringblk_buf.c - Drivers $PROJ_DIR$\board\CubeMX_Config\Common\System\system_stm32mp1xx.c - - $PROJ_DIR$\..\libraries\STM32MPxx_HAL\CMSIS\Device\ST\STM32MP1xx\Source\Templates\iar\startup_stm32mp15xx.s - $PROJ_DIR$\board\CubeMX_Config\CM4\Src\stm32mp1xx_hal_msp.c $PROJ_DIR$\board\board.c + + $PROJ_DIR$\..\libraries\STM32MPxx_HAL\CMSIS\Device\ST\STM32MP1xx\Source\Templates\iar\startup_stm32mp15xx.s + $PROJ_DIR$\..\libraries\HAL_Drivers\drv_gpio.c @@ -2294,45 +2296,45 @@ Kernel + + $PROJ_DIR$\..\..\..\src\scheduler.c + $PROJ_DIR$\..\..\..\src\idle.c - - $PROJ_DIR$\..\..\..\src\timer.c - - - $PROJ_DIR$\..\..\..\src\device.c - - - $PROJ_DIR$\..\..\..\src\ipc.c - - - $PROJ_DIR$\..\..\..\src\object.c - - - $PROJ_DIR$\..\..\..\src\thread.c - - - $PROJ_DIR$\..\..\..\src\kservice.c - - - $PROJ_DIR$\..\..\..\src\clock.c - $PROJ_DIR$\..\..\..\src\memheap.c - $PROJ_DIR$\..\..\..\src\components.c + $PROJ_DIR$\..\..\..\src\kservice.c + + + $PROJ_DIR$\..\..\..\src\device.c $PROJ_DIR$\..\..\..\src\irq.c - $PROJ_DIR$\..\..\..\src\scheduler.c + $PROJ_DIR$\..\..\..\src\clock.c + + + $PROJ_DIR$\..\..\..\src\timer.c + + + $PROJ_DIR$\..\..\..\src\ipc.c + + + $PROJ_DIR$\..\..\..\src\components.c + + + $PROJ_DIR$\..\..\..\src\thread.c $PROJ_DIR$\..\..\..\src\mempool.c + + $PROJ_DIR$\..\..\..\src\object.c + Libraries diff --git a/bsp/stm32/stm32mp157a-st-discovery/project.uvprojx b/bsp/stm32/stm32mp157a-st-discovery/project.uvprojx index bfbe2cf901..b8994f4afc 100644 --- a/bsp/stm32/stm32mp157a-st-discovery/project.uvprojx +++ b/bsp/stm32/stm32mp157a-st-discovery/project.uvprojx @@ -336,7 +336,7 @@ CORE_CM4, __LOG_TRACE_IO_, METAL_MAX_DEVICE_REGIONS=2, VIRTIO_SLAVE_ONLY, NO_ATOMIC_64_SUPPORT, __CLK_TCK=RT_TICK_PER_SECOND, STM32MP157Axx, __RTTHREAD__, METAL_INTERNAL, USE_HAL_DRIVER, RT_USING_ARM_LIBC - applications;.;..\..\..\components\libc\compilers\common;..\..\..\components\libc\compilers\common\nogcc;..\..\..\libcpu\arm\common;..\..\..\libcpu\arm\cortex-m4;..\..\..\components\drivers\include;..\..\..\components\drivers\include;..\..\..\components\drivers\include;board;board\CubeMX_Config\CM4\Inc;board\ports;board\ports\audio;..\libraries\HAL_Drivers;..\libraries\HAL_Drivers\config;..\..\..\components\finsh;.;..\..\..\include;..\libraries\STM32MPxx_HAL\STM32MP1xx_HAL_Driver\Inc;..\libraries\STM32MPxx_HAL\CMSIS\Device\ST\STM32MP1xx\Include;..\libraries\STM32MPxx_HAL\CMSIS\Core\Include;..\libraries\STM32MPxx_HAL\CMSIS\Include;..\..\..\components\libc\posix\io\poll;..\..\..\components\libc\posix\ipc;..\..\..\examples\utest\testcases\kernel + applications;.;..\..\..\components\libc\compilers\common;..\..\..\components\libc\compilers\common\extension;..\..\..\libcpu\arm\common;..\..\..\libcpu\arm\cortex-m4;..\..\..\components\drivers\include;..\..\..\components\drivers\include;..\..\..\components\drivers\include;board;board\CubeMX_Config\CM4\Inc;board\ports;board\ports\audio;..\libraries\HAL_Drivers;..\libraries\HAL_Drivers\config;..\..\..\components\finsh;.;..\..\..\include;..\libraries\STM32MPxx_HAL\STM32MP1xx_HAL_Driver\Inc;..\libraries\STM32MPxx_HAL\CMSIS\Device\ST\STM32MP1xx\Include;..\libraries\STM32MPxx_HAL\CMSIS\Core\Include;..\libraries\STM32MPxx_HAL\CMSIS\Include;..\..\..\components\libc\posix\io\poll;..\..\..\components\libc\posix\io\stdio;..\..\..\components\libc\posix\ipc;..\..\..\examples\utest\testcases\kernel @@ -396,13 +396,6 @@ ..\..\..\components\libc\compilers\armlibc\syscalls.c - - - libc_syms.c - 1 - ..\..\..\components\libc\compilers\armlibc\libc_syms.c - - syscall_mem.c @@ -412,16 +405,16 @@ - stdlib.c + time.c 1 - ..\..\..\components\libc\compilers\common\stdlib.c + ..\..\..\components\libc\compilers\common\time.c - time.c + stdlib.c 1 - ..\..\..\components\libc\compilers\common\time.c + ..\..\..\components\libc\compilers\common\stdlib.c @@ -436,16 +429,16 @@ - div0.c + backtrace.c 1 - ..\..\..\libcpu\arm\common\div0.c + ..\..\..\libcpu\arm\common\backtrace.c - backtrace.c + div0.c 1 - ..\..\..\libcpu\arm\common\backtrace.c + ..\..\..\libcpu\arm\common\div0.c @@ -465,6 +458,55 @@ DeviceDrivers + + + ringblk_buf.c + 1 + ..\..\..\components\drivers\ipc\ringblk_buf.c + + + + + waitqueue.c + 1 + ..\..\..\components\drivers\ipc\waitqueue.c + + + + + ringbuffer.c + 1 + ..\..\..\components\drivers\ipc\ringbuffer.c + + + + + completion.c + 1 + ..\..\..\components\drivers\ipc\completion.c + + + + + workqueue.c + 1 + ..\..\..\components\drivers\ipc\workqueue.c + + + + + dataqueue.c + 1 + ..\..\..\components\drivers\ipc\dataqueue.c + + + + + pipe.c + 1 + ..\..\..\components\drivers\ipc\pipe.c + + pin.c @@ -479,70 +521,21 @@ ..\..\..\components\drivers\serial\serial.c - - - waitqueue.c - 1 - ..\..\..\components\drivers\src\waitqueue.c - - - - - completion.c - 1 - ..\..\..\components\drivers\src\completion.c - - - - - pipe.c - 1 - ..\..\..\components\drivers\src\pipe.c - - - - - ringbuffer.c - 1 - ..\..\..\components\drivers\src\ringbuffer.c - - - - - workqueue.c - 1 - ..\..\..\components\drivers\src\workqueue.c - - - - - ringblk_buf.c - 1 - ..\..\..\components\drivers\src\ringblk_buf.c - - - - - dataqueue.c - 1 - ..\..\..\components\drivers\src\dataqueue.c - - Drivers - system_stm32mp1xx.c - 1 - board\CubeMX_Config\Common\System\system_stm32mp1xx.c + startup_stm32mp15xx.s + 2 + ..\libraries\STM32MPxx_HAL\CMSIS\Device\ST\STM32MP1xx\Source\Templates\arm\startup_stm32mp15xx.s - startup_stm32mp15xx.s - 2 - ..\libraries\STM32MPxx_HAL\CMSIS\Device\ST\STM32MP1xx\Source\Templates\arm\startup_stm32mp15xx.s + system_stm32mp1xx.c + 1 + board\CubeMX_Config\Common\System\system_stm32mp1xx.c @@ -609,9 +602,16 @@ Kernel - timer.c + object.c 1 - ..\..\..\src\timer.c + ..\..\..\src\object.c + + + + + idle.c + 1 + ..\..\..\src\idle.c @@ -621,34 +621,6 @@ ..\..\..\src\mempool.c - - - scheduler.c - 1 - ..\..\..\src\scheduler.c - - - - - ipc.c - 1 - ..\..\..\src\ipc.c - - - - - object.c - 1 - ..\..\..\src\object.c - - - - - clock.c - 1 - ..\..\..\src\clock.c - - components.c @@ -658,9 +630,9 @@ - kservice.c + scheduler.c 1 - ..\..\..\src\kservice.c + ..\..\..\src\scheduler.c @@ -670,6 +642,13 @@ ..\..\..\src\thread.c + + + kservice.c + 1 + ..\..\..\src\kservice.c + + irq.c @@ -677,6 +656,27 @@ ..\..\..\src\irq.c + + + timer.c + 1 + ..\..\..\src\timer.c + + + + + ipc.c + 1 + ..\..\..\src\ipc.c + + + + + clock.c + 1 + ..\..\..\src\clock.c + + device.c @@ -691,13 +691,6 @@ ..\..\..\src\memheap.c - - - idle.c - 1 - ..\..\..\src\idle.c - - Libraries diff --git a/bsp/stm32/stm32mp157a-st-ev1/.config b/bsp/stm32/stm32mp157a-st-ev1/.config index 0154921fdd..06c3b35f4a 100644 --- a/bsp/stm32/stm32mp157a-st-ev1/.config +++ b/bsp/stm32/stm32mp157a-st-ev1/.config @@ -7,7 +7,6 @@ # RT-Thread Kernel # CONFIG_RT_NAME_MAX=8 -# CONFIG_RT_USING_BIG_ENDIAN is not set # CONFIG_RT_USING_ARCH_DATA_TYPE is not set # CONFIG_RT_USING_SMP is not set CONFIG_RT_ALIGN_SIZE=4 @@ -173,7 +172,6 @@ CONFIG_RT_USING_PIN=y # # POSIX layer and C standard library # -# CONFIG_RT_USING_MODULE is not set CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8 # @@ -182,7 +180,9 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8 # CONFIG_RT_USING_POSIX_FS is not set # CONFIG_RT_USING_POSIX_DELAY is not set # CONFIG_RT_USING_POSIX_CLOCK is not set +# CONFIG_RT_USING_POSIX_TIMER is not set # CONFIG_RT_USING_PTHREADS is not set +# CONFIG_RT_USING_MODULE is not set # # Interprocess Communication (IPC) @@ -392,6 +392,7 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8 # CONFIG_PKG_USING_MCURSES is not set # CONFIG_PKG_USING_TERMBOX is not set # CONFIG_PKG_USING_VT100 is not set +# CONFIG_PKG_USING_QRCODE is not set # # tools packages @@ -402,7 +403,6 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8 # CONFIG_PKG_USING_SYSTEMVIEW is not set # CONFIG_PKG_USING_SEGGER_RTT is not set # CONFIG_PKG_USING_RDB is not set -# CONFIG_PKG_USING_QRCODE is not set # CONFIG_PKG_USING_ULOG_EASYFLASH is not set # CONFIG_PKG_USING_ULOG_FILE is not set # CONFIG_PKG_USING_LOGMGR is not set @@ -453,6 +453,7 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8 # CONFIG_PKG_USING_POSIX_GETLINE is not set # CONFIG_PKG_USING_POSIX_WCWIDTH is not set # CONFIG_PKG_USING_POSIX_ITOA is not set +# CONFIG_PKG_USING_POSIX_STRINGS is not set # # acceleration: Assembly language or algorithmic acceleration packages @@ -565,6 +566,7 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8 # CONFIG_PKG_USING_SSD1306 is not set # CONFIG_PKG_USING_QKEY is not set # CONFIG_PKG_USING_RS485 is not set +# CONFIG_PKG_USING_RS232 is not set # CONFIG_PKG_USING_NES is not set # CONFIG_PKG_USING_VIRTUAL_SENSOR is not set # CONFIG_PKG_USING_VDEVICE is not set @@ -652,6 +654,8 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8 # CONFIG_PKG_USING_LWGPS is not set # CONFIG_PKG_USING_STATE_MACHINE is not set # CONFIG_PKG_USING_DESIGN_PATTERN is not set +# CONFIG_PKG_USING_CONTROLLER is not set +# CONFIG_PKG_USING_PHASE_LOCKED_LOOP is not set CONFIG_SOC_FAMILY_STM32=y CONFIG_SOC_SERIES_STM32MP1=y diff --git a/bsp/stm32/stm32mp157a-st-ev1/project.ewp b/bsp/stm32/stm32mp157a-st-ev1/project.ewp index 353bf159d6..d4ba6abe24 100644 --- a/bsp/stm32/stm32mp157a-st-ev1/project.ewp +++ b/bsp/stm32/stm32mp157a-st-ev1/project.ewp @@ -359,27 +359,28 @@ CPU + + $PROJ_DIR$\..\..\..\libcpu\arm\common\showmem.c + $PROJ_DIR$\..\..\..\libcpu\arm\common\backtrace.c @@ -2215,59 +2220,56 @@ $PROJ_DIR$\..\..\..\libcpu\arm\common\div0.c - $PROJ_DIR$\..\..\..\libcpu\arm\common\showmem.c + $PROJ_DIR$\..\..\..\libcpu\arm\cortex-m4\cpuport.c $PROJ_DIR$\..\..\..\libcpu\arm\cortex-m4\context_iar.S - - $PROJ_DIR$\..\..\..\libcpu\arm\cortex-m4\cpuport.c - DeviceDrivers + + $PROJ_DIR$\..\..\..\components\drivers\ipc\dataqueue.c + + + $PROJ_DIR$\..\..\..\components\drivers\ipc\workqueue.c + + + $PROJ_DIR$\..\..\..\components\drivers\ipc\ringblk_buf.c + + + $PROJ_DIR$\..\..\..\components\drivers\ipc\waitqueue.c + + + $PROJ_DIR$\..\..\..\components\drivers\ipc\ringbuffer.c + + + $PROJ_DIR$\..\..\..\components\drivers\ipc\pipe.c + + + $PROJ_DIR$\..\..\..\components\drivers\ipc\completion.c + $PROJ_DIR$\..\..\..\components\drivers\misc\pin.c $PROJ_DIR$\..\..\..\components\drivers\serial\serial.c - - $PROJ_DIR$\..\..\..\components\drivers\src\completion.c - - - $PROJ_DIR$\..\..\..\components\drivers\src\dataqueue.c - - - $PROJ_DIR$\..\..\..\components\drivers\src\ringbuffer.c - - - $PROJ_DIR$\..\..\..\components\drivers\src\waitqueue.c - - - $PROJ_DIR$\..\..\..\components\drivers\src\ringblk_buf.c - - - $PROJ_DIR$\..\..\..\components\drivers\src\workqueue.c - - - $PROJ_DIR$\..\..\..\components\drivers\src\pipe.c - Drivers $PROJ_DIR$\board\CubeMX_Config\Common\System\system_stm32mp1xx.c - - $PROJ_DIR$\..\libraries\STM32MPxx_HAL\CMSIS\Device\ST\STM32MP1xx\Source\Templates\iar\startup_stm32mp15xx.s - $PROJ_DIR$\board\CubeMX_Config\CM4\Src\stm32mp1xx_hal_msp.c $PROJ_DIR$\board\board.c + + $PROJ_DIR$\..\libraries\STM32MPxx_HAL\CMSIS\Device\ST\STM32MP1xx\Source\Templates\iar\startup_stm32mp15xx.s + $PROJ_DIR$\..\libraries\HAL_Drivers\drv_gpio.c @@ -2293,43 +2295,43 @@ Kernel - $PROJ_DIR$\..\..\..\src\object.c + $PROJ_DIR$\..\..\..\src\components.c $PROJ_DIR$\..\..\..\src\irq.c - $PROJ_DIR$\..\..\..\src\mempool.c - - - $PROJ_DIR$\..\..\..\src\kservice.c - - - $PROJ_DIR$\..\..\..\src\idle.c - - - $PROJ_DIR$\..\..\..\src\ipc.c - - - $PROJ_DIR$\..\..\..\src\device.c - - - $PROJ_DIR$\..\..\..\src\components.c - - - $PROJ_DIR$\..\..\..\src\thread.c + $PROJ_DIR$\..\..\..\src\timer.c $PROJ_DIR$\..\..\..\src\clock.c - $PROJ_DIR$\..\..\..\src\timer.c + $PROJ_DIR$\..\..\..\src\device.c + + + $PROJ_DIR$\..\..\..\src\mempool.c + + + $PROJ_DIR$\..\..\..\src\object.c + + + $PROJ_DIR$\..\..\..\src\memheap.c + + + $PROJ_DIR$\..\..\..\src\kservice.c $PROJ_DIR$\..\..\..\src\scheduler.c - $PROJ_DIR$\..\..\..\src\memheap.c + $PROJ_DIR$\..\..\..\src\thread.c + + + $PROJ_DIR$\..\..\..\src\ipc.c + + + $PROJ_DIR$\..\..\..\src\idle.c diff --git a/bsp/stm32/stm32mp157a-st-ev1/project.uvprojx b/bsp/stm32/stm32mp157a-st-ev1/project.uvprojx index fd33f890e4..5c7cd585f2 100644 --- a/bsp/stm32/stm32mp157a-st-ev1/project.uvprojx +++ b/bsp/stm32/stm32mp157a-st-ev1/project.uvprojx @@ -336,7 +336,7 @@ CORE_CM4, __LOG_TRACE_IO_, METAL_MAX_DEVICE_REGIONS=2, VIRTIO_SLAVE_ONLY, NO_ATOMIC_64_SUPPORT, __CLK_TCK=RT_TICK_PER_SECOND, STM32MP157Axx, __RTTHREAD__, METAL_INTERNAL, USE_HAL_DRIVER, RT_USING_ARM_LIBC - applications;.;..\..\..\components\libc\compilers\common;..\..\..\components\libc\compilers\common\nogcc;..\..\..\libcpu\arm\common;..\..\..\libcpu\arm\cortex-m4;..\..\..\components\drivers\include;..\..\..\components\drivers\include;..\..\..\components\drivers\include;board;board\CubeMX_Config\CM4\Inc;board\ports;..\libraries\HAL_Drivers;..\libraries\HAL_Drivers\config;..\..\..\components\finsh;.;..\..\..\include;..\libraries\STM32MPxx_HAL\STM32MP1xx_HAL_Driver\Inc;..\libraries\STM32MPxx_HAL\CMSIS\Device\ST\STM32MP1xx\Include;..\libraries\STM32MPxx_HAL\CMSIS\Core\Include;..\libraries\STM32MPxx_HAL\CMSIS\Include;..\..\..\components\libc\posix\io\poll;..\..\..\components\libc\posix\ipc;..\..\..\examples\utest\testcases\kernel + applications;.;..\..\..\components\libc\compilers\common;..\..\..\components\libc\compilers\common\extension;..\..\..\libcpu\arm\common;..\..\..\libcpu\arm\cortex-m4;..\..\..\components\drivers\include;..\..\..\components\drivers\include;..\..\..\components\drivers\include;board;board\CubeMX_Config\CM4\Inc;board\ports;..\libraries\HAL_Drivers;..\libraries\HAL_Drivers\config;..\..\..\components\finsh;.;..\..\..\include;..\libraries\STM32MPxx_HAL\STM32MP1xx_HAL_Driver\Inc;..\libraries\STM32MPxx_HAL\CMSIS\Device\ST\STM32MP1xx\Include;..\libraries\STM32MPxx_HAL\CMSIS\Core\Include;..\libraries\STM32MPxx_HAL\CMSIS\Include;..\..\..\components\libc\posix\io\poll;..\..\..\components\libc\posix\io\stdio;..\..\..\components\libc\posix\ipc;..\..\..\examples\utest\testcases\kernel @@ -389,20 +389,6 @@ Compiler - - - syscall_mem.c - 1 - ..\..\..\components\libc\compilers\armlibc\syscall_mem.c - - - - - libc_syms.c - 1 - ..\..\..\components\libc\compilers\armlibc\libc_syms.c - - syscalls.c @@ -412,9 +398,9 @@ - stdlib.c + syscall_mem.c 1 - ..\..\..\components\libc\compilers\common\stdlib.c + ..\..\..\components\libc\compilers\armlibc\syscall_mem.c @@ -424,6 +410,13 @@ ..\..\..\components\libc\compilers\common\time.c + + + stdlib.c + 1 + ..\..\..\components\libc\compilers\common\stdlib.c + + CPU @@ -448,13 +441,6 @@ ..\..\..\libcpu\arm\common\backtrace.c - - - context_rvds.S - 2 - ..\..\..\libcpu\arm\cortex-m4\context_rvds.S - - cpuport.c @@ -462,9 +448,65 @@ ..\..\..\libcpu\arm\cortex-m4\cpuport.c + + + context_rvds.S + 2 + ..\..\..\libcpu\arm\cortex-m4\context_rvds.S + + DeviceDrivers + + + pipe.c + 1 + ..\..\..\components\drivers\ipc\pipe.c + + + + + completion.c + 1 + ..\..\..\components\drivers\ipc\completion.c + + + + + workqueue.c + 1 + ..\..\..\components\drivers\ipc\workqueue.c + + + + + ringblk_buf.c + 1 + ..\..\..\components\drivers\ipc\ringblk_buf.c + + + + + ringbuffer.c + 1 + ..\..\..\components\drivers\ipc\ringbuffer.c + + + + + dataqueue.c + 1 + ..\..\..\components\drivers\ipc\dataqueue.c + + + + + waitqueue.c + 1 + ..\..\..\components\drivers\ipc\waitqueue.c + + pin.c @@ -479,63 +521,14 @@ ..\..\..\components\drivers\serial\serial.c - - - ringblk_buf.c - 1 - ..\..\..\components\drivers\src\ringblk_buf.c - - - - - completion.c - 1 - ..\..\..\components\drivers\src\completion.c - - - - - pipe.c - 1 - ..\..\..\components\drivers\src\pipe.c - - - - - waitqueue.c - 1 - ..\..\..\components\drivers\src\waitqueue.c - - - - - dataqueue.c - 1 - ..\..\..\components\drivers\src\dataqueue.c - - - - - workqueue.c - 1 - ..\..\..\components\drivers\src\workqueue.c - - - - - ringbuffer.c - 1 - ..\..\..\components\drivers\src\ringbuffer.c - - Drivers - board.c - 1 - board\board.c + startup_stm32mp15xx.s + 2 + ..\libraries\STM32MPxx_HAL\CMSIS\Device\ST\STM32MP1xx\Source\Templates\arm\startup_stm32mp15xx.s @@ -554,9 +547,9 @@ - startup_stm32mp15xx.s - 2 - ..\libraries\STM32MPxx_HAL\CMSIS\Device\ST\STM32MP1xx\Source\Templates\arm\startup_stm32mp15xx.s + board.c + 1 + board\board.c @@ -607,55 +600,6 @@ Kernel - - - ipc.c - 1 - ..\..\..\src\ipc.c - - - - - device.c - 1 - ..\..\..\src\device.c - - - - - object.c - 1 - ..\..\..\src\object.c - - - - - memheap.c - 1 - ..\..\..\src\memheap.c - - - - - timer.c - 1 - ..\..\..\src\timer.c - - - - - thread.c - 1 - ..\..\..\src\thread.c - - - - - idle.c - 1 - ..\..\..\src\idle.c - - components.c @@ -663,13 +607,6 @@ ..\..\..\src\components.c - - - scheduler.c - 1 - ..\..\..\src\scheduler.c - - mempool.c @@ -677,6 +614,13 @@ ..\..\..\src\mempool.c + + + idle.c + 1 + ..\..\..\src\idle.c + + clock.c @@ -684,6 +628,27 @@ ..\..\..\src\clock.c + + + object.c + 1 + ..\..\..\src\object.c + + + + + thread.c + 1 + ..\..\..\src\thread.c + + + + + ipc.c + 1 + ..\..\..\src\ipc.c + + irq.c @@ -691,6 +656,20 @@ ..\..\..\src\irq.c + + + scheduler.c + 1 + ..\..\..\src\scheduler.c + + + + + timer.c + 1 + ..\..\..\src\timer.c + + kservice.c @@ -698,6 +677,20 @@ ..\..\..\src\kservice.c + + + device.c + 1 + ..\..\..\src\device.c + + + + + memheap.c + 1 + ..\..\..\src\memheap.c + + Libraries diff --git a/bsp/stm32/stm32u575-st-nucleo/.config b/bsp/stm32/stm32u575-st-nucleo/.config index a74642e51c..4eeaece092 100644 --- a/bsp/stm32/stm32u575-st-nucleo/.config +++ b/bsp/stm32/stm32u575-st-nucleo/.config @@ -7,7 +7,6 @@ # RT-Thread Kernel # CONFIG_RT_NAME_MAX=8 -# CONFIG_RT_USING_BIG_ENDIAN is not set # CONFIG_RT_USING_ARCH_DATA_TYPE is not set # CONFIG_RT_USING_SMP is not set CONFIG_RT_ALIGN_SIZE=4 @@ -165,7 +164,6 @@ CONFIG_RT_USING_PIN=y # # POSIX layer and C standard library # -# CONFIG_RT_USING_MODULE is not set CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8 # @@ -174,7 +172,9 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8 # CONFIG_RT_USING_POSIX_FS is not set # CONFIG_RT_USING_POSIX_DELAY is not set # CONFIG_RT_USING_POSIX_CLOCK is not set +# CONFIG_RT_USING_POSIX_TIMER is not set # CONFIG_RT_USING_PTHREADS is not set +# CONFIG_RT_USING_MODULE is not set # # Interprocess Communication (IPC) @@ -383,6 +383,7 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8 # CONFIG_PKG_USING_MCURSES is not set # CONFIG_PKG_USING_TERMBOX is not set # CONFIG_PKG_USING_VT100 is not set +# CONFIG_PKG_USING_QRCODE is not set # # tools packages @@ -393,7 +394,6 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8 # CONFIG_PKG_USING_SYSTEMVIEW is not set # CONFIG_PKG_USING_SEGGER_RTT is not set # CONFIG_PKG_USING_RDB is not set -# CONFIG_PKG_USING_QRCODE is not set # CONFIG_PKG_USING_ULOG_EASYFLASH is not set # CONFIG_PKG_USING_ULOG_FILE is not set # CONFIG_PKG_USING_LOGMGR is not set @@ -444,6 +444,7 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8 # CONFIG_PKG_USING_POSIX_GETLINE is not set # CONFIG_PKG_USING_POSIX_WCWIDTH is not set # CONFIG_PKG_USING_POSIX_ITOA is not set +# CONFIG_PKG_USING_POSIX_STRINGS is not set # # acceleration: Assembly language or algorithmic acceleration packages @@ -555,6 +556,7 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8 # CONFIG_PKG_USING_SSD1306 is not set # CONFIG_PKG_USING_QKEY is not set # CONFIG_PKG_USING_RS485 is not set +# CONFIG_PKG_USING_RS232 is not set # CONFIG_PKG_USING_NES is not set # CONFIG_PKG_USING_VIRTUAL_SENSOR is not set # CONFIG_PKG_USING_VDEVICE is not set @@ -642,6 +644,8 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8 # CONFIG_PKG_USING_LWGPS is not set # CONFIG_PKG_USING_STATE_MACHINE is not set # CONFIG_PKG_USING_DESIGN_PATTERN is not set +# CONFIG_PKG_USING_CONTROLLER is not set +# CONFIG_PKG_USING_PHASE_LOCKED_LOOP is not set CONFIG_SOC_FAMILY_STM32=y CONFIG_SOC_SERIES_STM32U5=y diff --git a/bsp/stm32/stm32u575-st-nucleo/project.ewp b/bsp/stm32/stm32u575-st-nucleo/project.ewp index ac37335248..11ba18d059 100644 --- a/bsp/stm32/stm32u575-st-nucleo/project.ewp +++ b/bsp/stm32/stm32u575-st-nucleo/project.ewp @@ -354,24 +354,25 @@ CCIncludePath2 $PROJ_DIR$\..\libraries\STM32U5xx_HAL\CMSIS\Include - $PROJ_DIR$\..\libraries\HAL_Drivers + $PROJ_DIR$\..\..\..\components\finsh $PROJ_DIR$\..\..\..\libcpu\arm\common $PROJ_DIR$\..\..\..\components\libc\posix\ipc + $PROJ_DIR$\..\..\..\components\libc\posix\io\stdio $PROJ_DIR$\..\..\..\components\drivers\include $PROJ_DIR$\..\..\..\examples\utest\testcases\kernel $PROJ_DIR$\. $PROJ_DIR$\..\..\..\libcpu\arm\cortex-m33 $PROJ_DIR$\applications - $PROJ_DIR$\..\..\..\components\finsh $PROJ_DIR$\..\libraries\HAL_Drivers\config - $PROJ_DIR$\board + $PROJ_DIR$\..\..\..\components\libc\compilers\common\extension $PROJ_DIR$\..\..\..\components\libc\compilers\common $PROJ_DIR$\..\..\..\components\libc\posix\io\poll $PROJ_DIR$\board\CubeMX_Config\Inc + $PROJ_DIR$\..\libraries\STM32U5xx_HAL\CMSIS\Device\ST\STM32U5xx\Include $PROJ_DIR$\..\..\..\include $PROJ_DIR$\..\libraries\STM32U5xx_HAL\STM32U5xx_HAL_Driver\Inc - $PROJ_DIR$\..\..\..\components\libc\compilers\common\nogcc - $PROJ_DIR$\..\libraries\STM32U5xx_HAL\CMSIS\Device\ST\STM32U5xx\Include + $PROJ_DIR$\..\libraries\HAL_Drivers + $PROJ_DIR$\board Compiler - - $PROJ_DIR$\..\..\..\components\libc\compilers\common\time.c - $PROJ_DIR$\..\..\..\components\libc\compilers\common\stdlib.c - $PROJ_DIR$\..\..\..\components\libc\compilers\dlib\syscalls.c + $PROJ_DIR$\..\..\..\components\libc\compilers\common\time.c $PROJ_DIR$\..\..\..\components\libc\compilers\dlib\syscall_read.c - $PROJ_DIR$\..\..\..\components\libc\compilers\dlib\syscall_open.c + $PROJ_DIR$\..\..\..\components\libc\compilers\dlib\syscall_write.c + + + $PROJ_DIR$\..\..\..\components\libc\compilers\dlib\syscall_close.c $PROJ_DIR$\..\..\..\components\libc\compilers\dlib\syscall_lseek.c - $PROJ_DIR$\..\..\..\components\libc\compilers\dlib\syscall_mem.c + $PROJ_DIR$\..\..\..\components\libc\compilers\dlib\syscall_remove.c $PROJ_DIR$\..\..\..\components\libc\compilers\dlib\environ.c - $PROJ_DIR$\..\..\..\components\libc\compilers\dlib\syscall_write.c + $PROJ_DIR$\..\..\..\components\libc\compilers\dlib\syscall_open.c - $PROJ_DIR$\..\..\..\components\libc\compilers\dlib\syscall_remove.c + $PROJ_DIR$\..\..\..\components\libc\compilers\dlib\syscall_mem.c - $PROJ_DIR$\..\..\..\components\libc\compilers\dlib\syscall_close.c + $PROJ_DIR$\..\..\..\components\libc\compilers\dlib\syscalls.c CPU - $PROJ_DIR$\..\..\..\libcpu\arm\common\showmem.c + $PROJ_DIR$\..\..\..\libcpu\arm\common\div0.c $PROJ_DIR$\..\..\..\libcpu\arm\common\backtrace.c - $PROJ_DIR$\..\..\..\libcpu\arm\common\div0.c - - - $PROJ_DIR$\..\..\..\libcpu\arm\cortex-m33\trustzone.c + $PROJ_DIR$\..\..\..\libcpu\arm\common\showmem.c $PROJ_DIR$\..\..\..\libcpu\arm\cortex-m33\syscall_iar.S + + $PROJ_DIR$\..\..\..\libcpu\arm\cortex-m33\trustzone.c + $PROJ_DIR$\..\..\..\libcpu\arm\cortex-m33\context_iar.S @@ -2216,45 +2218,45 @@ DeviceDrivers + + $PROJ_DIR$\..\..\..\components\drivers\ipc\completion.c + + + $PROJ_DIR$\..\..\..\components\drivers\ipc\ringblk_buf.c + + + $PROJ_DIR$\..\..\..\components\drivers\ipc\workqueue.c + + + $PROJ_DIR$\..\..\..\components\drivers\ipc\waitqueue.c + + + $PROJ_DIR$\..\..\..\components\drivers\ipc\ringbuffer.c + + + $PROJ_DIR$\..\..\..\components\drivers\ipc\dataqueue.c + + + $PROJ_DIR$\..\..\..\components\drivers\ipc\pipe.c + $PROJ_DIR$\..\..\..\components\drivers\misc\pin.c $PROJ_DIR$\..\..\..\components\drivers\serial\serial.c - - $PROJ_DIR$\..\..\..\components\drivers\src\ringbuffer.c - - - $PROJ_DIR$\..\..\..\components\drivers\src\pipe.c - - - $PROJ_DIR$\..\..\..\components\drivers\src\waitqueue.c - - - $PROJ_DIR$\..\..\..\components\drivers\src\completion.c - - - $PROJ_DIR$\..\..\..\components\drivers\src\ringblk_buf.c - - - $PROJ_DIR$\..\..\..\components\drivers\src\workqueue.c - - - $PROJ_DIR$\..\..\..\components\drivers\src\dataqueue.c - Drivers + + $PROJ_DIR$\..\libraries\STM32U5xx_HAL\CMSIS\Device\ST\STM32U5xx\Source\Templates\iar\startup_stm32u575xx.s + $PROJ_DIR$\board\CubeMX_Config\Src\stm32u5xx_hal_msp.c $PROJ_DIR$\board\board.c - - $PROJ_DIR$\..\libraries\STM32U5xx_HAL\CMSIS\Device\ST\STM32U5xx\Source\Templates\iar\startup_stm32u575xx.s - $PROJ_DIR$\..\libraries\HAL_Drivers\drv_gpio.c @@ -2279,42 +2281,42 @@ Kernel - - $PROJ_DIR$\..\..\..\src\mempool.c - - - $PROJ_DIR$\..\..\..\src\thread.c - $PROJ_DIR$\..\..\..\src\kservice.c - - $PROJ_DIR$\..\..\..\src\ipc.c - - - $PROJ_DIR$\..\..\..\src\mem.c - - - $PROJ_DIR$\..\..\..\src\timer.c - - - $PROJ_DIR$\..\..\..\src\clock.c - - - $PROJ_DIR$\..\..\..\src\scheduler.c - - - $PROJ_DIR$\..\..\..\src\device.c - $PROJ_DIR$\..\..\..\src\components.c - $PROJ_DIR$\..\..\..\src\object.c + $PROJ_DIR$\..\..\..\src\device.c + + + $PROJ_DIR$\..\..\..\src\mem.c + + + $PROJ_DIR$\..\..\..\src\scheduler.c + + + $PROJ_DIR$\..\..\..\src\clock.c $PROJ_DIR$\..\..\..\src\idle.c + + $PROJ_DIR$\..\..\..\src\thread.c + + + $PROJ_DIR$\..\..\..\src\ipc.c + + + $PROJ_DIR$\..\..\..\src\mempool.c + + + $PROJ_DIR$\..\..\..\src\object.c + + + $PROJ_DIR$\..\..\..\src\timer.c + $PROJ_DIR$\..\..\..\src\irq.c diff --git a/bsp/stm32/stm32u575-st-nucleo/project.uvprojx b/bsp/stm32/stm32u575-st-nucleo/project.uvprojx index 24fcbf8438..7d3fa977c8 100644 --- a/bsp/stm32/stm32u575-st-nucleo/project.uvprojx +++ b/bsp/stm32/stm32u575-st-nucleo/project.uvprojx @@ -336,7 +336,7 @@ USE_HAL_DRIVER, STM32U575xx, __RTTHREAD__, RT_USING_ARM_LIBC, __CLK_TCK=RT_TICK_PER_SECOND - .;applications;..\..\..\components\libc\compilers\common;..\..\..\components\libc\compilers\common\nogcc;..\..\..\libcpu\arm\common;..\..\..\libcpu\arm\cortex-m33;..\..\..\components\drivers\include;..\..\..\components\drivers\include;..\..\..\components\drivers\include;board;board\CubeMX_Config\Inc;..\libraries\HAL_Drivers;..\libraries\HAL_Drivers\config;..\..\..\components\finsh;.;..\..\..\include;..\libraries\STM32U5xx_HAL\STM32U5xx_HAL_Driver\Inc;..\libraries\STM32U5xx_HAL\CMSIS\Device\ST\STM32U5xx\Include;..\libraries\STM32U5xx_HAL\CMSIS\Include;..\..\..\components\libc\posix\io\poll;..\..\..\components\libc\posix\ipc;..\..\..\examples\utest\testcases\kernel + .;applications;..\..\..\components\libc\compilers\common;..\..\..\components\libc\compilers\common\extension;..\..\..\libcpu\arm\common;..\..\..\libcpu\arm\cortex-m33;..\..\..\components\drivers\include;..\..\..\components\drivers\include;..\..\..\components\drivers\include;board;board\CubeMX_Config\Inc;..\libraries\HAL_Drivers;..\libraries\HAL_Drivers\config;..\..\..\components\finsh;.;..\..\..\include;..\libraries\STM32U5xx_HAL\STM32U5xx_HAL_Driver\Inc;..\libraries\STM32U5xx_HAL\CMSIS\Device\ST\STM32U5xx\Include;..\libraries\STM32U5xx_HAL\CMSIS\Include;..\..\..\components\libc\posix\io\poll;..\..\..\components\libc\posix\io\stdio;..\..\..\components\libc\posix\ipc;..\..\..\examples\utest\testcases\kernel @@ -396,13 +396,6 @@ ..\..\..\components\libc\compilers\armlibc\syscall_mem.c - - - libc_syms.c - 1 - ..\..\..\components\libc\compilers\armlibc\libc_syms.c - - syscalls.c @@ -412,16 +405,16 @@ - stdlib.c + time.c 1 - ..\..\..\components\libc\compilers\common\stdlib.c + ..\..\..\components\libc\compilers\common\time.c - time.c + stdlib.c 1 - ..\..\..\components\libc\compilers\common\time.c + ..\..\..\components\libc\compilers\common\stdlib.c @@ -448,20 +441,6 @@ ..\..\..\libcpu\arm\common\div0.c - - - syscall_rvds.S - 2 - ..\..\..\libcpu\arm\cortex-m33\syscall_rvds.S - - - - - trustzone.c - 1 - ..\..\..\libcpu\arm\cortex-m33\trustzone.c - - cpuport.c @@ -469,6 +448,13 @@ ..\..\..\libcpu\arm\cortex-m33\cpuport.c + + + syscall_rvds.S + 2 + ..\..\..\libcpu\arm\cortex-m33\syscall_rvds.S + + context_rvds.S @@ -476,9 +462,65 @@ ..\..\..\libcpu\arm\cortex-m33\context_rvds.S + + + trustzone.c + 1 + ..\..\..\libcpu\arm\cortex-m33\trustzone.c + + DeviceDrivers + + + dataqueue.c + 1 + ..\..\..\components\drivers\ipc\dataqueue.c + + + + + workqueue.c + 1 + ..\..\..\components\drivers\ipc\workqueue.c + + + + + pipe.c + 1 + ..\..\..\components\drivers\ipc\pipe.c + + + + + completion.c + 1 + ..\..\..\components\drivers\ipc\completion.c + + + + + ringblk_buf.c + 1 + ..\..\..\components\drivers\ipc\ringblk_buf.c + + + + + waitqueue.c + 1 + ..\..\..\components\drivers\ipc\waitqueue.c + + + + + ringbuffer.c + 1 + ..\..\..\components\drivers\ipc\ringbuffer.c + + pin.c @@ -493,70 +535,21 @@ ..\..\..\components\drivers\serial\serial.c - - - dataqueue.c - 1 - ..\..\..\components\drivers\src\dataqueue.c - - - - - workqueue.c - 1 - ..\..\..\components\drivers\src\workqueue.c - - - - - waitqueue.c - 1 - ..\..\..\components\drivers\src\waitqueue.c - - - - - pipe.c - 1 - ..\..\..\components\drivers\src\pipe.c - - - - - ringblk_buf.c - 1 - ..\..\..\components\drivers\src\ringblk_buf.c - - - - - completion.c - 1 - ..\..\..\components\drivers\src\completion.c - - - - - ringbuffer.c - 1 - ..\..\..\components\drivers\src\ringbuffer.c - - Drivers - stm32u5xx_hal_msp.c - 1 - board\CubeMX_Config\Src\stm32u5xx_hal_msp.c + startup_stm32u575xx.s + 2 + ..\libraries\STM32U5xx_HAL\CMSIS\Device\ST\STM32U5xx\Source\Templates\arm\startup_stm32u575xx.s - startup_stm32u575xx.s - 2 - ..\libraries\STM32U5xx_HAL\CMSIS\Device\ST\STM32U5xx\Source\Templates\arm\startup_stm32u575xx.s + stm32u5xx_hal_msp.c + 1 + board\CubeMX_Config\Src\stm32u5xx_hal_msp.c @@ -614,27 +607,6 @@ Kernel - - - device.c - 1 - ..\..\..\src\device.c - - - - - mempool.c - 1 - ..\..\..\src\mempool.c - - - - - clock.c - 1 - ..\..\..\src\clock.c - - object.c @@ -642,41 +614,6 @@ ..\..\..\src\object.c - - - thread.c - 1 - ..\..\..\src\thread.c - - - - - irq.c - 1 - ..\..\..\src\irq.c - - - - - timer.c - 1 - ..\..\..\src\timer.c - - - - - components.c - 1 - ..\..\..\src\components.c - - - - - idle.c - 1 - ..\..\..\src\idle.c - - kservice.c @@ -684,6 +621,27 @@ ..\..\..\src\kservice.c + + + timer.c + 1 + ..\..\..\src\timer.c + + + + + mempool.c + 1 + ..\..\..\src\mempool.c + + + + + thread.c + 1 + ..\..\..\src\thread.c + + ipc.c @@ -691,6 +649,13 @@ ..\..\..\src\ipc.c + + + idle.c + 1 + ..\..\..\src\idle.c + + mem.c @@ -698,6 +663,34 @@ ..\..\..\src\mem.c + + + device.c + 1 + ..\..\..\src\device.c + + + + + irq.c + 1 + ..\..\..\src\irq.c + + + + + components.c + 1 + ..\..\..\src\components.c + + + + + clock.c + 1 + ..\..\..\src\clock.c + + scheduler.c diff --git a/bsp/stm32/stm32wb55-st-nucleo/.config b/bsp/stm32/stm32wb55-st-nucleo/.config index 7c7b3aa7fa..7fc859d2a0 100644 --- a/bsp/stm32/stm32wb55-st-nucleo/.config +++ b/bsp/stm32/stm32wb55-st-nucleo/.config @@ -7,7 +7,6 @@ # RT-Thread Kernel # CONFIG_RT_NAME_MAX=8 -# CONFIG_RT_USING_BIG_ENDIAN is not set # CONFIG_RT_USING_ARCH_DATA_TYPE is not set # CONFIG_RT_USING_SMP is not set CONFIG_RT_ALIGN_SIZE=4 @@ -170,7 +169,6 @@ CONFIG_RT_USING_PIN=y # # POSIX layer and C standard library # -# CONFIG_RT_USING_MODULE is not set CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8 # @@ -179,7 +177,9 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8 # CONFIG_RT_USING_POSIX_FS is not set # CONFIG_RT_USING_POSIX_DELAY is not set # CONFIG_RT_USING_POSIX_CLOCK is not set +# CONFIG_RT_USING_POSIX_TIMER is not set # CONFIG_RT_USING_PTHREADS is not set +# CONFIG_RT_USING_MODULE is not set # # Interprocess Communication (IPC) @@ -389,6 +389,7 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8 # CONFIG_PKG_USING_MCURSES is not set # CONFIG_PKG_USING_TERMBOX is not set # CONFIG_PKG_USING_VT100 is not set +# CONFIG_PKG_USING_QRCODE is not set # # tools packages @@ -399,7 +400,6 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8 # CONFIG_PKG_USING_SYSTEMVIEW is not set # CONFIG_PKG_USING_SEGGER_RTT is not set # CONFIG_PKG_USING_RDB is not set -# CONFIG_PKG_USING_QRCODE is not set # CONFIG_PKG_USING_ULOG_EASYFLASH is not set # CONFIG_PKG_USING_ULOG_FILE is not set # CONFIG_PKG_USING_LOGMGR is not set @@ -450,6 +450,7 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8 # CONFIG_PKG_USING_POSIX_GETLINE is not set # CONFIG_PKG_USING_POSIX_WCWIDTH is not set # CONFIG_PKG_USING_POSIX_ITOA is not set +# CONFIG_PKG_USING_POSIX_STRINGS is not set # # acceleration: Assembly language or algorithmic acceleration packages @@ -562,6 +563,7 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8 # CONFIG_PKG_USING_SSD1306 is not set # CONFIG_PKG_USING_QKEY is not set # CONFIG_PKG_USING_RS485 is not set +# CONFIG_PKG_USING_RS232 is not set # CONFIG_PKG_USING_NES is not set # CONFIG_PKG_USING_VIRTUAL_SENSOR is not set # CONFIG_PKG_USING_VDEVICE is not set @@ -649,6 +651,8 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8 # CONFIG_PKG_USING_LWGPS is not set # CONFIG_PKG_USING_STATE_MACHINE is not set # CONFIG_PKG_USING_DESIGN_PATTERN is not set +# CONFIG_PKG_USING_CONTROLLER is not set +# CONFIG_PKG_USING_PHASE_LOCKED_LOOP is not set CONFIG_SOC_FAMILY_STM32=y CONFIG_SOC_SERIES_STM32WB=y diff --git a/bsp/stm32/stm32wb55-st-nucleo/project.ewp b/bsp/stm32/stm32wb55-st-nucleo/project.ewp index e82db12bf6..aee6f457bc 100644 --- a/bsp/stm32/stm32wb55-st-nucleo/project.ewp +++ b/bsp/stm32/stm32wb55-st-nucleo/project.ewp @@ -344,17 +344,18 @@ Compiler - - $PROJ_DIR$\..\..\..\components\libc\compilers\common\stdlib.c - $PROJ_DIR$\..\..\..\components\libc\compilers\common\time.c - $PROJ_DIR$\..\..\..\components\libc\compilers\dlib\syscall_read.c - - - $PROJ_DIR$\..\..\..\components\libc\compilers\dlib\syscall_close.c - - - $PROJ_DIR$\..\..\..\components\libc\compilers\dlib\syscall_remove.c - - - $PROJ_DIR$\..\..\..\components\libc\compilers\dlib\environ.c - - - $PROJ_DIR$\..\..\..\components\libc\compilers\dlib\syscall_write.c - - - $PROJ_DIR$\..\..\..\components\libc\compilers\dlib\syscalls.c - - - $PROJ_DIR$\..\..\..\components\libc\compilers\dlib\syscall_mem.c + $PROJ_DIR$\..\..\..\components\libc\compilers\common\stdlib.c $PROJ_DIR$\..\..\..\components\libc\compilers\dlib\syscall_open.c + + $PROJ_DIR$\..\..\..\components\libc\compilers\dlib\syscall_write.c + + + $PROJ_DIR$\..\..\..\components\libc\compilers\dlib\environ.c + + + $PROJ_DIR$\..\..\..\components\libc\compilers\dlib\syscall_remove.c + + + $PROJ_DIR$\..\..\..\components\libc\compilers\dlib\syscall_mem.c + + + $PROJ_DIR$\..\..\..\components\libc\compilers\dlib\syscalls.c + + + $PROJ_DIR$\..\..\..\components\libc\compilers\dlib\syscall_read.c + $PROJ_DIR$\..\..\..\components\libc\compilers\dlib\syscall_lseek.c + + $PROJ_DIR$\..\..\..\components\libc\compilers\dlib\syscall_close.c + CPU - $PROJ_DIR$\..\..\..\libcpu\arm\common\div0.c + $PROJ_DIR$\..\..\..\libcpu\arm\common\backtrace.c - $PROJ_DIR$\..\..\..\libcpu\arm\common\backtrace.c + $PROJ_DIR$\..\..\..\libcpu\arm\common\div0.c $PROJ_DIR$\..\..\..\libcpu\arm\common\showmem.c @@ -2137,33 +2139,33 @@ DeviceDrivers + + $PROJ_DIR$\..\..\..\components\drivers\ipc\ringblk_buf.c + + + $PROJ_DIR$\..\..\..\components\drivers\ipc\dataqueue.c + + + $PROJ_DIR$\..\..\..\components\drivers\ipc\completion.c + + + $PROJ_DIR$\..\..\..\components\drivers\ipc\ringbuffer.c + + + $PROJ_DIR$\..\..\..\components\drivers\ipc\pipe.c + + + $PROJ_DIR$\..\..\..\components\drivers\ipc\waitqueue.c + + + $PROJ_DIR$\..\..\..\components\drivers\ipc\workqueue.c + $PROJ_DIR$\..\..\..\components\drivers\misc\pin.c $PROJ_DIR$\..\..\..\components\drivers\serial\serial.c - - $PROJ_DIR$\..\..\..\components\drivers\src\pipe.c - - - $PROJ_DIR$\..\..\..\components\drivers\src\waitqueue.c - - - $PROJ_DIR$\..\..\..\components\drivers\src\dataqueue.c - - - $PROJ_DIR$\..\..\..\components\drivers\src\ringblk_buf.c - - - $PROJ_DIR$\..\..\..\components\drivers\src\ringbuffer.c - - - $PROJ_DIR$\..\..\..\components\drivers\src\workqueue.c - - - $PROJ_DIR$\..\..\..\components\drivers\src\completion.c - Drivers @@ -2200,45 +2202,45 @@ Kernel - - $PROJ_DIR$\..\..\..\src\mempool.c - - - $PROJ_DIR$\..\..\..\src\thread.c - $PROJ_DIR$\..\..\..\src\components.c - - $PROJ_DIR$\..\..\..\src\object.c - $PROJ_DIR$\..\..\..\src\irq.c + + $PROJ_DIR$\..\..\..\src\idle.c + + + $PROJ_DIR$\..\..\..\src\mempool.c + $PROJ_DIR$\..\..\..\src\timer.c - $PROJ_DIR$\..\..\..\src\device.c - - - $PROJ_DIR$\..\..\..\src\ipc.c - - - $PROJ_DIR$\..\..\..\src\scheduler.c + $PROJ_DIR$\..\..\..\src\object.c $PROJ_DIR$\..\..\..\src\kservice.c - $PROJ_DIR$\..\..\..\src\clock.c + $PROJ_DIR$\..\..\..\src\scheduler.c - $PROJ_DIR$\..\..\..\src\idle.c + $PROJ_DIR$\..\..\..\src\ipc.c $PROJ_DIR$\..\..\..\src\mem.c + + $PROJ_DIR$\..\..\..\src\device.c + + + $PROJ_DIR$\..\..\..\src\thread.c + + + $PROJ_DIR$\..\..\..\src\clock.c + Libraries diff --git a/bsp/stm32/stm32wb55-st-nucleo/project.uvprojx b/bsp/stm32/stm32wb55-st-nucleo/project.uvprojx index 0210aec10a..232ce6d119 100644 --- a/bsp/stm32/stm32wb55-st-nucleo/project.uvprojx +++ b/bsp/stm32/stm32wb55-st-nucleo/project.uvprojx @@ -336,7 +336,7 @@ USE_HAL_DRIVER, STM32WB55xx, __RTTHREAD__, RT_USING_ARM_LIBC, __CLK_TCK=RT_TICK_PER_SECOND - .;applications;..\..\..\components\libc\compilers\common;..\..\..\components\libc\compilers\common\nogcc;..\..\..\libcpu\arm\common;..\..\..\libcpu\arm\cortex-m4;..\..\..\components\drivers\include;..\..\..\components\drivers\include;..\..\..\components\drivers\include;board;board\CubeMX_Config\Inc;board\ports;..\libraries\HAL_Drivers;..\libraries\HAL_Drivers\config;..\..\..\components\finsh;.;..\..\..\include;..\libraries\STM32WBxx_HAL\STM32WBxx_HAL_Driver\Inc;..\libraries\STM32WBxx_HAL\CMSIS\Device\ST\STM32WBxx\Include;..\libraries\STM32WBxx_HAL\CMSIS\Include;..\..\..\components\libc\posix\io\poll;..\..\..\components\libc\posix\ipc;..\..\..\examples\utest\testcases\kernel + .;applications;..\..\..\components\libc\compilers\common;..\..\..\components\libc\compilers\common\extension;..\..\..\libcpu\arm\common;..\..\..\libcpu\arm\cortex-m4;..\..\..\components\drivers\include;..\..\..\components\drivers\include;..\..\..\components\drivers\include;board;board\CubeMX_Config\Inc;board\ports;..\libraries\HAL_Drivers;..\libraries\HAL_Drivers\config;..\..\..\components\finsh;.;..\..\..\include;..\libraries\STM32WBxx_HAL\STM32WBxx_HAL_Driver\Inc;..\libraries\STM32WBxx_HAL\CMSIS\Device\ST\STM32WBxx\Include;..\libraries\STM32WBxx_HAL\CMSIS\Include;..\..\..\components\libc\posix\io\poll;..\..\..\components\libc\posix\io\stdio;..\..\..\components\libc\posix\ipc;..\..\..\examples\utest\testcases\kernel @@ -389,13 +389,6 @@ Compiler - - - syscalls.c - 1 - ..\..\..\components\libc\compilers\armlibc\syscalls.c - - syscall_mem.c @@ -405,9 +398,9 @@ - libc_syms.c + syscalls.c 1 - ..\..\..\components\libc\compilers\armlibc\libc_syms.c + ..\..\..\components\libc\compilers\armlibc\syscalls.c @@ -429,9 +422,9 @@ CPU - backtrace.c + showmem.c 1 - ..\..\..\libcpu\arm\common\backtrace.c + ..\..\..\libcpu\arm\common\showmem.c @@ -443,16 +436,9 @@ - showmem.c + backtrace.c 1 - ..\..\..\libcpu\arm\common\showmem.c - - - - - context_rvds.S - 2 - ..\..\..\libcpu\arm\cortex-m4\context_rvds.S + ..\..\..\libcpu\arm\common\backtrace.c @@ -462,9 +448,65 @@ ..\..\..\libcpu\arm\cortex-m4\cpuport.c + + + context_rvds.S + 2 + ..\..\..\libcpu\arm\cortex-m4\context_rvds.S + + DeviceDrivers + + + completion.c + 1 + ..\..\..\components\drivers\ipc\completion.c + + + + + pipe.c + 1 + ..\..\..\components\drivers\ipc\pipe.c + + + + + waitqueue.c + 1 + ..\..\..\components\drivers\ipc\waitqueue.c + + + + + workqueue.c + 1 + ..\..\..\components\drivers\ipc\workqueue.c + + + + + ringbuffer.c + 1 + ..\..\..\components\drivers\ipc\ringbuffer.c + + + + + dataqueue.c + 1 + ..\..\..\components\drivers\ipc\dataqueue.c + + + + + ringblk_buf.c + 1 + ..\..\..\components\drivers\ipc\ringblk_buf.c + + pin.c @@ -479,58 +521,16 @@ ..\..\..\components\drivers\serial\serial.c - - - completion.c - 1 - ..\..\..\components\drivers\src\completion.c - - - - - pipe.c - 1 - ..\..\..\components\drivers\src\pipe.c - - - - - workqueue.c - 1 - ..\..\..\components\drivers\src\workqueue.c - - - - - dataqueue.c - 1 - ..\..\..\components\drivers\src\dataqueue.c - - - - - ringbuffer.c - 1 - ..\..\..\components\drivers\src\ringbuffer.c - - - - - waitqueue.c - 1 - ..\..\..\components\drivers\src\waitqueue.c - - - - - ringblk_buf.c - 1 - ..\..\..\components\drivers\src\ringblk_buf.c - - Drivers + + + startup_stm32wb55xx_cm4.s + 2 + ..\libraries\STM32WBxx_HAL\CMSIS\Device\ST\STM32WBxx\Source\Templates\arm\startup_stm32wb55xx_cm4.s + + stm32wbxx_hal_msp.c @@ -545,13 +545,6 @@ board\board.c - - - startup_stm32wb55xx_cm4.s - 2 - ..\libraries\STM32WBxx_HAL\CMSIS\Device\ST\STM32WBxx\Source\Templates\arm\startup_stm32wb55xx_cm4.s - - drv_gpio.c @@ -602,51 +595,9 @@ Kernel - mempool.c + idle.c 1 - ..\..\..\src\mempool.c - - - - - clock.c - 1 - ..\..\..\src\clock.c - - - - - scheduler.c - 1 - ..\..\..\src\scheduler.c - - - - - components.c - 1 - ..\..\..\src\components.c - - - - - thread.c - 1 - ..\..\..\src\thread.c - - - - - mem.c - 1 - ..\..\..\src\mem.c - - - - - irq.c - 1 - ..\..\..\src\irq.c + ..\..\..\src\idle.c @@ -658,23 +609,9 @@ - idle.c + ipc.c 1 - ..\..\..\src\idle.c - - - - - device.c - 1 - ..\..\..\src\device.c - - - - - object.c - 1 - ..\..\..\src\object.c + ..\..\..\src\ipc.c @@ -686,9 +623,65 @@ - ipc.c + thread.c 1 - ..\..\..\src\ipc.c + ..\..\..\src\thread.c + + + + + mempool.c + 1 + ..\..\..\src\mempool.c + + + + + components.c + 1 + ..\..\..\src\components.c + + + + + mem.c + 1 + ..\..\..\src\mem.c + + + + + object.c + 1 + ..\..\..\src\object.c + + + + + irq.c + 1 + ..\..\..\src\irq.c + + + + + scheduler.c + 1 + ..\..\..\src\scheduler.c + + + + + clock.c + 1 + ..\..\..\src\clock.c + + + + + device.c + 1 + ..\..\..\src\device.c diff --git a/bsp/stm32/stm32wl55-st-nucleo/.config b/bsp/stm32/stm32wl55-st-nucleo/.config index 128ca7f357..d367eda5d2 100644 --- a/bsp/stm32/stm32wl55-st-nucleo/.config +++ b/bsp/stm32/stm32wl55-st-nucleo/.config @@ -7,7 +7,6 @@ # RT-Thread Kernel # CONFIG_RT_NAME_MAX=8 -# CONFIG_RT_USING_BIG_ENDIAN is not set # CONFIG_RT_USING_ARCH_DATA_TYPE is not set # CONFIG_RT_USING_SMP is not set CONFIG_RT_ALIGN_SIZE=4 @@ -157,7 +156,6 @@ CONFIG_RT_USING_PIN=y # # POSIX layer and C standard library # -# CONFIG_RT_USING_MODULE is not set CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8 # @@ -166,7 +164,9 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8 # CONFIG_RT_USING_POSIX_FS is not set # CONFIG_RT_USING_POSIX_DELAY is not set # CONFIG_RT_USING_POSIX_CLOCK is not set +# CONFIG_RT_USING_POSIX_TIMER is not set # CONFIG_RT_USING_PTHREADS is not set +# CONFIG_RT_USING_MODULE is not set # # Interprocess Communication (IPC) @@ -376,6 +376,7 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8 # CONFIG_PKG_USING_MCURSES is not set # CONFIG_PKG_USING_TERMBOX is not set # CONFIG_PKG_USING_VT100 is not set +# CONFIG_PKG_USING_QRCODE is not set # # tools packages @@ -386,7 +387,6 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8 # CONFIG_PKG_USING_SYSTEMVIEW is not set # CONFIG_PKG_USING_SEGGER_RTT is not set # CONFIG_PKG_USING_RDB is not set -# CONFIG_PKG_USING_QRCODE is not set # CONFIG_PKG_USING_ULOG_EASYFLASH is not set # CONFIG_PKG_USING_ULOG_FILE is not set # CONFIG_PKG_USING_LOGMGR is not set @@ -437,6 +437,7 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8 # CONFIG_PKG_USING_POSIX_GETLINE is not set # CONFIG_PKG_USING_POSIX_WCWIDTH is not set # CONFIG_PKG_USING_POSIX_ITOA is not set +# CONFIG_PKG_USING_POSIX_STRINGS is not set # # acceleration: Assembly language or algorithmic acceleration packages @@ -549,6 +550,7 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8 # CONFIG_PKG_USING_SSD1306 is not set # CONFIG_PKG_USING_QKEY is not set # CONFIG_PKG_USING_RS485 is not set +# CONFIG_PKG_USING_RS232 is not set # CONFIG_PKG_USING_NES is not set # CONFIG_PKG_USING_VIRTUAL_SENSOR is not set # CONFIG_PKG_USING_VDEVICE is not set @@ -636,6 +638,8 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8 # CONFIG_PKG_USING_LWGPS is not set # CONFIG_PKG_USING_STATE_MACHINE is not set # CONFIG_PKG_USING_DESIGN_PATTERN is not set +# CONFIG_PKG_USING_CONTROLLER is not set +# CONFIG_PKG_USING_PHASE_LOCKED_LOOP is not set CONFIG_SOC_FAMILY_STM32=y CONFIG_SOC_SERIES_STM32WL=y diff --git a/bsp/stm32/stm32wl55-st-nucleo/project.uvprojx b/bsp/stm32/stm32wl55-st-nucleo/project.uvprojx index dff0fb5b7c..56a20b9316 100644 --- a/bsp/stm32/stm32wl55-st-nucleo/project.uvprojx +++ b/bsp/stm32/stm32wl55-st-nucleo/project.uvprojx @@ -335,7 +335,7 @@ USE_HAL_DRIVER, __RTTHREAD__, STM32WLxx, RT_USING_ARM_LIBC, __CLK_TCK=RT_TICK_PER_SECOND - applications;.;..\..\..\components\libc\compilers\common;..\..\..\components\libc\compilers\common\nogcc;..\..\..\libcpu\arm\common;..\..\..\libcpu\arm\cortex-m4;..\..\..\components\drivers\include;..\..\..\components\drivers\include;..\..\..\components\drivers\include;board;board\CubeMX_Config\Inc;board\ports;..\libraries\HAL_Drivers;..\libraries\HAL_Drivers\config;..\..\..\components\finsh;.;..\..\..\include;..\..\..\components\libc\posix\io\poll;..\..\..\components\libc\posix\ipc;..\libraries\STM32WLxx_HAL\STM32WLxx_HAL_Driver\Inc;..\libraries\STM32WLxx_HAL\CMSIS\Device\ST\stm32lwxx\Include;..\libraries\STM32WLxx_HAL\CMSIS\Include;..\..\..\examples\utest\testcases\kernel + applications;.;..\..\..\components\libc\compilers\common;..\..\..\components\libc\compilers\common\extension;..\..\..\libcpu\arm\common;..\..\..\libcpu\arm\cortex-m4;..\..\..\components\drivers\include;..\..\..\components\drivers\include;..\..\..\components\drivers\include;board;board\CubeMX_Config\Inc;board\ports;..\libraries\HAL_Drivers;..\libraries\HAL_Drivers\config;..\..\..\components\finsh;.;..\..\..\include;..\..\..\components\libc\posix\io\poll;..\..\..\components\libc\posix\io\stdio;..\..\..\components\libc\posix\ipc;..\libraries\STM32WLxx_HAL\STM32WLxx_HAL_Driver\Inc;..\libraries\STM32WLxx_HAL\CMSIS\Device\ST\stm32lwxx\Include;..\libraries\STM32WLxx_HAL\CMSIS\Include;..\..\..\examples\utest\testcases\kernel @@ -388,20 +388,6 @@ Compiler - - - syscall_mem.c - 1 - ..\..\..\components\libc\compilers\armlibc\syscall_mem.c - - - - - libc_syms.c - 1 - ..\..\..\components\libc\compilers\armlibc\libc_syms.c - - syscalls.c @@ -409,6 +395,13 @@ ..\..\..\components\libc\compilers\armlibc\syscalls.c + + + syscall_mem.c + 1 + ..\..\..\components\libc\compilers\armlibc\syscall_mem.c + + time.c @@ -428,16 +421,16 @@ CPU - showmem.c + backtrace.c 1 - ..\..\..\libcpu\arm\common\showmem.c + ..\..\..\libcpu\arm\common\backtrace.c - backtrace.c + showmem.c 1 - ..\..\..\libcpu\arm\common\backtrace.c + ..\..\..\libcpu\arm\common\showmem.c @@ -447,13 +440,6 @@ ..\..\..\libcpu\arm\common\div0.c - - - context_rvds.S - 2 - ..\..\..\libcpu\arm\cortex-m4\context_rvds.S - - cpuport.c @@ -461,9 +447,65 @@ ..\..\..\libcpu\arm\cortex-m4\cpuport.c + + + context_rvds.S + 2 + ..\..\..\libcpu\arm\cortex-m4\context_rvds.S + + DeviceDrivers + + + completion.c + 1 + ..\..\..\components\drivers\ipc\completion.c + + + + + ringblk_buf.c + 1 + ..\..\..\components\drivers\ipc\ringblk_buf.c + + + + + ringbuffer.c + 1 + ..\..\..\components\drivers\ipc\ringbuffer.c + + + + + pipe.c + 1 + ..\..\..\components\drivers\ipc\pipe.c + + + + + workqueue.c + 1 + ..\..\..\components\drivers\ipc\workqueue.c + + + + + dataqueue.c + 1 + ..\..\..\components\drivers\ipc\dataqueue.c + + + + + waitqueue.c + 1 + ..\..\..\components\drivers\ipc\waitqueue.c + + pin.c @@ -478,55 +520,6 @@ ..\..\..\components\drivers\serial\serial.c - - - workqueue.c - 1 - ..\..\..\components\drivers\src\workqueue.c - - - - - dataqueue.c - 1 - ..\..\..\components\drivers\src\dataqueue.c - - - - - completion.c - 1 - ..\..\..\components\drivers\src\completion.c - - - - - ringbuffer.c - 1 - ..\..\..\components\drivers\src\ringbuffer.c - - - - - ringblk_buf.c - 1 - ..\..\..\components\drivers\src\ringblk_buf.c - - - - - waitqueue.c - 1 - ..\..\..\components\drivers\src\waitqueue.c - - - - - pipe.c - 1 - ..\..\..\components\drivers\src\pipe.c - - Drivers @@ -601,9 +594,9 @@ Kernel - kservice.c + scheduler.c 1 - ..\..\..\src\kservice.c + ..\..\..\src\scheduler.c @@ -613,41 +606,6 @@ ..\..\..\src\mempool.c - - - clock.c - 1 - ..\..\..\src\clock.c - - - - - object.c - 1 - ..\..\..\src\object.c - - - - - scheduler.c - 1 - ..\..\..\src\scheduler.c - - - - - components.c - 1 - ..\..\..\src\components.c - - - - - thread.c - 1 - ..\..\..\src\thread.c - - ipc.c @@ -655,13 +613,6 @@ ..\..\..\src\ipc.c - - - idle.c - 1 - ..\..\..\src\idle.c - - timer.c @@ -683,6 +634,41 @@ ..\..\..\src\mem.c + + + components.c + 1 + ..\..\..\src\components.c + + + + + thread.c + 1 + ..\..\..\src\thread.c + + + + + object.c + 1 + ..\..\..\src\object.c + + + + + clock.c + 1 + ..\..\..\src\clock.c + + + + + idle.c + 1 + ..\..\..\src\idle.c + + irq.c @@ -690,6 +676,13 @@ ..\..\..\src\irq.c + + + kservice.c + 1 + ..\..\..\src\kservice.c + + STM32_HAL diff --git a/bsp/stm32/stm32wle5-yizhilian-lm401/.config b/bsp/stm32/stm32wle5-yizhilian-lm401/.config index 0d903ce70d..b58bcdb3e1 100644 --- a/bsp/stm32/stm32wle5-yizhilian-lm401/.config +++ b/bsp/stm32/stm32wle5-yizhilian-lm401/.config @@ -7,7 +7,6 @@ # RT-Thread Kernel # CONFIG_RT_NAME_MAX=8 -# CONFIG_RT_USING_BIG_ENDIAN is not set # CONFIG_RT_USING_ARCH_DATA_TYPE is not set # CONFIG_RT_USING_SMP is not set CONFIG_RT_ALIGN_SIZE=4 @@ -157,7 +156,6 @@ CONFIG_RT_USING_PIN=y # # POSIX layer and C standard library # -# CONFIG_RT_USING_MODULE is not set CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8 # @@ -166,7 +164,9 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8 # CONFIG_RT_USING_POSIX_FS is not set # CONFIG_RT_USING_POSIX_DELAY is not set # CONFIG_RT_USING_POSIX_CLOCK is not set +# CONFIG_RT_USING_POSIX_TIMER is not set # CONFIG_RT_USING_PTHREADS is not set +# CONFIG_RT_USING_MODULE is not set # # Interprocess Communication (IPC) @@ -376,6 +376,7 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8 # CONFIG_PKG_USING_MCURSES is not set # CONFIG_PKG_USING_TERMBOX is not set # CONFIG_PKG_USING_VT100 is not set +# CONFIG_PKG_USING_QRCODE is not set # # tools packages @@ -386,7 +387,6 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8 # CONFIG_PKG_USING_SYSTEMVIEW is not set # CONFIG_PKG_USING_SEGGER_RTT is not set # CONFIG_PKG_USING_RDB is not set -# CONFIG_PKG_USING_QRCODE is not set # CONFIG_PKG_USING_ULOG_EASYFLASH is not set # CONFIG_PKG_USING_ULOG_FILE is not set # CONFIG_PKG_USING_LOGMGR is not set @@ -437,6 +437,7 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8 # CONFIG_PKG_USING_POSIX_GETLINE is not set # CONFIG_PKG_USING_POSIX_WCWIDTH is not set # CONFIG_PKG_USING_POSIX_ITOA is not set +# CONFIG_PKG_USING_POSIX_STRINGS is not set # # acceleration: Assembly language or algorithmic acceleration packages @@ -549,6 +550,7 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8 # CONFIG_PKG_USING_SSD1306 is not set # CONFIG_PKG_USING_QKEY is not set # CONFIG_PKG_USING_RS485 is not set +# CONFIG_PKG_USING_RS232 is not set # CONFIG_PKG_USING_NES is not set # CONFIG_PKG_USING_VIRTUAL_SENSOR is not set # CONFIG_PKG_USING_VDEVICE is not set @@ -636,6 +638,8 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8 # CONFIG_PKG_USING_LWGPS is not set # CONFIG_PKG_USING_STATE_MACHINE is not set # CONFIG_PKG_USING_DESIGN_PATTERN is not set +# CONFIG_PKG_USING_CONTROLLER is not set +# CONFIG_PKG_USING_PHASE_LOCKED_LOOP is not set CONFIG_SOC_FAMILY_STM32=y CONFIG_SOC_SERIES_STM32WL=y diff --git a/bsp/stm32/stm32wle5-yizhilian-lm401/project.uvprojx b/bsp/stm32/stm32wle5-yizhilian-lm401/project.uvprojx index 9f93d387c3..3e59054c8b 100644 --- a/bsp/stm32/stm32wle5-yizhilian-lm401/project.uvprojx +++ b/bsp/stm32/stm32wle5-yizhilian-lm401/project.uvprojx @@ -335,7 +335,7 @@ USE_HAL_DRIVER, __RTTHREAD__, STM32WLxx, RT_USING_ARM_LIBC, __CLK_TCK=RT_TICK_PER_SECOND - applications;.;..\..\..\components\libc\compilers\common;..\..\..\components\libc\compilers\common\nogcc;..\..\..\libcpu\arm\common;..\..\..\libcpu\arm\cortex-m4;..\..\..\components\drivers\include;..\..\..\components\drivers\include;..\..\..\components\drivers\include;board;board\CubeMX_Config\Inc;board\ports;..\libraries\HAL_Drivers;..\libraries\HAL_Drivers\config;..\..\..\components\finsh;.;..\..\..\include;..\..\..\components\libc\posix\io\poll;..\..\..\components\libc\posix\ipc;..\libraries\STM32WLxx_HAL\STM32WLxx_HAL_Driver\Inc;..\libraries\STM32WLxx_HAL\CMSIS\Device\ST\stm32lwxx\Include;..\libraries\STM32WLxx_HAL\CMSIS\Include;..\..\..\examples\utest\testcases\kernel + applications;.;..\..\..\components\libc\compilers\common;..\..\..\components\libc\compilers\common\extension;..\..\..\libcpu\arm\common;..\..\..\libcpu\arm\cortex-m4;..\..\..\components\drivers\include;..\..\..\components\drivers\include;..\..\..\components\drivers\include;board;board\CubeMX_Config\Inc;board\ports;..\libraries\HAL_Drivers;..\libraries\HAL_Drivers\config;..\..\..\components\finsh;.;..\..\..\include;..\..\..\components\libc\posix\io\poll;..\..\..\components\libc\posix\io\stdio;..\..\..\components\libc\posix\ipc;..\libraries\STM32WLxx_HAL\STM32WLxx_HAL_Driver\Inc;..\libraries\STM32WLxx_HAL\CMSIS\Device\ST\stm32lwxx\Include;..\libraries\STM32WLxx_HAL\CMSIS\Include;..\..\..\examples\utest\testcases\kernel @@ -390,9 +390,9 @@ Compiler - libc_syms.c + syscalls.c 1 - ..\..\..\components\libc\compilers\armlibc\libc_syms.c + ..\..\..\components\libc\compilers\armlibc\syscalls.c @@ -404,9 +404,9 @@ - syscalls.c + stdlib.c 1 - ..\..\..\components\libc\compilers\armlibc\syscalls.c + ..\..\..\components\libc\compilers\common\stdlib.c @@ -416,13 +416,6 @@ ..\..\..\components\libc\compilers\common\time.c - - - stdlib.c - 1 - ..\..\..\components\libc\compilers\common\stdlib.c - - CPU @@ -433,13 +426,6 @@ ..\..\..\libcpu\arm\common\showmem.c - - - backtrace.c - 1 - ..\..\..\libcpu\arm\common\backtrace.c - - div0.c @@ -449,9 +435,9 @@ - cpuport.c + backtrace.c 1 - ..\..\..\libcpu\arm\cortex-m4\cpuport.c + ..\..\..\libcpu\arm\common\backtrace.c @@ -461,9 +447,65 @@ ..\..\..\libcpu\arm\cortex-m4\context_rvds.S + + + cpuport.c + 1 + ..\..\..\libcpu\arm\cortex-m4\cpuport.c + + DeviceDrivers + + + pipe.c + 1 + ..\..\..\components\drivers\ipc\pipe.c + + + + + completion.c + 1 + ..\..\..\components\drivers\ipc\completion.c + + + + + workqueue.c + 1 + ..\..\..\components\drivers\ipc\workqueue.c + + + + + ringblk_buf.c + 1 + ..\..\..\components\drivers\ipc\ringblk_buf.c + + + + + ringbuffer.c + 1 + ..\..\..\components\drivers\ipc\ringbuffer.c + + + + + waitqueue.c + 1 + ..\..\..\components\drivers\ipc\waitqueue.c + + + + + dataqueue.c + 1 + ..\..\..\components\drivers\ipc\dataqueue.c + + pin.c @@ -478,55 +520,6 @@ ..\..\..\components\drivers\serial\serial.c - - - dataqueue.c - 1 - ..\..\..\components\drivers\src\dataqueue.c - - - - - ringbuffer.c - 1 - ..\..\..\components\drivers\src\ringbuffer.c - - - - - workqueue.c - 1 - ..\..\..\components\drivers\src\workqueue.c - - - - - pipe.c - 1 - ..\..\..\components\drivers\src\pipe.c - - - - - completion.c - 1 - ..\..\..\components\drivers\src\completion.c - - - - - ringblk_buf.c - 1 - ..\..\..\components\drivers\src\ringblk_buf.c - - - - - waitqueue.c - 1 - ..\..\..\components\drivers\src\waitqueue.c - - Drivers @@ -601,16 +594,16 @@ Kernel - components.c + mem.c 1 - ..\..\..\src\components.c + ..\..\..\src\mem.c - mem.c + irq.c 1 - ..\..\..\src\mem.c + ..\..\..\src\irq.c @@ -622,23 +615,9 @@ - object.c + idle.c 1 - ..\..\..\src\object.c - - - - - kservice.c - 1 - ..\..\..\src\kservice.c - - - - - thread.c - 1 - ..\..\..\src\thread.c + ..\..\..\src\idle.c @@ -650,16 +629,16 @@ - idle.c + scheduler.c 1 - ..\..\..\src\idle.c + ..\..\..\src\scheduler.c - scheduler.c + kservice.c 1 - ..\..\..\src\scheduler.c + ..\..\..\src\kservice.c @@ -678,16 +657,30 @@ - irq.c + device.c 1 - ..\..\..\src\irq.c + ..\..\..\src\device.c - device.c + components.c 1 - ..\..\..\src\device.c + ..\..\..\src\components.c + + + + + object.c + 1 + ..\..\..\src\object.c + + + + + thread.c + 1 + ..\..\..\src\thread.c diff --git a/bsp/swm320-lq100/.config b/bsp/swm320-lq100/.config index 0259dd7713..2fca2274ee 100644 --- a/bsp/swm320-lq100/.config +++ b/bsp/swm320-lq100/.config @@ -7,7 +7,6 @@ # RT-Thread Kernel # CONFIG_RT_NAME_MAX=8 -# CONFIG_RT_USING_BIG_ENDIAN is not set # CONFIG_RT_USING_ARCH_DATA_TYPE is not set # CONFIG_RT_USING_SMP is not set CONFIG_RT_ALIGN_SIZE=4 @@ -171,7 +170,6 @@ CONFIG_RT_USING_PIN=y # # POSIX layer and C standard library # -# CONFIG_RT_USING_MODULE is not set CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8 # @@ -180,7 +178,9 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8 # CONFIG_RT_USING_POSIX_FS is not set # CONFIG_RT_USING_POSIX_DELAY is not set # CONFIG_RT_USING_POSIX_CLOCK is not set +# CONFIG_RT_USING_POSIX_TIMER is not set # CONFIG_RT_USING_PTHREADS is not set +# CONFIG_RT_USING_MODULE is not set # # Interprocess Communication (IPC) @@ -390,6 +390,7 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8 # CONFIG_PKG_USING_MCURSES is not set # CONFIG_PKG_USING_TERMBOX is not set # CONFIG_PKG_USING_VT100 is not set +# CONFIG_PKG_USING_QRCODE is not set # # tools packages @@ -400,7 +401,6 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8 # CONFIG_PKG_USING_SYSTEMVIEW is not set # CONFIG_PKG_USING_SEGGER_RTT is not set # CONFIG_PKG_USING_RDB is not set -# CONFIG_PKG_USING_QRCODE is not set # CONFIG_PKG_USING_ULOG_EASYFLASH is not set # CONFIG_PKG_USING_ULOG_FILE is not set # CONFIG_PKG_USING_LOGMGR is not set @@ -451,6 +451,7 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8 # CONFIG_PKG_USING_POSIX_GETLINE is not set # CONFIG_PKG_USING_POSIX_WCWIDTH is not set # CONFIG_PKG_USING_POSIX_ITOA is not set +# CONFIG_PKG_USING_POSIX_STRINGS is not set # # acceleration: Assembly language or algorithmic acceleration packages @@ -563,6 +564,7 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8 # CONFIG_PKG_USING_SSD1306 is not set # CONFIG_PKG_USING_QKEY is not set # CONFIG_PKG_USING_RS485 is not set +# CONFIG_PKG_USING_RS232 is not set # CONFIG_PKG_USING_NES is not set # CONFIG_PKG_USING_VIRTUAL_SENSOR is not set # CONFIG_PKG_USING_VDEVICE is not set @@ -650,6 +652,8 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8 # CONFIG_PKG_USING_LWGPS is not set # CONFIG_PKG_USING_STATE_MACHINE is not set # CONFIG_PKG_USING_DESIGN_PATTERN is not set +# CONFIG_PKG_USING_CONTROLLER is not set +# CONFIG_PKG_USING_PHASE_LOCKED_LOOP is not set # # Hardware Drivers Config diff --git a/bsp/swm320-lq100/project.ewp b/bsp/swm320-lq100/project.ewp index b6bc6a7b68..39be8d9698 100644 --- a/bsp/swm320-lq100/project.ewp +++ b/bsp/swm320-lq100/project.ewp @@ -343,17 +343,18 @@ CCIncludePath2 $PROJ_DIR$\..\..\include + $PROJ_DIR$\..\..\components\libc\compilers\common\extension $PROJ_DIR$\..\..\components\libc\compilers\common $PROJ_DIR$\Libraries\CMSIS\DeviceSupport $PROJ_DIR$\Libraries\SWM320_StdPeriph_Driver $PROJ_DIR$\drivers - $PROJ_DIR$\..\..\components\libc\compilers\common\nogcc $PROJ_DIR$\..\..\components\libc\posix\ipc $PROJ_DIR$\..\..\examples\utest\testcases\kernel $PROJ_DIR$\. $PROJ_DIR$\applications $PROJ_DIR$\..\..\libcpu\arm\cortex-m4 $PROJ_DIR$\..\..\components\libc\posix\io\poll + $PROJ_DIR$\..\..\components\libc\posix\io\stdio $PROJ_DIR$\..\..\components\drivers\include $PROJ_DIR$\..\..\libcpu\arm\common $PROJ_DIR$\..\..\components\finsh @@ -1374,17 +1375,18 @@ CCIncludePath2 $PROJ_DIR$\..\..\include + $PROJ_DIR$\..\..\components\libc\compilers\common\extension $PROJ_DIR$\..\..\components\libc\compilers\common $PROJ_DIR$\Libraries\CMSIS\DeviceSupport $PROJ_DIR$\Libraries\SWM320_StdPeriph_Driver $PROJ_DIR$\drivers - $PROJ_DIR$\..\..\components\libc\compilers\common\nogcc $PROJ_DIR$\..\..\components\libc\posix\ipc $PROJ_DIR$\..\..\examples\utest\testcases\kernel $PROJ_DIR$\. $PROJ_DIR$\applications $PROJ_DIR$\..\..\libcpu\arm\cortex-m4 $PROJ_DIR$\..\..\components\libc\posix\io\poll + $PROJ_DIR$\..\..\components\libc\posix\io\stdio $PROJ_DIR$\..\..\components\drivers\include $PROJ_DIR$\..\..\libcpu\arm\common $PROJ_DIR$\..\..\components\finsh @@ -2071,47 +2073,47 @@ Compiler - - $PROJ_DIR$\..\..\components\libc\compilers\common\time.c - $PROJ_DIR$\..\..\components\libc\compilers\common\stdlib.c - $PROJ_DIR$\..\..\components\libc\compilers\dlib\syscall_remove.c - - - $PROJ_DIR$\..\..\components\libc\compilers\dlib\environ.c - - - $PROJ_DIR$\..\..\components\libc\compilers\dlib\syscall_close.c - - - $PROJ_DIR$\..\..\components\libc\compilers\dlib\syscall_open.c + $PROJ_DIR$\..\..\components\libc\compilers\common\time.c $PROJ_DIR$\..\..\components\libc\compilers\dlib\syscall_write.c + + $PROJ_DIR$\..\..\components\libc\compilers\dlib\syscall_close.c + $PROJ_DIR$\..\..\components\libc\compilers\dlib\syscall_lseek.c - $PROJ_DIR$\..\..\components\libc\compilers\dlib\syscall_mem.c + $PROJ_DIR$\..\..\components\libc\compilers\dlib\syscalls.c + + + $PROJ_DIR$\..\..\components\libc\compilers\dlib\syscall_open.c + + + $PROJ_DIR$\..\..\components\libc\compilers\dlib\syscall_remove.c $PROJ_DIR$\..\..\components\libc\compilers\dlib\syscall_read.c - $PROJ_DIR$\..\..\components\libc\compilers\dlib\syscalls.c + $PROJ_DIR$\..\..\components\libc\compilers\dlib\environ.c + + + $PROJ_DIR$\..\..\components\libc\compilers\dlib\syscall_mem.c CPU - $PROJ_DIR$\..\..\libcpu\arm\common\div0.c + $PROJ_DIR$\..\..\libcpu\arm\common\showmem.c - $PROJ_DIR$\..\..\libcpu\arm\common\showmem.c + $PROJ_DIR$\..\..\libcpu\arm\common\div0.c $PROJ_DIR$\..\..\libcpu\arm\common\backtrace.c @@ -2125,33 +2127,33 @@ DeviceDrivers + + $PROJ_DIR$\..\..\components\drivers\ipc\ringblk_buf.c + + + $PROJ_DIR$\..\..\components\drivers\ipc\completion.c + + + $PROJ_DIR$\..\..\components\drivers\ipc\waitqueue.c + + + $PROJ_DIR$\..\..\components\drivers\ipc\dataqueue.c + + + $PROJ_DIR$\..\..\components\drivers\ipc\ringbuffer.c + + + $PROJ_DIR$\..\..\components\drivers\ipc\pipe.c + + + $PROJ_DIR$\..\..\components\drivers\ipc\workqueue.c + $PROJ_DIR$\..\..\components\drivers\misc\pin.c $PROJ_DIR$\..\..\components\drivers\serial\serial.c - - $PROJ_DIR$\..\..\components\drivers\src\dataqueue.c - - - $PROJ_DIR$\..\..\components\drivers\src\completion.c - - - $PROJ_DIR$\..\..\components\drivers\src\ringblk_buf.c - - - $PROJ_DIR$\..\..\components\drivers\src\waitqueue.c - - - $PROJ_DIR$\..\..\components\drivers\src\ringbuffer.c - - - $PROJ_DIR$\..\..\components\drivers\src\pipe.c - - - $PROJ_DIR$\..\..\components\drivers\src\workqueue.c - Drivers @@ -2179,11 +2181,29 @@ Kernel + + $PROJ_DIR$\..\..\src\scheduler.c + + + $PROJ_DIR$\..\..\src\device.c + + + $PROJ_DIR$\..\..\src\memheap.c + + + $PROJ_DIR$\..\..\src\idle.c + + + $PROJ_DIR$\..\..\src\mempool.c + + + $PROJ_DIR$\..\..\src\irq.c + $PROJ_DIR$\..\..\src\thread.c - $PROJ_DIR$\..\..\src\timer.c + $PROJ_DIR$\..\..\src\kservice.c $PROJ_DIR$\..\..\src\object.c @@ -2191,102 +2211,84 @@ $PROJ_DIR$\..\..\src\ipc.c - - $PROJ_DIR$\..\..\src\irq.c - - - $PROJ_DIR$\..\..\src\memheap.c - - - $PROJ_DIR$\..\..\src\mempool.c - - - $PROJ_DIR$\..\..\src\idle.c - $PROJ_DIR$\..\..\src\components.c - - $PROJ_DIR$\..\..\src\device.c - - - $PROJ_DIR$\..\..\src\kservice.c - - - $PROJ_DIR$\..\..\src\scheduler.c - $PROJ_DIR$\..\..\src\clock.c + + $PROJ_DIR$\..\..\src\timer.c + Libraries - $PROJ_DIR$\Libraries\SWM320_StdPeriph_Driver\SWM320_dma.c - - - $PROJ_DIR$\Libraries\SWM320_StdPeriph_Driver\SWM320_sram.c - - - $PROJ_DIR$\Libraries\CMSIS\DeviceSupport\system_SWM320.c - - - $PROJ_DIR$\Libraries\SWM320_StdPeriph_Driver\SWM320_pwm.c + $PROJ_DIR$\Libraries\SWM320_StdPeriph_Driver\SWM320_spi.c $PROJ_DIR$\Libraries\SWM320_StdPeriph_Driver\SWM320_lcd.c - $PROJ_DIR$\Libraries\SWM320_StdPeriph_Driver\SWM320_flash.c - - - $PROJ_DIR$\Libraries\SWM320_StdPeriph_Driver\SWM320_i2c.c - - - $PROJ_DIR$\Libraries\SWM320_StdPeriph_Driver\SWM320_crc.c - - - $PROJ_DIR$\Libraries\SWM320_StdPeriph_Driver\SWM320_norflash.c - - - $PROJ_DIR$\Libraries\SWM320_StdPeriph_Driver\SWM320_uart.c - - - $PROJ_DIR$\Libraries\SWM320_StdPeriph_Driver\SWM320_can.c - - - $PROJ_DIR$\Libraries\SWM320_StdPeriph_Driver\SWM320_spi.c - - - $PROJ_DIR$\Libraries\SWM320_StdPeriph_Driver\SWM320_sdio.c - - - $PROJ_DIR$\Libraries\SWM320_StdPeriph_Driver\SWM320_adc.c + $PROJ_DIR$\Libraries\SWM320_StdPeriph_Driver\SWM320_rtc.c $PROJ_DIR$\Libraries\SWM320_StdPeriph_Driver\SWM320_sdram.c - $PROJ_DIR$\Libraries\SWM320_StdPeriph_Driver\SWM320_gpio.c + $PROJ_DIR$\Libraries\SWM320_StdPeriph_Driver\SWM320_sram.c - $PROJ_DIR$\Libraries\SWM320_StdPeriph_Driver\SWM320_rtc.c + $PROJ_DIR$\Libraries\SWM320_StdPeriph_Driver\SWM320_adc.c + + + $PROJ_DIR$\Libraries\SWM320_StdPeriph_Driver\SWM320_crc.c + + + $PROJ_DIR$\Libraries\SWM320_StdPeriph_Driver\SWM320_pwm.c + + + $PROJ_DIR$\Libraries\SWM320_StdPeriph_Driver\SWM320_i2c.c + + + $PROJ_DIR$\Libraries\SWM320_StdPeriph_Driver\SWM320_uart.c + + + $PROJ_DIR$\Libraries\SWM320_StdPeriph_Driver\SWM320_flash.c + + + $PROJ_DIR$\Libraries\SWM320_StdPeriph_Driver\SWM320_sdio.c + + + $PROJ_DIR$\Libraries\SWM320_StdPeriph_Driver\SWM320_norflash.c $PROJ_DIR$\Libraries\SWM320_StdPeriph_Driver\SWM320_exti.c - - $PROJ_DIR$\Libraries\SWM320_StdPeriph_Driver\SWM320_wdt.c - $PROJ_DIR$\Libraries\SWM320_StdPeriph_Driver\SWM320_port.c - $PROJ_DIR$\Libraries\CMSIS\DeviceSupport\startup\iar\startup_SWM320.s + $PROJ_DIR$\Libraries\SWM320_StdPeriph_Driver\SWM320_can.c + + + $PROJ_DIR$\Libraries\SWM320_StdPeriph_Driver\SWM320_gpio.c + + + $PROJ_DIR$\Libraries\SWM320_StdPeriph_Driver\SWM320_wdt.c + + + $PROJ_DIR$\Libraries\CMSIS\DeviceSupport\system_SWM320.c $PROJ_DIR$\Libraries\SWM320_StdPeriph_Driver\SWM320_timr.c + + $PROJ_DIR$\Libraries\SWM320_StdPeriph_Driver\SWM320_dma.c + + + $PROJ_DIR$\Libraries\CMSIS\DeviceSupport\startup\iar\startup_SWM320.s + POSIX diff --git a/bsp/swm320-lq100/project.uvproj b/bsp/swm320-lq100/project.uvproj index aaf264b795..fb794a1f9c 100644 --- a/bsp/swm320-lq100/project.uvproj +++ b/bsp/swm320-lq100/project.uvproj @@ -359,7 +359,7 @@ __RTTHREAD__, RT_USING_ARM_LIBC, __CLK_TCK=RT_TICK_PER_SECOND - applications;.;..\..\components\libc\compilers\common;..\..\components\libc\compilers\common\nogcc;..\..\libcpu\arm\common;..\..\libcpu\arm\cortex-m4;..\..\components\drivers\include;..\..\components\drivers\include;..\..\components\drivers\include;drivers;..\..\components\finsh;.;..\..\include;Libraries\CMSIS\CoreSupport;Libraries\CMSIS\DeviceSupport;Libraries\SWM320_StdPeriph_Driver;..\..\components\libc\posix\io\poll;..\..\components\libc\posix\ipc;..\..\examples\utest\testcases\kernel + applications;.;..\..\components\libc\compilers\common;..\..\components\libc\compilers\common\extension;..\..\libcpu\arm\common;..\..\libcpu\arm\cortex-m4;..\..\components\drivers\include;..\..\components\drivers\include;..\..\components\drivers\include;drivers;..\..\components\finsh;.;..\..\include;Libraries\CMSIS\CoreSupport;Libraries\CMSIS\DeviceSupport;Libraries\SWM320_StdPeriph_Driver;..\..\components\libc\posix\io\poll;..\..\components\libc\posix\io\stdio;..\..\components\libc\posix\ipc;..\..\examples\utest\testcases\kernel @@ -411,13 +411,6 @@ Compiler - - - libc_syms.c - 1 - ..\..\components\libc\compilers\armlibc\libc_syms.c - - syscall_mem.c @@ -432,13 +425,6 @@ ..\..\components\libc\compilers\armlibc\syscalls.c - - - stdlib.c - 1 - ..\..\components\libc\compilers\common\stdlib.c - - time.c @@ -446,9 +432,23 @@ ..\..\components\libc\compilers\common\time.c + + + stdlib.c + 1 + ..\..\components\libc\compilers\common\stdlib.c + + CPU + + + backtrace.c + 1 + ..\..\libcpu\arm\common\backtrace.c + + div0.c @@ -465,9 +465,9 @@ - backtrace.c + cpuport.c 1 - ..\..\libcpu\arm\common\backtrace.c + ..\..\libcpu\arm\cortex-m4\cpuport.c @@ -477,16 +477,58 @@ ..\..\libcpu\arm\cortex-m4\context_rvds.S - - - cpuport.c - 1 - ..\..\libcpu\arm\cortex-m4\cpuport.c - - DeviceDrivers + + + pipe.c + 1 + ..\..\components\drivers\ipc\pipe.c + + + + + completion.c + 1 + ..\..\components\drivers\ipc\completion.c + + + + + ringbuffer.c + 1 + ..\..\components\drivers\ipc\ringbuffer.c + + + + + waitqueue.c + 1 + ..\..\components\drivers\ipc\waitqueue.c + + + + + ringblk_buf.c + 1 + ..\..\components\drivers\ipc\ringblk_buf.c + + + + + dataqueue.c + 1 + ..\..\components\drivers\ipc\dataqueue.c + + + + + workqueue.c + 1 + ..\..\components\drivers\ipc\workqueue.c + + pin.c @@ -501,55 +543,6 @@ ..\..\components\drivers\serial\serial.c - - - dataqueue.c - 1 - ..\..\components\drivers\src\dataqueue.c - - - - - workqueue.c - 1 - ..\..\components\drivers\src\workqueue.c - - - - - ringbuffer.c - 1 - ..\..\components\drivers\src\ringbuffer.c - - - - - waitqueue.c - 1 - ..\..\components\drivers\src\waitqueue.c - - - - - pipe.c - 1 - ..\..\components\drivers\src\pipe.c - - - - - completion.c - 1 - ..\..\components\drivers\src\completion.c - - - - - ringblk_buf.c - 1 - ..\..\components\drivers\src\ringblk_buf.c - - Drivers @@ -603,30 +596,16 @@ Kernel - components.c + memheap.c 1 - ..\..\src\components.c + ..\..\src\memheap.c - kservice.c + scheduler.c 1 - ..\..\src\kservice.c - - - - - thread.c - 1 - ..\..\src\thread.c - - - - - idle.c - 1 - ..\..\src\idle.c + ..\..\src\scheduler.c @@ -645,9 +624,9 @@ - device.c + irq.c 1 - ..\..\src\device.c + ..\..\src\irq.c @@ -659,16 +638,23 @@ - scheduler.c + mempool.c 1 - ..\..\src\scheduler.c + ..\..\src\mempool.c - mempool.c + components.c 1 - ..\..\src\mempool.c + ..\..\src\components.c + + + + + device.c + 1 + ..\..\src\device.c @@ -680,16 +666,23 @@ - irq.c + thread.c 1 - ..\..\src\irq.c + ..\..\src\thread.c - memheap.c + kservice.c 1 - ..\..\src\memheap.c + ..\..\src\kservice.c + + + + + idle.c + 1 + ..\..\src\idle.c @@ -697,9 +690,9 @@ Libraries - SWM320_sdram.c + SWM320_spi.c 1 - Libraries\SWM320_StdPeriph_Driver\SWM320_sdram.c + Libraries\SWM320_StdPeriph_Driver\SWM320_spi.c @@ -711,30 +704,23 @@ - SWM320_pwm.c + SWM320_rtc.c 1 - Libraries\SWM320_StdPeriph_Driver\SWM320_pwm.c + Libraries\SWM320_StdPeriph_Driver\SWM320_rtc.c - SWM320_exti.c + SWM320_adc.c 1 - Libraries\SWM320_StdPeriph_Driver\SWM320_exti.c + Libraries\SWM320_StdPeriph_Driver\SWM320_adc.c - SWM320_flash.c + SWM320_crc.c 1 - Libraries\SWM320_StdPeriph_Driver\SWM320_flash.c - - - - - SWM320_sram.c - 1 - Libraries\SWM320_StdPeriph_Driver\SWM320_sram.c + Libraries\SWM320_StdPeriph_Driver\SWM320_crc.c @@ -746,58 +732,9 @@ - SWM320_rtc.c + SWM320_timr.c 1 - Libraries\SWM320_StdPeriph_Driver\SWM320_rtc.c - - - - - SWM320_uart.c - 1 - Libraries\SWM320_StdPeriph_Driver\SWM320_uart.c - - - - - SWM320_norflash.c - 1 - Libraries\SWM320_StdPeriph_Driver\SWM320_norflash.c - - - - - system_SWM320.c - 1 - Libraries\CMSIS\DeviceSupport\system_SWM320.c - - - - - SWM320_port.c - 1 - Libraries\SWM320_StdPeriph_Driver\SWM320_port.c - - - - - startup_SWM320.s - 2 - Libraries\CMSIS\DeviceSupport\startup\arm\startup_SWM320.s - - - - - SWM320_wdt.c - 1 - Libraries\SWM320_StdPeriph_Driver\SWM320_wdt.c - - - - - SWM320_adc.c - 1 - Libraries\SWM320_StdPeriph_Driver\SWM320_adc.c + Libraries\SWM320_StdPeriph_Driver\SWM320_timr.c @@ -816,9 +753,65 @@ - SWM320_timr.c + system_SWM320.c 1 - Libraries\SWM320_StdPeriph_Driver\SWM320_timr.c + Libraries\CMSIS\DeviceSupport\system_SWM320.c + + + + + SWM320_norflash.c + 1 + Libraries\SWM320_StdPeriph_Driver\SWM320_norflash.c + + + + + SWM320_sram.c + 1 + Libraries\SWM320_StdPeriph_Driver\SWM320_sram.c + + + + + SWM320_flash.c + 1 + Libraries\SWM320_StdPeriph_Driver\SWM320_flash.c + + + + + startup_SWM320.s + 2 + Libraries\CMSIS\DeviceSupport\startup\arm\startup_SWM320.s + + + + + SWM320_sdram.c + 1 + Libraries\SWM320_StdPeriph_Driver\SWM320_sdram.c + + + + + SWM320_pwm.c + 1 + Libraries\SWM320_StdPeriph_Driver\SWM320_pwm.c + + + + + SWM320_dma.c + 1 + Libraries\SWM320_StdPeriph_Driver\SWM320_dma.c + + + + + SWM320_port.c + 1 + Libraries\SWM320_StdPeriph_Driver\SWM320_port.c @@ -830,23 +823,23 @@ - SWM320_crc.c + SWM320_uart.c 1 - Libraries\SWM320_StdPeriph_Driver\SWM320_crc.c + Libraries\SWM320_StdPeriph_Driver\SWM320_uart.c - SWM320_spi.c + SWM320_exti.c 1 - Libraries\SWM320_StdPeriph_Driver\SWM320_spi.c + Libraries\SWM320_StdPeriph_Driver\SWM320_exti.c - SWM320_dma.c + SWM320_wdt.c 1 - Libraries\SWM320_StdPeriph_Driver\SWM320_dma.c + Libraries\SWM320_StdPeriph_Driver\SWM320_wdt.c diff --git a/bsp/swm320-lq100/project.uvprojx b/bsp/swm320-lq100/project.uvprojx index 2010520969..0df5d17e99 100644 --- a/bsp/swm320-lq100/project.uvprojx +++ b/bsp/swm320-lq100/project.uvprojx @@ -335,7 +335,7 @@ __RTTHREAD__, RT_USING_ARM_LIBC, __CLK_TCK=RT_TICK_PER_SECOND - applications;.;..\..\components\libc\compilers\common;..\..\components\libc\compilers\common\nogcc;..\..\libcpu\arm\common;..\..\libcpu\arm\cortex-m4;..\..\components\drivers\include;..\..\components\drivers\include;..\..\components\drivers\include;drivers;..\..\components\finsh;.;..\..\include;Libraries\CMSIS\CoreSupport;Libraries\CMSIS\DeviceSupport;Libraries\SWM320_StdPeriph_Driver;..\..\components\libc\posix\io\poll;..\..\components\libc\posix\ipc;..\..\examples\utest\testcases\kernel + applications;.;..\..\components\libc\compilers\common;..\..\components\libc\compilers\common\extension;..\..\libcpu\arm\common;..\..\libcpu\arm\cortex-m4;..\..\components\drivers\include;..\..\components\drivers\include;..\..\components\drivers\include;drivers;..\..\components\finsh;.;..\..\include;Libraries\CMSIS\CoreSupport;Libraries\CMSIS\DeviceSupport;Libraries\SWM320_StdPeriph_Driver;..\..\components\libc\posix\io\poll;..\..\components\libc\posix\io\stdio;..\..\components\libc\posix\ipc;..\..\examples\utest\testcases\kernel @@ -390,9 +390,9 @@ Compiler - libc_syms.c + syscalls.c 1 - ..\..\components\libc\compilers\armlibc\libc_syms.c + ..\..\components\libc\compilers\armlibc\syscalls.c @@ -404,9 +404,9 @@ - syscalls.c + stdlib.c 1 - ..\..\components\libc\compilers\armlibc\syscalls.c + ..\..\components\libc\compilers\common\stdlib.c @@ -416,13 +416,6 @@ ..\..\components\libc\compilers\common\time.c - - - stdlib.c - 1 - ..\..\components\libc\compilers\common\stdlib.c - - CPU @@ -433,13 +426,6 @@ ..\..\libcpu\arm\common\backtrace.c - - - showmem.c - 1 - ..\..\libcpu\arm\common\showmem.c - - div0.c @@ -449,9 +435,9 @@ - cpuport.c + showmem.c 1 - ..\..\libcpu\arm\cortex-m4\cpuport.c + ..\..\libcpu\arm\common\showmem.c @@ -461,9 +447,65 @@ ..\..\libcpu\arm\cortex-m4\context_rvds.S + + + cpuport.c + 1 + ..\..\libcpu\arm\cortex-m4\cpuport.c + + DeviceDrivers + + + completion.c + 1 + ..\..\components\drivers\ipc\completion.c + + + + + workqueue.c + 1 + ..\..\components\drivers\ipc\workqueue.c + + + + + ringbuffer.c + 1 + ..\..\components\drivers\ipc\ringbuffer.c + + + + + pipe.c + 1 + ..\..\components\drivers\ipc\pipe.c + + + + + dataqueue.c + 1 + ..\..\components\drivers\ipc\dataqueue.c + + + + + waitqueue.c + 1 + ..\..\components\drivers\ipc\waitqueue.c + + + + + ringblk_buf.c + 1 + ..\..\components\drivers\ipc\ringblk_buf.c + + pin.c @@ -478,55 +520,6 @@ ..\..\components\drivers\serial\serial.c - - - workqueue.c - 1 - ..\..\components\drivers\src\workqueue.c - - - - - pipe.c - 1 - ..\..\components\drivers\src\pipe.c - - - - - completion.c - 1 - ..\..\components\drivers\src\completion.c - - - - - ringbuffer.c - 1 - ..\..\components\drivers\src\ringbuffer.c - - - - - ringblk_buf.c - 1 - ..\..\components\drivers\src\ringblk_buf.c - - - - - dataqueue.c - 1 - ..\..\components\drivers\src\dataqueue.c - - - - - waitqueue.c - 1 - ..\..\components\drivers\src\waitqueue.c - - Drivers @@ -580,23 +573,9 @@ Kernel - timer.c + clock.c 1 - ..\..\src\timer.c - - - - - scheduler.c - 1 - ..\..\src\scheduler.c - - - - - memheap.c - 1 - ..\..\src\memheap.c + ..\..\src\clock.c @@ -606,6 +585,13 @@ ..\..\src\object.c + + + thread.c + 1 + ..\..\src\thread.c + + components.c @@ -613,6 +599,48 @@ ..\..\src\components.c + + + scheduler.c + 1 + ..\..\src\scheduler.c + + + + + irq.c + 1 + ..\..\src\irq.c + + + + + idle.c + 1 + ..\..\src\idle.c + + + + + memheap.c + 1 + ..\..\src\memheap.c + + + + + timer.c + 1 + ..\..\src\timer.c + + + + + device.c + 1 + ..\..\src\device.c + + kservice.c @@ -627,34 +655,6 @@ ..\..\src\ipc.c - - - clock.c - 1 - ..\..\src\clock.c - - - - - thread.c - 1 - ..\..\src\thread.c - - - - - idle.c - 1 - ..\..\src\idle.c - - - - - device.c - 1 - ..\..\src\device.c - - mempool.c @@ -662,28 +662,28 @@ ..\..\src\mempool.c - - - irq.c - 1 - ..\..\src\irq.c - - Libraries - SWM320_sdio.c + SWM320_rtc.c 1 - Libraries\SWM320_StdPeriph_Driver\SWM320_sdio.c + Libraries\SWM320_StdPeriph_Driver\SWM320_rtc.c - system_SWM320.c + SWM320_flash.c 1 - Libraries\CMSIS\DeviceSupport\system_SWM320.c + Libraries\SWM320_StdPeriph_Driver\SWM320_flash.c + + + + + SWM320_sdio.c + 1 + Libraries\SWM320_StdPeriph_Driver\SWM320_sdio.c @@ -702,37 +702,16 @@ - SWM320_dma.c + SWM320_sram.c 1 - Libraries\SWM320_StdPeriph_Driver\SWM320_dma.c + Libraries\SWM320_StdPeriph_Driver\SWM320_sram.c - SWM320_port.c + SWM320_lcd.c 1 - Libraries\SWM320_StdPeriph_Driver\SWM320_port.c - - - - - SWM320_flash.c - 1 - Libraries\SWM320_StdPeriph_Driver\SWM320_flash.c - - - - - SWM320_can.c - 1 - Libraries\SWM320_StdPeriph_Driver\SWM320_can.c - - - - - SWM320_uart.c - 1 - Libraries\SWM320_StdPeriph_Driver\SWM320_uart.c + Libraries\SWM320_StdPeriph_Driver\SWM320_lcd.c @@ -744,65 +723,16 @@ - SWM320_wdt.c + SWM320_uart.c 1 - Libraries\SWM320_StdPeriph_Driver\SWM320_wdt.c + Libraries\SWM320_StdPeriph_Driver\SWM320_uart.c - SWM320_spi.c + system_SWM320.c 1 - Libraries\SWM320_StdPeriph_Driver\SWM320_spi.c - - - - - SWM320_adc.c - 1 - Libraries\SWM320_StdPeriph_Driver\SWM320_adc.c - - - - - SWM320_sram.c - 1 - Libraries\SWM320_StdPeriph_Driver\SWM320_sram.c - - - - - startup_SWM320.s - 2 - Libraries\CMSIS\DeviceSupport\startup\arm\startup_SWM320.s - - - - - SWM320_crc.c - 1 - Libraries\SWM320_StdPeriph_Driver\SWM320_crc.c - - - - - SWM320_rtc.c - 1 - Libraries\SWM320_StdPeriph_Driver\SWM320_rtc.c - - - - - SWM320_exti.c - 1 - Libraries\SWM320_StdPeriph_Driver\SWM320_exti.c - - - - - SWM320_sdram.c - 1 - Libraries\SWM320_StdPeriph_Driver\SWM320_sdram.c + Libraries\CMSIS\DeviceSupport\system_SWM320.c @@ -814,16 +744,79 @@ - SWM320_gpio.c + SWM320_adc.c 1 - Libraries\SWM320_StdPeriph_Driver\SWM320_gpio.c + Libraries\SWM320_StdPeriph_Driver\SWM320_adc.c - SWM320_lcd.c + startup_SWM320.s + 2 + Libraries\CMSIS\DeviceSupport\startup\arm\startup_SWM320.s + + + + + SWM320_dma.c 1 - Libraries\SWM320_StdPeriph_Driver\SWM320_lcd.c + Libraries\SWM320_StdPeriph_Driver\SWM320_dma.c + + + + + SWM320_sdram.c + 1 + Libraries\SWM320_StdPeriph_Driver\SWM320_sdram.c + + + + + SWM320_crc.c + 1 + Libraries\SWM320_StdPeriph_Driver\SWM320_crc.c + + + + + SWM320_spi.c + 1 + Libraries\SWM320_StdPeriph_Driver\SWM320_spi.c + + + + + SWM320_exti.c + 1 + Libraries\SWM320_StdPeriph_Driver\SWM320_exti.c + + + + + SWM320_port.c + 1 + Libraries\SWM320_StdPeriph_Driver\SWM320_port.c + + + + + SWM320_can.c + 1 + Libraries\SWM320_StdPeriph_Driver\SWM320_can.c + + + + + SWM320_wdt.c + 1 + Libraries\SWM320_StdPeriph_Driver\SWM320_wdt.c + + + + + SWM320_gpio.c + 1 + Libraries\SWM320_StdPeriph_Driver\SWM320_gpio.c diff --git a/bsp/swm320/.config b/bsp/swm320/.config index 2aa8e98e9a..1693f71870 100644 --- a/bsp/swm320/.config +++ b/bsp/swm320/.config @@ -7,7 +7,6 @@ # RT-Thread Kernel # CONFIG_RT_NAME_MAX=8 -# CONFIG_RT_USING_BIG_ENDIAN is not set # CONFIG_RT_USING_ARCH_DATA_TYPE is not set # CONFIG_RT_USING_SMP is not set CONFIG_RT_ALIGN_SIZE=4 @@ -171,7 +170,6 @@ CONFIG_RT_USING_PIN=y # # POSIX layer and C standard library # -# CONFIG_RT_USING_MODULE is not set CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8 # @@ -180,7 +178,9 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8 # CONFIG_RT_USING_POSIX_FS is not set # CONFIG_RT_USING_POSIX_DELAY is not set # CONFIG_RT_USING_POSIX_CLOCK is not set +# CONFIG_RT_USING_POSIX_TIMER is not set # CONFIG_RT_USING_PTHREADS is not set +# CONFIG_RT_USING_MODULE is not set # # Interprocess Communication (IPC) @@ -390,6 +390,7 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8 # CONFIG_PKG_USING_MCURSES is not set # CONFIG_PKG_USING_TERMBOX is not set # CONFIG_PKG_USING_VT100 is not set +# CONFIG_PKG_USING_QRCODE is not set # # tools packages @@ -400,7 +401,6 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8 # CONFIG_PKG_USING_SYSTEMVIEW is not set # CONFIG_PKG_USING_SEGGER_RTT is not set # CONFIG_PKG_USING_RDB is not set -# CONFIG_PKG_USING_QRCODE is not set # CONFIG_PKG_USING_ULOG_EASYFLASH is not set # CONFIG_PKG_USING_ULOG_FILE is not set # CONFIG_PKG_USING_LOGMGR is not set @@ -451,6 +451,7 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8 # CONFIG_PKG_USING_POSIX_GETLINE is not set # CONFIG_PKG_USING_POSIX_WCWIDTH is not set # CONFIG_PKG_USING_POSIX_ITOA is not set +# CONFIG_PKG_USING_POSIX_STRINGS is not set # # acceleration: Assembly language or algorithmic acceleration packages @@ -563,6 +564,7 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8 # CONFIG_PKG_USING_SSD1306 is not set # CONFIG_PKG_USING_QKEY is not set # CONFIG_PKG_USING_RS485 is not set +# CONFIG_PKG_USING_RS232 is not set # CONFIG_PKG_USING_NES is not set # CONFIG_PKG_USING_VIRTUAL_SENSOR is not set # CONFIG_PKG_USING_VDEVICE is not set @@ -650,6 +652,8 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8 # CONFIG_PKG_USING_LWGPS is not set # CONFIG_PKG_USING_STATE_MACHINE is not set # CONFIG_PKG_USING_DESIGN_PATTERN is not set +# CONFIG_PKG_USING_CONTROLLER is not set +# CONFIG_PKG_USING_PHASE_LOCKED_LOOP is not set # # Hardware Drivers Config diff --git a/bsp/swm320/project.ewp b/bsp/swm320/project.ewp index ef16667bb9..8377c5e278 100644 --- a/bsp/swm320/project.ewp +++ b/bsp/swm320/project.ewp @@ -343,17 +343,18 @@ CCIncludePath2 $PROJ_DIR$\..\..\include + $PROJ_DIR$\..\..\components\libc\compilers\common\extension $PROJ_DIR$\..\..\components\libc\compilers\common $PROJ_DIR$\libraries\CMSIS\DeviceSupport $PROJ_DIR$\libraries\SWM320_StdPeriph_Driver $PROJ_DIR$\drivers - $PROJ_DIR$\..\..\components\libc\compilers\common\nogcc $PROJ_DIR$\..\..\components\libc\posix\ipc $PROJ_DIR$\..\..\examples\utest\testcases\kernel $PROJ_DIR$\. $PROJ_DIR$\applications $PROJ_DIR$\..\..\libcpu\arm\cortex-m4 $PROJ_DIR$\..\..\components\libc\posix\io\poll + $PROJ_DIR$\..\..\components\libc\posix\io\stdio $PROJ_DIR$\..\..\components\drivers\include $PROJ_DIR$\..\..\libcpu\arm\common $PROJ_DIR$\..\..\components\finsh @@ -1374,17 +1375,18 @@ CCIncludePath2 $PROJ_DIR$\..\..\include + $PROJ_DIR$\..\..\components\libc\compilers\common\extension $PROJ_DIR$\..\..\components\libc\compilers\common $PROJ_DIR$\libraries\CMSIS\DeviceSupport $PROJ_DIR$\libraries\SWM320_StdPeriph_Driver $PROJ_DIR$\drivers - $PROJ_DIR$\..\..\components\libc\compilers\common\nogcc $PROJ_DIR$\..\..\components\libc\posix\ipc $PROJ_DIR$\..\..\examples\utest\testcases\kernel $PROJ_DIR$\. $PROJ_DIR$\applications $PROJ_DIR$\..\..\libcpu\arm\cortex-m4 $PROJ_DIR$\..\..\components\libc\posix\io\poll + $PROJ_DIR$\..\..\components\libc\posix\io\stdio $PROJ_DIR$\..\..\components\drivers\include $PROJ_DIR$\..\..\libcpu\arm\common $PROJ_DIR$\..\..\components\finsh @@ -2078,25 +2080,25 @@ $PROJ_DIR$\..\..\components\libc\compilers\common\stdlib.c - $PROJ_DIR$\..\..\components\libc\compilers\dlib\syscall_open.c - - - $PROJ_DIR$\..\..\components\libc\compilers\dlib\syscall_lseek.c - - - $PROJ_DIR$\..\..\components\libc\compilers\dlib\syscall_write.c - - - $PROJ_DIR$\..\..\components\libc\compilers\dlib\syscall_close.c - - - $PROJ_DIR$\..\..\components\libc\compilers\dlib\syscall_remove.c + $PROJ_DIR$\..\..\components\libc\compilers\dlib\syscall_read.c $PROJ_DIR$\..\..\components\libc\compilers\dlib\syscall_mem.c - $PROJ_DIR$\..\..\components\libc\compilers\dlib\syscall_read.c + $PROJ_DIR$\..\..\components\libc\compilers\dlib\syscall_remove.c + + + $PROJ_DIR$\..\..\components\libc\compilers\dlib\syscall_close.c + + + $PROJ_DIR$\..\..\components\libc\compilers\dlib\syscall_write.c + + + $PROJ_DIR$\..\..\components\libc\compilers\dlib\syscall_open.c + + + $PROJ_DIR$\..\..\components\libc\compilers\dlib\syscall_lseek.c $PROJ_DIR$\..\..\components\libc\compilers\dlib\syscalls.c @@ -2107,6 +2109,9 @@ CPU + + $PROJ_DIR$\..\..\libcpu\arm\common\backtrace.c + $PROJ_DIR$\..\..\libcpu\arm\common\showmem.c @@ -2114,44 +2119,41 @@ $PROJ_DIR$\..\..\libcpu\arm\common\div0.c - $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\cortex-m4\context_iar.S - DeviceDrivers + + $PROJ_DIR$\..\..\components\drivers\ipc\workqueue.c + + + $PROJ_DIR$\..\..\components\drivers\ipc\pipe.c + + + $PROJ_DIR$\..\..\components\drivers\ipc\waitqueue.c + + + $PROJ_DIR$\..\..\components\drivers\ipc\completion.c + + + $PROJ_DIR$\..\..\components\drivers\ipc\ringbuffer.c + + + $PROJ_DIR$\..\..\components\drivers\ipc\ringblk_buf.c + + + $PROJ_DIR$\..\..\components\drivers\ipc\dataqueue.c + $PROJ_DIR$\..\..\components\drivers\misc\pin.c $PROJ_DIR$\..\..\components\drivers\serial\serial.c - - $PROJ_DIR$\..\..\components\drivers\src\ringblk_buf.c - - - $PROJ_DIR$\..\..\components\drivers\src\waitqueue.c - - - $PROJ_DIR$\..\..\components\drivers\src\ringbuffer.c - - - $PROJ_DIR$\..\..\components\drivers\src\pipe.c - - - $PROJ_DIR$\..\..\components\drivers\src\completion.c - - - $PROJ_DIR$\..\..\components\drivers\src\dataqueue.c - - - $PROJ_DIR$\..\..\components\drivers\src\workqueue.c - Drivers @@ -2180,110 +2182,110 @@ Kernel - $PROJ_DIR$\..\..\src\scheduler.c - - - $PROJ_DIR$\..\..\src\kservice.c - - - $PROJ_DIR$\..\..\src\mempool.c - - - $PROJ_DIR$\..\..\src\idle.c - - - $PROJ_DIR$\..\..\src\object.c - - - $PROJ_DIR$\..\..\src\memheap.c - - - $PROJ_DIR$\..\..\src\irq.c + $PROJ_DIR$\..\..\src\timer.c $PROJ_DIR$\..\..\src\clock.c - - $PROJ_DIR$\..\..\src\timer.c - $PROJ_DIR$\..\..\src\ipc.c - $PROJ_DIR$\..\..\src\device.c + $PROJ_DIR$\..\..\src\mempool.c $PROJ_DIR$\..\..\src\components.c + + $PROJ_DIR$\..\..\src\device.c + + + $PROJ_DIR$\..\..\src\irq.c + + + $PROJ_DIR$\..\..\src\scheduler.c + + + $PROJ_DIR$\..\..\src\memheap.c + + + $PROJ_DIR$\..\..\src\kservice.c + $PROJ_DIR$\..\..\src\thread.c + + $PROJ_DIR$\..\..\src\object.c + + + $PROJ_DIR$\..\..\src\idle.c + Libraries - $PROJ_DIR$\libraries\SWM320_StdPeriph_Driver\SWM320_lcd.c + $PROJ_DIR$\libraries\SWM320_StdPeriph_Driver\SWM320_crc.c - $PROJ_DIR$\libraries\SWM320_StdPeriph_Driver\SWM320_spi.c + $PROJ_DIR$\libraries\SWM320_StdPeriph_Driver\SWM320_i2c.c - $PROJ_DIR$\libraries\SWM320_StdPeriph_Driver\SWM320_adc.c + $PROJ_DIR$\libraries\SWM320_StdPeriph_Driver\SWM320_uart.c $PROJ_DIR$\libraries\SWM320_StdPeriph_Driver\SWM320_gpio.c + + $PROJ_DIR$\libraries\SWM320_StdPeriph_Driver\SWM320_wdt.c + + + $PROJ_DIR$\libraries\SWM320_StdPeriph_Driver\SWM320_adc.c + + + $PROJ_DIR$\libraries\SWM320_StdPeriph_Driver\SWM320_pwm.c + + + $PROJ_DIR$\libraries\SWM320_StdPeriph_Driver\SWM320_norflash.c + + + $PROJ_DIR$\libraries\SWM320_StdPeriph_Driver\SWM320_flash.c + + + $PROJ_DIR$\libraries\SWM320_StdPeriph_Driver\SWM320_port.c + $PROJ_DIR$\libraries\SWM320_StdPeriph_Driver\SWM320_rtc.c + + $PROJ_DIR$\libraries\SWM320_StdPeriph_Driver\SWM320_sram.c + + + $PROJ_DIR$\libraries\SWM320_StdPeriph_Driver\SWM320_spi.c + + + $PROJ_DIR$\libraries\SWM320_StdPeriph_Driver\SWM320_dma.c + + + $PROJ_DIR$\libraries\CMSIS\DeviceSupport\system_SWM320.c + + + $PROJ_DIR$\libraries\SWM320_StdPeriph_Driver\SWM320_can.c + + + $PROJ_DIR$\libraries\SWM320_StdPeriph_Driver\SWM320_sdio.c + + + $PROJ_DIR$\libraries\SWM320_StdPeriph_Driver\SWM320_sdram.c + + + $PROJ_DIR$\libraries\SWM320_StdPeriph_Driver\SWM320_lcd.c + $PROJ_DIR$\libraries\SWM320_StdPeriph_Driver\SWM320_timr.c $PROJ_DIR$\libraries\SWM320_StdPeriph_Driver\SWM320_exti.c - - $PROJ_DIR$\libraries\SWM320_StdPeriph_Driver\SWM320_sdio.c - - - $PROJ_DIR$\libraries\SWM320_StdPeriph_Driver\SWM320_port.c - - - $PROJ_DIR$\libraries\SWM320_StdPeriph_Driver\SWM320_i2c.c - - - $PROJ_DIR$\libraries\SWM320_StdPeriph_Driver\SWM320_flash.c - - - $PROJ_DIR$\libraries\SWM320_StdPeriph_Driver\SWM320_norflash.c - - - $PROJ_DIR$\libraries\SWM320_StdPeriph_Driver\SWM320_wdt.c - - - $PROJ_DIR$\libraries\CMSIS\DeviceSupport\system_SWM320.c - - - $PROJ_DIR$\libraries\SWM320_StdPeriph_Driver\SWM320_sdram.c - - - $PROJ_DIR$\libraries\SWM320_StdPeriph_Driver\SWM320_sram.c - - - $PROJ_DIR$\libraries\SWM320_StdPeriph_Driver\SWM320_can.c - - - $PROJ_DIR$\libraries\SWM320_StdPeriph_Driver\SWM320_dma.c - - - $PROJ_DIR$\libraries\SWM320_StdPeriph_Driver\SWM320_pwm.c - - - $PROJ_DIR$\libraries\SWM320_StdPeriph_Driver\SWM320_crc.c - - - $PROJ_DIR$\libraries\SWM320_StdPeriph_Driver\SWM320_uart.c - $PROJ_DIR$\libraries\CMSIS\DeviceSupport\startup\iar\startup_SWM320.s diff --git a/bsp/swm320/project.uvproj b/bsp/swm320/project.uvproj index fd5de34f8b..ce72307de5 100644 --- a/bsp/swm320/project.uvproj +++ b/bsp/swm320/project.uvproj @@ -359,7 +359,7 @@ __RTTHREAD__, RT_USING_ARM_LIBC, __CLK_TCK=RT_TICK_PER_SECOND - applications;..\..\components\libc\compilers\common;..\..\components\libc\compilers\common\nogcc;..\..\libcpu\arm\common;..\..\libcpu\arm\cortex-m4;..\..\components\drivers\include;..\..\components\drivers\include;..\..\components\drivers\include;drivers;..\..\components\finsh;.;..\..\include;libraries\CMSIS\CoreSupport;libraries\CMSIS\DeviceSupport;libraries\SWM320_StdPeriph_Driver;..\..\components\libc\posix\io\poll;..\..\components\libc\posix\ipc;..\..\examples\utest\testcases\kernel + applications;..\..\components\libc\compilers\common;..\..\components\libc\compilers\common\extension;..\..\libcpu\arm\common;..\..\libcpu\arm\cortex-m4;..\..\components\drivers\include;..\..\components\drivers\include;..\..\components\drivers\include;drivers;..\..\components\finsh;.;..\..\include;libraries\CMSIS\CoreSupport;libraries\CMSIS\DeviceSupport;libraries\SWM320_StdPeriph_Driver;..\..\components\libc\posix\io\poll;..\..\components\libc\posix\io\stdio;..\..\components\libc\posix\ipc;..\..\examples\utest\testcases\kernel @@ -425,13 +425,6 @@ ..\..\components\libc\compilers\armlibc\syscalls.c - - - libc_syms.c - 1 - ..\..\components\libc\compilers\armlibc\libc_syms.c - - time.c @@ -451,16 +444,16 @@ CPU - showmem.c + backtrace.c 1 - ..\..\libcpu\arm\common\showmem.c + ..\..\libcpu\arm\common\backtrace.c - backtrace.c + showmem.c 1 - ..\..\libcpu\arm\common\backtrace.c + ..\..\libcpu\arm\common\showmem.c @@ -470,13 +463,6 @@ ..\..\libcpu\arm\common\div0.c - - - cpuport.c - 1 - ..\..\libcpu\arm\cortex-m4\cpuport.c - - context_rvds.S @@ -484,9 +470,65 @@ ..\..\libcpu\arm\cortex-m4\context_rvds.S + + + cpuport.c + 1 + ..\..\libcpu\arm\cortex-m4\cpuport.c + + DeviceDrivers + + + waitqueue.c + 1 + ..\..\components\drivers\ipc\waitqueue.c + + + + + pipe.c + 1 + ..\..\components\drivers\ipc\pipe.c + + + + + workqueue.c + 1 + ..\..\components\drivers\ipc\workqueue.c + + + + + completion.c + 1 + ..\..\components\drivers\ipc\completion.c + + + + + ringblk_buf.c + 1 + ..\..\components\drivers\ipc\ringblk_buf.c + + + + + dataqueue.c + 1 + ..\..\components\drivers\ipc\dataqueue.c + + + + + ringbuffer.c + 1 + ..\..\components\drivers\ipc\ringbuffer.c + + pin.c @@ -501,55 +543,6 @@ ..\..\components\drivers\serial\serial.c - - - dataqueue.c - 1 - ..\..\components\drivers\src\dataqueue.c - - - - - ringblk_buf.c - 1 - ..\..\components\drivers\src\ringblk_buf.c - - - - - ringbuffer.c - 1 - ..\..\components\drivers\src\ringbuffer.c - - - - - pipe.c - 1 - ..\..\components\drivers\src\pipe.c - - - - - waitqueue.c - 1 - ..\..\components\drivers\src\waitqueue.c - - - - - workqueue.c - 1 - ..\..\components\drivers\src\workqueue.c - - - - - completion.c - 1 - ..\..\components\drivers\src\completion.c - - Drivers @@ -603,44 +596,9 @@ Kernel - components.c + object.c 1 - ..\..\src\components.c - - - - - mempool.c - 1 - ..\..\src\mempool.c - - - - - scheduler.c - 1 - ..\..\src\scheduler.c - - - - - ipc.c - 1 - ..\..\src\ipc.c - - - - - idle.c - 1 - ..\..\src\idle.c - - - - - thread.c - 1 - ..\..\src\thread.c + ..\..\src\object.c @@ -650,27 +608,6 @@ ..\..\src\memheap.c - - - clock.c - 1 - ..\..\src\clock.c - - - - - timer.c - 1 - ..\..\src\timer.c - - - - - object.c - 1 - ..\..\src\object.c - - kservice.c @@ -678,6 +615,34 @@ ..\..\src\kservice.c + + + mempool.c + 1 + ..\..\src\mempool.c + + + + + idle.c + 1 + ..\..\src\idle.c + + + + + components.c + 1 + ..\..\src\components.c + + + + + device.c + 1 + ..\..\src\device.c + + irq.c @@ -687,42 +652,42 @@ - device.c + timer.c 1 - ..\..\src\device.c + ..\..\src\timer.c + + + + + ipc.c + 1 + ..\..\src\ipc.c + + + + + scheduler.c + 1 + ..\..\src\scheduler.c + + + + + thread.c + 1 + ..\..\src\thread.c + + + + + clock.c + 1 + ..\..\src\clock.c Libraries - - - SWM320_flash.c - 1 - libraries\SWM320_StdPeriph_Driver\SWM320_flash.c - - - - - SWM320_spi.c - 1 - libraries\SWM320_StdPeriph_Driver\SWM320_spi.c - - - - - SWM320_gpio.c - 1 - libraries\SWM320_StdPeriph_Driver\SWM320_gpio.c - - - - - SWM320_sram.c - 1 - libraries\SWM320_StdPeriph_Driver\SWM320_sram.c - - SWM320_dma.c @@ -730,104 +695,6 @@ libraries\SWM320_StdPeriph_Driver\SWM320_dma.c - - - SWM320_sdram.c - 1 - libraries\SWM320_StdPeriph_Driver\SWM320_sdram.c - - - - - SWM320_can.c - 1 - libraries\SWM320_StdPeriph_Driver\SWM320_can.c - - - - - SWM320_uart.c - 1 - libraries\SWM320_StdPeriph_Driver\SWM320_uart.c - - - - - SWM320_lcd.c - 1 - libraries\SWM320_StdPeriph_Driver\SWM320_lcd.c - - - - - SWM320_exti.c - 1 - libraries\SWM320_StdPeriph_Driver\SWM320_exti.c - - - - - SWM320_pwm.c - 1 - libraries\SWM320_StdPeriph_Driver\SWM320_pwm.c - - - - - startup_SWM320.s - 2 - libraries\CMSIS\DeviceSupport\startup\arm\startup_SWM320.s - - - - - SWM320_i2c.c - 1 - libraries\SWM320_StdPeriph_Driver\SWM320_i2c.c - - - - - SWM320_sdio.c - 1 - libraries\SWM320_StdPeriph_Driver\SWM320_sdio.c - - - - - system_SWM320.c - 1 - libraries\CMSIS\DeviceSupport\system_SWM320.c - - - - - SWM320_timr.c - 1 - libraries\SWM320_StdPeriph_Driver\SWM320_timr.c - - - - - SWM320_rtc.c - 1 - libraries\SWM320_StdPeriph_Driver\SWM320_rtc.c - - - - - SWM320_crc.c - 1 - libraries\SWM320_StdPeriph_Driver\SWM320_crc.c - - - - - SWM320_norflash.c - 1 - libraries\SWM320_StdPeriph_Driver\SWM320_norflash.c - - SWM320_wdt.c @@ -837,9 +704,44 @@ - SWM320_adc.c + SWM320_pwm.c 1 - libraries\SWM320_StdPeriph_Driver\SWM320_adc.c + libraries\SWM320_StdPeriph_Driver\SWM320_pwm.c + + + + + SWM320_lcd.c + 1 + libraries\SWM320_StdPeriph_Driver\SWM320_lcd.c + + + + + SWM320_timr.c + 1 + libraries\SWM320_StdPeriph_Driver\SWM320_timr.c + + + + + SWM320_exti.c + 1 + libraries\SWM320_StdPeriph_Driver\SWM320_exti.c + + + + + SWM320_flash.c + 1 + libraries\SWM320_StdPeriph_Driver\SWM320_flash.c + + + + + SWM320_rtc.c + 1 + libraries\SWM320_StdPeriph_Driver\SWM320_rtc.c @@ -849,6 +751,97 @@ libraries\SWM320_StdPeriph_Driver\SWM320_port.c + + + SWM320_sdram.c + 1 + libraries\SWM320_StdPeriph_Driver\SWM320_sdram.c + + + + + SWM320_sram.c + 1 + libraries\SWM320_StdPeriph_Driver\SWM320_sram.c + + + + + SWM320_can.c + 1 + libraries\SWM320_StdPeriph_Driver\SWM320_can.c + + + + + startup_SWM320.s + 2 + libraries\CMSIS\DeviceSupport\startup\arm\startup_SWM320.s + + + + + SWM320_crc.c + 1 + libraries\SWM320_StdPeriph_Driver\SWM320_crc.c + + + + + SWM320_adc.c + 1 + libraries\SWM320_StdPeriph_Driver\SWM320_adc.c + + + + + SWM320_uart.c + 1 + libraries\SWM320_StdPeriph_Driver\SWM320_uart.c + + + + + SWM320_gpio.c + 1 + libraries\SWM320_StdPeriph_Driver\SWM320_gpio.c + + + + + SWM320_spi.c + 1 + libraries\SWM320_StdPeriph_Driver\SWM320_spi.c + + + + + SWM320_i2c.c + 1 + libraries\SWM320_StdPeriph_Driver\SWM320_i2c.c + + + + + system_SWM320.c + 1 + libraries\CMSIS\DeviceSupport\system_SWM320.c + + + + + SWM320_norflash.c + 1 + libraries\SWM320_StdPeriph_Driver\SWM320_norflash.c + + + + + SWM320_sdio.c + 1 + libraries\SWM320_StdPeriph_Driver\SWM320_sdio.c + + diff --git a/bsp/swm320/project.uvprojx b/bsp/swm320/project.uvprojx index 93fbc0eeda..a5748e68ed 100644 --- a/bsp/swm320/project.uvprojx +++ b/bsp/swm320/project.uvprojx @@ -335,7 +335,7 @@ __RTTHREAD__, RT_USING_ARM_LIBC, __CLK_TCK=RT_TICK_PER_SECOND - applications;..\..\components\libc\compilers\common;..\..\components\libc\compilers\common\nogcc;..\..\libcpu\arm\common;..\..\libcpu\arm\cortex-m4;..\..\components\drivers\include;..\..\components\drivers\include;..\..\components\drivers\include;drivers;..\..\components\finsh;.;..\..\include;libraries\CMSIS\CoreSupport;libraries\CMSIS\DeviceSupport;libraries\SWM320_StdPeriph_Driver;..\..\components\libc\posix\io\poll;..\..\components\libc\posix\ipc;..\..\examples\utest\testcases\kernel + applications;..\..\components\libc\compilers\common;..\..\components\libc\compilers\common\extension;..\..\libcpu\arm\common;..\..\libcpu\arm\cortex-m4;..\..\components\drivers\include;..\..\components\drivers\include;..\..\components\drivers\include;drivers;..\..\components\finsh;.;..\..\include;libraries\CMSIS\CoreSupport;libraries\CMSIS\DeviceSupport;libraries\SWM320_StdPeriph_Driver;..\..\components\libc\posix\io\poll;..\..\components\libc\posix\io\stdio;..\..\components\libc\posix\ipc;..\..\examples\utest\testcases\kernel @@ -390,9 +390,9 @@ Compiler - libc_syms.c + syscall_mem.c 1 - ..\..\components\libc\compilers\armlibc\libc_syms.c + ..\..\components\libc\compilers\armlibc\syscall_mem.c @@ -402,13 +402,6 @@ ..\..\components\libc\compilers\armlibc\syscalls.c - - - syscall_mem.c - 1 - ..\..\components\libc\compilers\armlibc\syscall_mem.c - - time.c @@ -426,13 +419,6 @@ CPU - - - div0.c - 1 - ..\..\libcpu\arm\common\div0.c - - backtrace.c @@ -447,6 +433,13 @@ ..\..\libcpu\arm\common\showmem.c + + + div0.c + 1 + ..\..\libcpu\arm\common\div0.c + + context_rvds.S @@ -464,6 +457,55 @@ DeviceDrivers + + + ringbuffer.c + 1 + ..\..\components\drivers\ipc\ringbuffer.c + + + + + workqueue.c + 1 + ..\..\components\drivers\ipc\workqueue.c + + + + + completion.c + 1 + ..\..\components\drivers\ipc\completion.c + + + + + dataqueue.c + 1 + ..\..\components\drivers\ipc\dataqueue.c + + + + + ringblk_buf.c + 1 + ..\..\components\drivers\ipc\ringblk_buf.c + + + + + pipe.c + 1 + ..\..\components\drivers\ipc\pipe.c + + + + + waitqueue.c + 1 + ..\..\components\drivers\ipc\waitqueue.c + + pin.c @@ -478,55 +520,6 @@ ..\..\components\drivers\serial\serial.c - - - ringblk_buf.c - 1 - ..\..\components\drivers\src\ringblk_buf.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 - - - - - completion.c - 1 - ..\..\components\drivers\src\completion.c - - - - - dataqueue.c - 1 - ..\..\components\drivers\src\dataqueue.c - - - - - workqueue.c - 1 - ..\..\components\drivers\src\workqueue.c - - Drivers @@ -578,41 +571,6 @@ Kernel - - - object.c - 1 - ..\..\src\object.c - - - - - thread.c - 1 - ..\..\src\thread.c - - - - - ipc.c - 1 - ..\..\src\ipc.c - - - - - irq.c - 1 - ..\..\src\irq.c - - - - - scheduler.c - 1 - ..\..\src\scheduler.c - - memheap.c @@ -620,34 +578,6 @@ ..\..\src\memheap.c - - - kservice.c - 1 - ..\..\src\kservice.c - - - - - components.c - 1 - ..\..\src\components.c - - - - - device.c - 1 - ..\..\src\device.c - - - - - timer.c - 1 - ..\..\src\timer.c - - mempool.c @@ -657,9 +587,9 @@ - idle.c + components.c 1 - ..\..\src\idle.c + ..\..\src\components.c @@ -669,14 +599,77 @@ ..\..\src\clock.c + + + device.c + 1 + ..\..\src\device.c + + + + + scheduler.c + 1 + ..\..\src\scheduler.c + + + + + ipc.c + 1 + ..\..\src\ipc.c + + + + + idle.c + 1 + ..\..\src\idle.c + + + + + object.c + 1 + ..\..\src\object.c + + + + + irq.c + 1 + ..\..\src\irq.c + + + + + timer.c + 1 + ..\..\src\timer.c + + + + + thread.c + 1 + ..\..\src\thread.c + + + + + kservice.c + 1 + ..\..\src\kservice.c + + Libraries - SWM320_spi.c + SWM320_gpio.c 1 - libraries\SWM320_StdPeriph_Driver\SWM320_spi.c + libraries\SWM320_StdPeriph_Driver\SWM320_gpio.c @@ -686,13 +679,6 @@ libraries\SWM320_StdPeriph_Driver\SWM320_rtc.c - - - SWM320_adc.c - 1 - libraries\SWM320_StdPeriph_Driver\SWM320_adc.c - - system_SWM320.c @@ -700,13 +686,6 @@ libraries\CMSIS\DeviceSupport\system_SWM320.c - - - SWM320_sdio.c - 1 - libraries\SWM320_StdPeriph_Driver\SWM320_sdio.c - - SWM320_sdram.c @@ -716,72 +695,9 @@ - SWM320_flash.c + SWM320_spi.c 1 - libraries\SWM320_StdPeriph_Driver\SWM320_flash.c - - - - - SWM320_lcd.c - 1 - libraries\SWM320_StdPeriph_Driver\SWM320_lcd.c - - - - - SWM320_wdt.c - 1 - libraries\SWM320_StdPeriph_Driver\SWM320_wdt.c - - - - - SWM320_pwm.c - 1 - libraries\SWM320_StdPeriph_Driver\SWM320_pwm.c - - - - - SWM320_port.c - 1 - libraries\SWM320_StdPeriph_Driver\SWM320_port.c - - - - - SWM320_uart.c - 1 - libraries\SWM320_StdPeriph_Driver\SWM320_uart.c - - - - - SWM320_norflash.c - 1 - libraries\SWM320_StdPeriph_Driver\SWM320_norflash.c - - - - - startup_SWM320.s - 2 - libraries\CMSIS\DeviceSupport\startup\arm\startup_SWM320.s - - - - - SWM320_can.c - 1 - libraries\SWM320_StdPeriph_Driver\SWM320_can.c - - - - - SWM320_gpio.c - 1 - libraries\SWM320_StdPeriph_Driver\SWM320_gpio.c + libraries\SWM320_StdPeriph_Driver\SWM320_spi.c @@ -793,23 +709,30 @@ - SWM320_dma.c + SWM320_wdt.c 1 - libraries\SWM320_StdPeriph_Driver\SWM320_dma.c + libraries\SWM320_StdPeriph_Driver\SWM320_wdt.c - SWM320_exti.c + SWM320_adc.c 1 - libraries\SWM320_StdPeriph_Driver\SWM320_exti.c + libraries\SWM320_StdPeriph_Driver\SWM320_adc.c - SWM320_timr.c + SWM320_can.c 1 - libraries\SWM320_StdPeriph_Driver\SWM320_timr.c + libraries\SWM320_StdPeriph_Driver\SWM320_can.c + + + + + SWM320_uart.c + 1 + libraries\SWM320_StdPeriph_Driver\SWM320_uart.c @@ -819,6 +742,55 @@ libraries\SWM320_StdPeriph_Driver\SWM320_crc.c + + + SWM320_lcd.c + 1 + libraries\SWM320_StdPeriph_Driver\SWM320_lcd.c + + + + + startup_SWM320.s + 2 + libraries\CMSIS\DeviceSupport\startup\arm\startup_SWM320.s + + + + + SWM320_pwm.c + 1 + libraries\SWM320_StdPeriph_Driver\SWM320_pwm.c + + + + + SWM320_sdio.c + 1 + libraries\SWM320_StdPeriph_Driver\SWM320_sdio.c + + + + + SWM320_port.c + 1 + libraries\SWM320_StdPeriph_Driver\SWM320_port.c + + + + + SWM320_flash.c + 1 + libraries\SWM320_StdPeriph_Driver\SWM320_flash.c + + + + + SWM320_dma.c + 1 + libraries\SWM320_StdPeriph_Driver\SWM320_dma.c + + SWM320_sram.c @@ -826,6 +798,27 @@ libraries\SWM320_StdPeriph_Driver\SWM320_sram.c + + + SWM320_exti.c + 1 + libraries\SWM320_StdPeriph_Driver\SWM320_exti.c + + + + + SWM320_norflash.c + 1 + libraries\SWM320_StdPeriph_Driver\SWM320_norflash.c + + + + + SWM320_timr.c + 1 + libraries\SWM320_StdPeriph_Driver\SWM320_timr.c + + diff --git a/bsp/synopsys/boards/.config b/bsp/synopsys/boards/.config index 8106647ba3..70df3e794f 100644 --- a/bsp/synopsys/boards/.config +++ b/bsp/synopsys/boards/.config @@ -7,7 +7,6 @@ # RT-Thread Kernel # CONFIG_RT_NAME_MAX=16 -# CONFIG_RT_USING_BIG_ENDIAN is not set # CONFIG_RT_USING_ARCH_DATA_TYPE is not set # CONFIG_RT_USING_SMP is not set CONFIG_RT_ALIGN_SIZE=4 @@ -170,7 +169,6 @@ CONFIG_RT_SERIAL_RB_BUFSZ=1024 # # POSIX layer and C standard library # -# CONFIG_RT_USING_MODULE is not set CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8 # @@ -179,7 +177,9 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8 # CONFIG_RT_USING_POSIX_FS is not set # CONFIG_RT_USING_POSIX_DELAY is not set # CONFIG_RT_USING_POSIX_CLOCK is not set +# CONFIG_RT_USING_POSIX_TIMER is not set # CONFIG_RT_USING_PTHREADS is not set +# CONFIG_RT_USING_MODULE is not set # # Interprocess Communication (IPC) @@ -388,6 +388,7 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8 # CONFIG_PKG_USING_MCURSES is not set # CONFIG_PKG_USING_TERMBOX is not set # CONFIG_PKG_USING_VT100 is not set +# CONFIG_PKG_USING_QRCODE is not set # # tools packages @@ -398,7 +399,6 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8 # CONFIG_PKG_USING_SYSTEMVIEW is not set # CONFIG_PKG_USING_SEGGER_RTT is not set # CONFIG_PKG_USING_RDB is not set -# CONFIG_PKG_USING_QRCODE is not set # CONFIG_PKG_USING_ULOG_EASYFLASH is not set # CONFIG_PKG_USING_ULOG_FILE is not set # CONFIG_PKG_USING_LOGMGR is not set @@ -449,6 +449,7 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8 # CONFIG_PKG_USING_POSIX_GETLINE is not set # CONFIG_PKG_USING_POSIX_WCWIDTH is not set # CONFIG_PKG_USING_POSIX_ITOA is not set +# CONFIG_PKG_USING_POSIX_STRINGS is not set # # acceleration: Assembly language or algorithmic acceleration packages @@ -564,6 +565,7 @@ CONFIG_PKG_EMBARC_BSP_VER="upstream" # CONFIG_PKG_USING_SSD1306 is not set # CONFIG_PKG_USING_QKEY is not set # CONFIG_PKG_USING_RS485 is not set +# CONFIG_PKG_USING_RS232 is not set # CONFIG_PKG_USING_NES is not set # CONFIG_PKG_USING_VIRTUAL_SENSOR is not set # CONFIG_PKG_USING_VDEVICE is not set @@ -651,6 +653,8 @@ CONFIG_PKG_EMBARC_BSP_VER="upstream" # CONFIG_PKG_USING_LWGPS is not set # CONFIG_PKG_USING_STATE_MACHINE is not set # CONFIG_PKG_USING_DESIGN_PATTERN is not set +# CONFIG_PKG_USING_CONTROLLER is not set +# CONFIG_PKG_USING_PHASE_LOCKED_LOOP is not set CONFIG_SOC_EMSK=y CONFIG_EMSK_USING_UART0=y CONFIG_EMSK_USING_UART1=y diff --git a/bsp/tae32f5300/.config b/bsp/tae32f5300/.config index c5488aee92..71c6528e93 100644 --- a/bsp/tae32f5300/.config +++ b/bsp/tae32f5300/.config @@ -7,7 +7,6 @@ # RT-Thread Kernel # CONFIG_RT_NAME_MAX=8 -# CONFIG_RT_USING_BIG_ENDIAN is not set # CONFIG_RT_USING_ARCH_DATA_TYPE is not set # CONFIG_RT_USING_SMP is not set CONFIG_RT_ALIGN_SIZE=4 @@ -173,7 +172,6 @@ CONFIG_RT_USING_PIN=y # # POSIX layer and C standard library # -# CONFIG_RT_USING_MODULE is not set CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8 # @@ -182,7 +180,9 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8 # CONFIG_RT_USING_POSIX_FS is not set # CONFIG_RT_USING_POSIX_DELAY is not set # CONFIG_RT_USING_POSIX_CLOCK is not set +# CONFIG_RT_USING_POSIX_TIMER is not set # CONFIG_RT_USING_PTHREADS is not set +# CONFIG_RT_USING_MODULE is not set # # Interprocess Communication (IPC) @@ -392,6 +392,7 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8 # CONFIG_PKG_USING_MCURSES is not set # CONFIG_PKG_USING_TERMBOX is not set # CONFIG_PKG_USING_VT100 is not set +# CONFIG_PKG_USING_QRCODE is not set # # tools packages @@ -402,7 +403,6 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8 # CONFIG_PKG_USING_SYSTEMVIEW is not set # CONFIG_PKG_USING_SEGGER_RTT is not set # CONFIG_PKG_USING_RDB is not set -# CONFIG_PKG_USING_QRCODE is not set # CONFIG_PKG_USING_ULOG_EASYFLASH is not set # CONFIG_PKG_USING_ULOG_FILE is not set # CONFIG_PKG_USING_LOGMGR is not set @@ -453,6 +453,7 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8 # CONFIG_PKG_USING_POSIX_GETLINE is not set # CONFIG_PKG_USING_POSIX_WCWIDTH is not set # CONFIG_PKG_USING_POSIX_ITOA is not set +# CONFIG_PKG_USING_POSIX_STRINGS is not set # # acceleration: Assembly language or algorithmic acceleration packages @@ -564,6 +565,7 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8 # CONFIG_PKG_USING_SSD1306 is not set # CONFIG_PKG_USING_QKEY is not set # CONFIG_PKG_USING_RS485 is not set +# CONFIG_PKG_USING_RS232 is not set # CONFIG_PKG_USING_NES is not set # CONFIG_PKG_USING_VIRTUAL_SENSOR is not set # CONFIG_PKG_USING_VDEVICE is not set @@ -651,6 +653,8 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8 # CONFIG_PKG_USING_LWGPS is not set # CONFIG_PKG_USING_STATE_MACHINE is not set # CONFIG_PKG_USING_DESIGN_PATTERN is not set +# CONFIG_PKG_USING_CONTROLLER is not set +# CONFIG_PKG_USING_PHASE_LOCKED_LOOP is not set # # Hardware Drivers Config diff --git a/bsp/tae32f5300/project.uvprojx b/bsp/tae32f5300/project.uvprojx index 0cac0c4f3b..7279ed87a1 100644 --- a/bsp/tae32f5300/project.uvprojx +++ b/bsp/tae32f5300/project.uvprojx @@ -332,7 +332,7 @@ USE_TAE_DRIVER, TAE32F53xx, __CLK_TCK=RT_TICK_PER_SECOND, __RTTHREAD__, __DEBUG, RT_USING_ARM_LIBC - application;.;board;..\..\components\libc\compilers\common;..\..\components\libc\compilers\common\nogcc;..\..\libcpu\arm\common;..\..\libcpu\arm\cortex-m3;..\..\components\drivers\include;..\..\components\drivers\include;..\..\components\drivers\include;..\..\components\drivers\include;drivers;..\..\components\finsh;.;..\..\include;..\..\components\libc\posix\io\poll;..\..\components\libc\posix\ipc;Libraries\CMSIS\Include;Libraries\CMSIS\Device\Tai_action\TAE32F53xx\Include;Libraries\TAE32F53xx_StdPeriph_Driver\inc;..\..\examples\utest\testcases\kernel + application;.;board;..\..\components\libc\compilers\common;..\..\components\libc\compilers\common\extension;..\..\libcpu\arm\common;..\..\libcpu\arm\cortex-m3;..\..\components\drivers\include;..\..\components\drivers\include;..\..\components\drivers\include;..\..\components\drivers\include;drivers;..\..\components\finsh;.;..\..\include;..\..\components\libc\posix\io\poll;..\..\components\libc\posix\io\stdio;..\..\components\libc\posix\ipc;Libraries\CMSIS\Include;Libraries\CMSIS\Device\Tai_action\TAE32F53xx\Include;Libraries\TAE32F53xx_StdPeriph_Driver\inc;..\..\examples\utest\testcases\kernel @@ -409,13 +409,6 @@ ..\..\components\libc\compilers\armlibc\syscalls.c - - - libc_syms.c - 1 - ..\..\components\libc\compilers\armlibc\libc_syms.c - - syscall_mem.c @@ -442,16 +435,16 @@ CPU - showmem.c + backtrace.c 1 - ..\..\libcpu\arm\common\showmem.c + ..\..\libcpu\arm\common\backtrace.c - backtrace.c + showmem.c 1 - ..\..\libcpu\arm\common\backtrace.c + ..\..\libcpu\arm\common\showmem.c @@ -463,16 +456,16 @@ - context_rvds.S - 2 - ..\..\libcpu\arm\cortex-m3\context_rvds.S + cpuport.c + 1 + ..\..\libcpu\arm\cortex-m3\cpuport.c - cpuport.c - 1 - ..\..\libcpu\arm\cortex-m3\cpuport.c + context_rvds.S + 2 + ..\..\libcpu\arm\cortex-m3\context_rvds.S @@ -499,6 +492,55 @@ ..\..\components\drivers\i2c\i2c-bit-ops.c + + + pipe.c + 1 + ..\..\components\drivers\ipc\pipe.c + + + + + dataqueue.c + 1 + ..\..\components\drivers\ipc\dataqueue.c + + + + + workqueue.c + 1 + ..\..\components\drivers\ipc\workqueue.c + + + + + ringbuffer.c + 1 + ..\..\components\drivers\ipc\ringbuffer.c + + + + + completion.c + 1 + ..\..\components\drivers\ipc\completion.c + + + + + waitqueue.c + 1 + ..\..\components\drivers\ipc\waitqueue.c + + + + + ringblk_buf.c + 1 + ..\..\components\drivers\ipc\ringblk_buf.c + + pin.c @@ -513,55 +555,6 @@ ..\..\components\drivers\serial\serial.c - - - ringbuffer.c - 1 - ..\..\components\drivers\src\ringbuffer.c - - - - - pipe.c - 1 - ..\..\components\drivers\src\pipe.c - - - - - completion.c - 1 - ..\..\components\drivers\src\completion.c - - - - - ringblk_buf.c - 1 - ..\..\components\drivers\src\ringblk_buf.c - - - - - workqueue.c - 1 - ..\..\components\drivers\src\workqueue.c - - - - - waitqueue.c - 1 - ..\..\components\drivers\src\waitqueue.c - - - - - dataqueue.c - 1 - ..\..\components\drivers\src\dataqueue.c - - Drivers @@ -608,37 +601,16 @@ Kernel - mem.c + ipc.c 1 - ..\..\src\mem.c + ..\..\src\ipc.c - mempool.c + clock.c 1 - ..\..\src\mempool.c - - - - - thread.c - 1 - ..\..\src\thread.c - - - - - device.c - 1 - ..\..\src\device.c - - - - - components.c - 1 - ..\..\src\components.c + ..\..\src\clock.c @@ -648,6 +620,20 @@ ..\..\src\idle.c + + + kservice.c + 1 + ..\..\src\kservice.c + + + + + scheduler.c + 1 + ..\..\src\scheduler.c + + object.c @@ -655,6 +641,27 @@ ..\..\src\object.c + + + components.c + 1 + ..\..\src\components.c + + + + + mem.c + 1 + ..\..\src\mem.c + + + + + mempool.c + 1 + ..\..\src\mempool.c + + irq.c @@ -671,30 +678,16 @@ - clock.c + thread.c 1 - ..\..\src\clock.c + ..\..\src\thread.c - ipc.c + device.c 1 - ..\..\src\ipc.c - - - - - kservice.c - 1 - ..\..\src\kservice.c - - - - - scheduler.c - 1 - ..\..\src\scheduler.c + ..\..\src\device.c diff --git a/bsp/thead-smart/.config b/bsp/thead-smart/.config index e0fe7288b5..ec2439a126 100644 --- a/bsp/thead-smart/.config +++ b/bsp/thead-smart/.config @@ -7,7 +7,6 @@ # RT-Thread Kernel # CONFIG_RT_NAME_MAX=8 -# CONFIG_RT_USING_BIG_ENDIAN is not set # CONFIG_RT_USING_ARCH_DATA_TYPE is not set # CONFIG_RT_USING_SMP is not set CONFIG_RT_ALIGN_SIZE=4 @@ -158,7 +157,6 @@ CONFIG_RT_USING_PIN=y # # POSIX layer and C standard library # -# CONFIG_RT_USING_MODULE is not set CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8 # @@ -167,7 +165,9 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8 # CONFIG_RT_USING_POSIX_FS is not set # CONFIG_RT_USING_POSIX_DELAY is not set # CONFIG_RT_USING_POSIX_CLOCK is not set +# CONFIG_RT_USING_POSIX_TIMER is not set # CONFIG_RT_USING_PTHREADS is not set +# CONFIG_RT_USING_MODULE is not set # # Interprocess Communication (IPC) @@ -376,6 +376,7 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8 # CONFIG_PKG_USING_MCURSES is not set # CONFIG_PKG_USING_TERMBOX is not set # CONFIG_PKG_USING_VT100 is not set +# CONFIG_PKG_USING_QRCODE is not set # # tools packages @@ -386,7 +387,6 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8 # CONFIG_PKG_USING_SYSTEMVIEW is not set # CONFIG_PKG_USING_SEGGER_RTT is not set # CONFIG_PKG_USING_RDB is not set -# CONFIG_PKG_USING_QRCODE is not set # CONFIG_PKG_USING_ULOG_EASYFLASH is not set # CONFIG_PKG_USING_ULOG_FILE is not set # CONFIG_PKG_USING_LOGMGR is not set @@ -437,6 +437,7 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8 # CONFIG_PKG_USING_POSIX_GETLINE is not set # CONFIG_PKG_USING_POSIX_WCWIDTH is not set # CONFIG_PKG_USING_POSIX_ITOA is not set +# CONFIG_PKG_USING_POSIX_STRINGS is not set # # acceleration: Assembly language or algorithmic acceleration packages @@ -549,6 +550,7 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8 # CONFIG_PKG_USING_SSD1306 is not set # CONFIG_PKG_USING_QKEY is not set # CONFIG_PKG_USING_RS485 is not set +# CONFIG_PKG_USING_RS232 is not set # CONFIG_PKG_USING_NES is not set # CONFIG_PKG_USING_VIRTUAL_SENSOR is not set # CONFIG_PKG_USING_VDEVICE is not set @@ -636,5 +638,7 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8 # CONFIG_PKG_USING_LWGPS is not set # CONFIG_PKG_USING_STATE_MACHINE is not set # CONFIG_PKG_USING_DESIGN_PATTERN is not set +# CONFIG_PKG_USING_CONTROLLER is not set +# CONFIG_PKG_USING_PHASE_LOCKED_LOOP is not set CONFIG_SOC_THEAD_SMART=y CONFIG_RT_USING_UART1=y diff --git a/bsp/tkm32F499/project.uvprojx b/bsp/tkm32F499/project.uvprojx index da0bc47001..fa0a993b6c 100644 --- a/bsp/tkm32F499/project.uvprojx +++ b/bsp/tkm32F499/project.uvprojx @@ -336,7 +336,7 @@ __RTTHREAD__, RT_USING_ARM_LIBC, __CLK_TCK=RT_TICK_PER_SECOND - applications;..\..\components\libc\compilers\common;..\..\components\libc\compilers\common\nogcc;..\..\libcpu\arm\common;..\..\libcpu\arm\cortex-m4;..\..\components\drivers\include;..\..\components\drivers\include;..\..\components\drivers\include;drivers;drivers\lcd;..\..\components\dfs\include;..\..\components\dfs\filesystems\devfs;..\..\components\finsh;.;..\..\include;..\..\components\libc\posix\io\poll;..\..\components\libc\posix\ipc;Libraries\CMSIS_and_startup\CMSIS;Libraries\CMSIS_and_startup;Libraries\Hal_lib\inc;..\..\examples\utest\testcases\kernel + applications;..\..\components\libc\compilers\common;..\..\components\libc\compilers\common\extension;..\..\libcpu\arm\common;..\..\libcpu\arm\cortex-m4;..\..\components\drivers\include;..\..\components\drivers\include;..\..\components\drivers\include;drivers;drivers\lcd;..\..\components\dfs\include;..\..\components\dfs\filesystems\devfs;..\..\components\finsh;.;..\..\include;..\..\components\libc\posix\io\poll;..\..\components\libc\posix\io\stdio;..\..\components\libc\posix\ipc;Libraries\CMSIS_and_startup\CMSIS;Libraries\CMSIS_and_startup;Libraries\Hal_lib\inc;..\..\examples\utest\testcases\kernel @@ -396,13 +396,6 @@ ..\..\components\libc\compilers\armlibc\syscalls.c - - - libc_syms.c - 1 - ..\..\components\libc\compilers\armlibc\libc_syms.c - - syscall_mem.c @@ -434,13 +427,6 @@ ..\..\libcpu\arm\common\div0.c - - - backtrace.c - 1 - ..\..\libcpu\arm\common\backtrace.c - - showmem.c @@ -450,9 +436,9 @@ - cpuport.c + backtrace.c 1 - ..\..\libcpu\arm\cortex-m4\cpuport.c + ..\..\libcpu\arm\common\backtrace.c @@ -462,9 +448,65 @@ ..\..\libcpu\arm\cortex-m4\context_rvds.S + + + cpuport.c + 1 + ..\..\libcpu\arm\cortex-m4\cpuport.c + + DeviceDrivers + + + pipe.c + 1 + ..\..\components\drivers\ipc\pipe.c + + + + + ringblk_buf.c + 1 + ..\..\components\drivers\ipc\ringblk_buf.c + + + + + completion.c + 1 + ..\..\components\drivers\ipc\completion.c + + + + + ringbuffer.c + 1 + ..\..\components\drivers\ipc\ringbuffer.c + + + + + dataqueue.c + 1 + ..\..\components\drivers\ipc\dataqueue.c + + + + + workqueue.c + 1 + ..\..\components\drivers\ipc\workqueue.c + + + + + waitqueue.c + 1 + ..\..\components\drivers\ipc\waitqueue.c + + pin.c @@ -479,55 +521,6 @@ ..\..\components\drivers\serial\serial.c - - - dataqueue.c - 1 - ..\..\components\drivers\src\dataqueue.c - - - - - workqueue.c - 1 - ..\..\components\drivers\src\workqueue.c - - - - - ringbuffer.c - 1 - ..\..\components\drivers\src\ringbuffer.c - - - - - pipe.c - 1 - ..\..\components\drivers\src\pipe.c - - - - - ringblk_buf.c - 1 - ..\..\components\drivers\src\ringblk_buf.c - - - - - waitqueue.c - 1 - ..\..\components\drivers\src\waitqueue.c - - - - - completion.c - 1 - ..\..\components\drivers\src\completion.c - - Drivers @@ -612,9 +605,9 @@ Kernel - irq.c + components.c 1 - ..\..\src\irq.c + ..\..\src\components.c @@ -624,13 +617,6 @@ ..\..\src\thread.c - - - clock.c - 1 - ..\..\src\clock.c - - mempool.c @@ -638,48 +624,6 @@ ..\..\src\mempool.c - - - ipc.c - 1 - ..\..\src\ipc.c - - - - - device.c - 1 - ..\..\src\device.c - - - - - timer.c - 1 - ..\..\src\timer.c - - - - - scheduler.c - 1 - ..\..\src\scheduler.c - - - - - components.c - 1 - ..\..\src\components.c - - - - - object.c - 1 - ..\..\src\object.c - - mem.c @@ -689,9 +633,30 @@ - kservice.c + timer.c 1 - ..\..\src\kservice.c + ..\..\src\timer.c + + + + + ipc.c + 1 + ..\..\src\ipc.c + + + + + object.c + 1 + ..\..\src\object.c + + + + + clock.c + 1 + ..\..\src\clock.c @@ -701,21 +666,56 @@ ..\..\src\idle.c + + + device.c + 1 + ..\..\src\device.c + + + + + irq.c + 1 + ..\..\src\irq.c + + + + + scheduler.c + 1 + ..\..\src\scheduler.c + + + + + kservice.c + 1 + ..\..\src\kservice.c + + TKM32_Lib - HAL_misc.c + HAL_uart.c 1 - Libraries\Hal_lib\src\HAL_misc.c + Libraries\Hal_lib\src\HAL_uart.c - HAL_exti.c + HAL_spi.c 1 - Libraries\Hal_lib\src\HAL_exti.c + Libraries\Hal_lib\src\HAL_spi.c + + + + + HAL_i2c.c + 1 + Libraries\Hal_lib\src\HAL_i2c.c @@ -741,37 +741,9 @@ - sys.c + HAL_misc.c 1 - Libraries\CMSIS_and_startup\sys.c - - - - - HAL_uart.c - 1 - Libraries\Hal_lib\src\HAL_uart.c - - - - - HAL_dma_bak.c - 1 - Libraries\Hal_lib\src\HAL_dma_bak.c - - - - - HAL_i2c.c - 1 - Libraries\Hal_lib\src\HAL_i2c.c - - - - - HAL_spi.c - 1 - Libraries\Hal_lib\src\HAL_spi.c + Libraries\Hal_lib\src\HAL_misc.c @@ -783,16 +755,9 @@ - HAL_gpio.c + HAL_dma.c 1 - Libraries\Hal_lib\src\HAL_gpio.c - - - - - startup_Tk499.s - 2 - Libraries\CMSIS_and_startup\startup_Tk499.s + Libraries\Hal_lib\src\HAL_dma.c @@ -804,9 +769,37 @@ - HAL_dma.c + HAL_pwr.c 1 - Libraries\Hal_lib\src\HAL_dma.c + Libraries\Hal_lib\src\HAL_pwr.c + + + + + startup_Tk499.s + 2 + Libraries\CMSIS_and_startup\startup_Tk499.s + + + + + HAL_exti.c + 1 + Libraries\Hal_lib\src\HAL_exti.c + + + + + sys.c + 1 + Libraries\CMSIS_and_startup\sys.c + + + + + HAL_dma_bak.c + 1 + Libraries\Hal_lib\src\HAL_dma_bak.c @@ -818,9 +811,9 @@ - HAL_pwr.c + HAL_gpio.c 1 - Libraries\Hal_lib\src\HAL_pwr.c + Libraries\Hal_lib\src\HAL_gpio.c diff --git a/bsp/tm4c123bsp/.config b/bsp/tm4c123bsp/.config index 06e5e5f63e..5fe3153fbd 100644 --- a/bsp/tm4c123bsp/.config +++ b/bsp/tm4c123bsp/.config @@ -7,7 +7,6 @@ # RT-Thread Kernel # CONFIG_RT_NAME_MAX=8 -# CONFIG_RT_USING_BIG_ENDIAN is not set # CONFIG_RT_USING_ARCH_DATA_TYPE is not set # CONFIG_RT_USING_SMP is not set CONFIG_RT_ALIGN_SIZE=4 @@ -174,7 +173,6 @@ CONFIG_RT_USING_SPI=y # # POSIX layer and C standard library # -# CONFIG_RT_USING_MODULE is not set CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8 # @@ -183,7 +181,9 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8 # CONFIG_RT_USING_POSIX_FS is not set # CONFIG_RT_USING_POSIX_DELAY is not set # CONFIG_RT_USING_POSIX_CLOCK is not set +# CONFIG_RT_USING_POSIX_TIMER is not set # CONFIG_RT_USING_PTHREADS is not set +# CONFIG_RT_USING_MODULE is not set # # Interprocess Communication (IPC) @@ -392,6 +392,7 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8 # CONFIG_PKG_USING_MCURSES is not set # CONFIG_PKG_USING_TERMBOX is not set # CONFIG_PKG_USING_VT100 is not set +# CONFIG_PKG_USING_QRCODE is not set # # tools packages @@ -402,7 +403,6 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8 # CONFIG_PKG_USING_SYSTEMVIEW is not set # CONFIG_PKG_USING_SEGGER_RTT is not set # CONFIG_PKG_USING_RDB is not set -# CONFIG_PKG_USING_QRCODE is not set # CONFIG_PKG_USING_ULOG_EASYFLASH is not set # CONFIG_PKG_USING_ULOG_FILE is not set # CONFIG_PKG_USING_LOGMGR is not set @@ -453,6 +453,7 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8 # CONFIG_PKG_USING_POSIX_GETLINE is not set # CONFIG_PKG_USING_POSIX_WCWIDTH is not set # CONFIG_PKG_USING_POSIX_ITOA is not set +# CONFIG_PKG_USING_POSIX_STRINGS is not set # # acceleration: Assembly language or algorithmic acceleration packages @@ -564,6 +565,7 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8 # CONFIG_PKG_USING_SSD1306 is not set # CONFIG_PKG_USING_QKEY is not set # CONFIG_PKG_USING_RS485 is not set +# CONFIG_PKG_USING_RS232 is not set # CONFIG_PKG_USING_NES is not set # CONFIG_PKG_USING_VIRTUAL_SENSOR is not set # CONFIG_PKG_USING_VDEVICE is not set @@ -651,6 +653,8 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8 # CONFIG_PKG_USING_LWGPS is not set # CONFIG_PKG_USING_STATE_MACHINE is not set # CONFIG_PKG_USING_DESIGN_PATTERN is not set +# CONFIG_PKG_USING_CONTROLLER is not set +# CONFIG_PKG_USING_PHASE_LOCKED_LOOP is not set # # Hardware Drivers Config diff --git a/bsp/tm4c123bsp/project.ewp b/bsp/tm4c123bsp/project.ewp index 2b9fe1e433..5763b01aa9 100644 --- a/bsp/tm4c123bsp/project.ewp +++ b/bsp/tm4c123bsp/project.ewp @@ -346,16 +346,17 @@ $PROJ_DIR$\libraries\TivaWare_C_series\tm4c123_driverlib $PROJ_DIR$\..\..\include + $PROJ_DIR$\..\..\components\libc\compilers\common\extension $PROJ_DIR$\..\..\components\libc\compilers\common $PROJ_DIR$\libraries\TivaWare_C_series\tm4c123_driverlib\driverlib - $PROJ_DIR$\..\..\components\libc\compilers\common\nogcc - $PROJ_DIR$\libraries\TivaWare_C_series\tm4c123_driverlib\driverlib\inc $PROJ_DIR$\..\..\components\libc\posix\ipc + $PROJ_DIR$\libraries\TivaWare_C_series\tm4c123_driverlib\driverlib\inc $PROJ_DIR$\..\..\examples\utest\testcases\kernel $PROJ_DIR$\. $PROJ_DIR$\applications $PROJ_DIR$\..\..\libcpu\arm\cortex-m4 $PROJ_DIR$\..\..\components\libc\posix\io\poll + $PROJ_DIR$\..\..\components\libc\posix\io\stdio $PROJ_DIR$\board $PROJ_DIR$\..\..\components\drivers\include $PROJ_DIR$\..\..\libcpu\arm\common @@ -1383,16 +1384,17 @@ $PROJ_DIR$\libraries\TivaWare_C_series\tm4c123_driverlib $PROJ_DIR$\..\..\include + $PROJ_DIR$\..\..\components\libc\compilers\common\extension $PROJ_DIR$\..\..\components\libc\compilers\common $PROJ_DIR$\libraries\TivaWare_C_series\tm4c123_driverlib\driverlib - $PROJ_DIR$\..\..\components\libc\compilers\common\nogcc - $PROJ_DIR$\libraries\TivaWare_C_series\tm4c123_driverlib\driverlib\inc $PROJ_DIR$\..\..\components\libc\posix\ipc + $PROJ_DIR$\libraries\TivaWare_C_series\tm4c123_driverlib\driverlib\inc $PROJ_DIR$\..\..\examples\utest\testcases\kernel $PROJ_DIR$\. $PROJ_DIR$\applications $PROJ_DIR$\..\..\libcpu\arm\cortex-m4 $PROJ_DIR$\..\..\components\libc\posix\io\poll + $PROJ_DIR$\..\..\components\libc\posix\io\stdio $PROJ_DIR$\board $PROJ_DIR$\..\..\components\drivers\include $PROJ_DIR$\..\..\libcpu\arm\common @@ -2082,42 +2084,45 @@ Compiler - - $PROJ_DIR$\..\..\components\libc\compilers\common\time.c - $PROJ_DIR$\..\..\components\libc\compilers\common\stdlib.c - $PROJ_DIR$\..\..\components\libc\compilers\dlib\syscall_write.c - - - $PROJ_DIR$\..\..\components\libc\compilers\dlib\syscall_read.c - - - $PROJ_DIR$\..\..\components\libc\compilers\dlib\syscalls.c + $PROJ_DIR$\..\..\components\libc\compilers\common\time.c $PROJ_DIR$\..\..\components\libc\compilers\dlib\environ.c - $PROJ_DIR$\..\..\components\libc\compilers\dlib\syscall_mem.c - - - $PROJ_DIR$\..\..\components\libc\compilers\dlib\syscall_remove.c + $PROJ_DIR$\..\..\components\libc\compilers\dlib\syscalls.c $PROJ_DIR$\..\..\components\libc\compilers\dlib\syscall_lseek.c + + $PROJ_DIR$\..\..\components\libc\compilers\dlib\syscall_remove.c + $PROJ_DIR$\..\..\components\libc\compilers\dlib\syscall_close.c + + $PROJ_DIR$\..\..\components\libc\compilers\dlib\syscall_read.c + + + $PROJ_DIR$\..\..\components\libc\compilers\dlib\syscall_mem.c + + + $PROJ_DIR$\..\..\components\libc\compilers\dlib\syscall_write.c + $PROJ_DIR$\..\..\components\libc\compilers\dlib\syscall_open.c CPU + + $PROJ_DIR$\..\..\libcpu\arm\common\div0.c + $PROJ_DIR$\..\..\libcpu\arm\common\backtrace.c @@ -2125,17 +2130,35 @@ $PROJ_DIR$\..\..\libcpu\arm\common\showmem.c - $PROJ_DIR$\..\..\libcpu\arm\common\div0.c + $PROJ_DIR$\..\..\libcpu\arm\cortex-m4\context_iar.S $PROJ_DIR$\..\..\libcpu\arm\cortex-m4\cpuport.c - - $PROJ_DIR$\..\..\libcpu\arm\cortex-m4\context_iar.S - DeviceDrivers + + $PROJ_DIR$\..\..\components\drivers\ipc\workqueue.c + + + $PROJ_DIR$\..\..\components\drivers\ipc\ringblk_buf.c + + + $PROJ_DIR$\..\..\components\drivers\ipc\ringbuffer.c + + + $PROJ_DIR$\..\..\components\drivers\ipc\completion.c + + + $PROJ_DIR$\..\..\components\drivers\ipc\dataqueue.c + + + $PROJ_DIR$\..\..\components\drivers\ipc\waitqueue.c + + + $PROJ_DIR$\..\..\components\drivers\ipc\pipe.c + $PROJ_DIR$\..\..\components\drivers\misc\adc.c @@ -2154,27 +2177,6 @@ $PROJ_DIR$\..\..\components\drivers\spi\spi_dev.c - - $PROJ_DIR$\..\..\components\drivers\src\ringbuffer.c - - - $PROJ_DIR$\..\..\components\drivers\src\workqueue.c - - - $PROJ_DIR$\..\..\components\drivers\src\pipe.c - - - $PROJ_DIR$\..\..\components\drivers\src\waitqueue.c - - - $PROJ_DIR$\..\..\components\drivers\src\ringblk_buf.c - - - $PROJ_DIR$\..\..\components\drivers\src\completion.c - - - $PROJ_DIR$\..\..\components\drivers\src\dataqueue.c - Drivers @@ -2218,10 +2220,19 @@ Kernel - $PROJ_DIR$\..\..\src\object.c + $PROJ_DIR$\..\..\src\kservice.c - $PROJ_DIR$\..\..\src\irq.c + $PROJ_DIR$\..\..\src\clock.c + + + $PROJ_DIR$\..\..\src\mempool.c + + + $PROJ_DIR$\..\..\src\mem.c + + + $PROJ_DIR$\..\..\src\idle.c $PROJ_DIR$\..\..\src\scheduler.c @@ -2230,31 +2241,22 @@ $PROJ_DIR$\..\..\src\device.c - $PROJ_DIR$\..\..\src\thread.c + $PROJ_DIR$\..\..\src\timer.c - $PROJ_DIR$\..\..\src\timer.c + $PROJ_DIR$\..\..\src\irq.c $PROJ_DIR$\..\..\src\components.c - $PROJ_DIR$\..\..\src\mem.c - - - $PROJ_DIR$\..\..\src\clock.c - - - $PROJ_DIR$\..\..\src\idle.c + $PROJ_DIR$\..\..\src\thread.c $PROJ_DIR$\..\..\src\ipc.c - $PROJ_DIR$\..\..\src\mempool.c - - - $PROJ_DIR$\..\..\src\kservice.c + $PROJ_DIR$\..\..\src\object.c diff --git a/bsp/tm4c123bsp/project.uvproj b/bsp/tm4c123bsp/project.uvproj index 039d70d5d5..43fd159ce3 100644 --- a/bsp/tm4c123bsp/project.uvproj +++ b/bsp/tm4c123bsp/project.uvproj @@ -359,7 +359,7 @@ TARGET_IS_TM4C123_RB1, rvmdk, __CLK_TCK=RT_TICK_PER_SECOND, PART_TM4C123GH6PM, __RTTHREAD__, RT_USING_ARM_LIBC - applications;.;..\..\components\libc\compilers\common;..\..\components\libc\compilers\common\nogcc;..\..\libcpu\arm\common;..\..\libcpu\arm\cortex-m4;..\..\components\drivers\include;..\..\components\drivers\include;..\..\components\drivers\spi;..\..\components\drivers\include;..\..\components\drivers\include;board;libraries\Drivers;libraries\Drivers\config;..\..\components\finsh;.;..\..\include;libraries\TivaWare_C_series\tm4c123_driverlib;libraries\TivaWare_C_series\tm4c123_driverlib\driverlib;libraries\TivaWare_C_series\tm4c123_driverlib\driverlib\inc;..\..\components\libc\posix\io\poll;..\..\components\libc\posix\ipc;..\..\examples\utest\testcases\kernel + applications;.;..\..\components\libc\compilers\common;..\..\components\libc\compilers\common\extension;..\..\libcpu\arm\common;..\..\libcpu\arm\cortex-m4;..\..\components\drivers\include;..\..\components\drivers\include;..\..\components\drivers\include;..\..\components\drivers\spi;..\..\components\drivers\include;board;libraries\Drivers;libraries\Drivers\config;..\..\components\finsh;.;..\..\include;libraries\TivaWare_C_series\tm4c123_driverlib;libraries\TivaWare_C_series\tm4c123_driverlib\driverlib;libraries\TivaWare_C_series\tm4c123_driverlib\driverlib\inc;..\..\components\libc\posix\io\poll;..\..\components\libc\posix\io\stdio;..\..\components\libc\posix\ipc;..\..\examples\utest\testcases\kernel @@ -411,13 +411,6 @@ Compiler - - - syscalls.c - 1 - ..\..\components\libc\compilers\armlibc\syscalls.c - - syscall_mem.c @@ -427,9 +420,9 @@ - libc_syms.c + syscalls.c 1 - ..\..\components\libc\compilers\armlibc\libc_syms.c + ..\..\components\libc\compilers\armlibc\syscalls.c @@ -456,13 +449,6 @@ ..\..\libcpu\arm\common\div0.c - - - backtrace.c - 1 - ..\..\libcpu\arm\common\backtrace.c - - showmem.c @@ -472,9 +458,9 @@ - context_rvds.S - 2 - ..\..\libcpu\arm\cortex-m4\context_rvds.S + backtrace.c + 1 + ..\..\libcpu\arm\common\backtrace.c @@ -484,9 +470,65 @@ ..\..\libcpu\arm\cortex-m4\cpuport.c + + + context_rvds.S + 2 + ..\..\libcpu\arm\cortex-m4\context_rvds.S + + DeviceDrivers + + + ringblk_buf.c + 1 + ..\..\components\drivers\ipc\ringblk_buf.c + + + + + ringbuffer.c + 1 + ..\..\components\drivers\ipc\ringbuffer.c + + + + + completion.c + 1 + ..\..\components\drivers\ipc\completion.c + + + + + pipe.c + 1 + ..\..\components\drivers\ipc\pipe.c + + + + + dataqueue.c + 1 + ..\..\components\drivers\ipc\dataqueue.c + + + + + workqueue.c + 1 + ..\..\components\drivers\ipc\workqueue.c + + + + + waitqueue.c + 1 + ..\..\components\drivers\ipc\waitqueue.c + + adc.c @@ -529,55 +571,6 @@ ..\..\components\drivers\spi\spi_dev.c - - - pipe.c - 1 - ..\..\components\drivers\src\pipe.c - - - - - ringbuffer.c - 1 - ..\..\components\drivers\src\ringbuffer.c - - - - - ringblk_buf.c - 1 - ..\..\components\drivers\src\ringblk_buf.c - - - - - workqueue.c - 1 - ..\..\components\drivers\src\workqueue.c - - - - - dataqueue.c - 1 - ..\..\components\drivers\src\dataqueue.c - - - - - completion.c - 1 - ..\..\components\drivers\src\completion.c - - - - - waitqueue.c - 1 - ..\..\components\drivers\src\waitqueue.c - - @@ -678,9 +671,9 @@ Kernel - device.c + components.c 1 - ..\..\src\device.c + ..\..\src\components.c @@ -692,16 +685,9 @@ - timer.c + device.c 1 - ..\..\src\timer.c - - - - - thread.c - 1 - ..\..\src\thread.c + ..\..\src\device.c @@ -713,9 +699,9 @@ - components.c + timer.c 1 - ..\..\src\components.c + ..\..\src\timer.c @@ -725,20 +711,6 @@ ..\..\src\idle.c - - - ipc.c - 1 - ..\..\src\ipc.c - - - - - mempool.c - 1 - ..\..\src\mempool.c - - kservice.c @@ -746,13 +718,6 @@ ..\..\src\kservice.c - - - scheduler.c - 1 - ..\..\src\scheduler.c - - object.c @@ -767,6 +732,34 @@ ..\..\src\irq.c + + + scheduler.c + 1 + ..\..\src\scheduler.c + + + + + thread.c + 1 + ..\..\src\thread.c + + + + + mempool.c + 1 + ..\..\src\mempool.c + + + + + ipc.c + 1 + ..\..\src\ipc.c + + Libraries diff --git a/bsp/tm4c123bsp/project.uvprojx b/bsp/tm4c123bsp/project.uvprojx index 40b92a46a9..ea69ef4cd2 100644 --- a/bsp/tm4c123bsp/project.uvprojx +++ b/bsp/tm4c123bsp/project.uvprojx @@ -370,7 +370,7 @@ TARGET_IS_TM4C123_RB1, rvmdk, __CLK_TCK=RT_TICK_PER_SECOND, PART_TM4C123GH6PM, __RTTHREAD__, RT_USING_ARM_LIBC - applications;.;..\..\components\libc\compilers\common;..\..\components\libc\compilers\common\nogcc;..\..\libcpu\arm\common;..\..\libcpu\arm\cortex-m4;..\..\components\drivers\include;..\..\components\drivers\include;..\..\components\drivers\spi;..\..\components\drivers\include;..\..\components\drivers\include;board;libraries\Drivers;libraries\Drivers\config;..\..\components\finsh;.;..\..\include;libraries\TivaWare_C_series\tm4c123_driverlib;libraries\TivaWare_C_series\tm4c123_driverlib\driverlib;libraries\TivaWare_C_series\tm4c123_driverlib\driverlib\inc;..\..\components\libc\posix\io\poll;..\..\components\libc\posix\ipc;..\..\examples\utest\testcases\kernel + applications;.;..\..\components\libc\compilers\common;..\..\components\libc\compilers\common\extension;..\..\libcpu\arm\common;..\..\libcpu\arm\cortex-m4;..\..\components\drivers\include;..\..\components\drivers\include;..\..\components\drivers\include;..\..\components\drivers\spi;..\..\components\drivers\include;board;libraries\Drivers;libraries\Drivers\config;..\..\components\finsh;.;..\..\include;libraries\TivaWare_C_series\tm4c123_driverlib;libraries\TivaWare_C_series\tm4c123_driverlib\driverlib;libraries\TivaWare_C_series\tm4c123_driverlib\driverlib\inc;..\..\components\libc\posix\io\poll;..\..\components\libc\posix\io\stdio;..\..\components\libc\posix\ipc;..\..\examples\utest\testcases\kernel @@ -436,13 +436,6 @@ ..\..\components\libc\compilers\armlibc\syscall_mem.c - - - libc_syms.c - 1 - ..\..\components\libc\compilers\armlibc\libc_syms.c - - stdlib.c @@ -460,6 +453,13 @@ CPU + + + backtrace.c + 1 + ..\..\libcpu\arm\common\backtrace.c + + showmem.c @@ -474,13 +474,6 @@ ..\..\libcpu\arm\common\div0.c - - - backtrace.c - 1 - ..\..\libcpu\arm\common\backtrace.c - - cpuport.c @@ -498,6 +491,55 @@ DeviceDrivers + + + waitqueue.c + 1 + ..\..\components\drivers\ipc\waitqueue.c + + + + + completion.c + 1 + ..\..\components\drivers\ipc\completion.c + + + + + pipe.c + 1 + ..\..\components\drivers\ipc\pipe.c + + + + + ringblk_buf.c + 1 + ..\..\components\drivers\ipc\ringblk_buf.c + + + + + ringbuffer.c + 1 + ..\..\components\drivers\ipc\ringbuffer.c + + + + + dataqueue.c + 1 + ..\..\components\drivers\ipc\dataqueue.c + + + + + workqueue.c + 1 + ..\..\components\drivers\ipc\workqueue.c + + adc.c @@ -540,55 +582,6 @@ ..\..\components\drivers\spi\spi_dev.c - - - ringbuffer.c - 1 - ..\..\components\drivers\src\ringbuffer.c - - - - - dataqueue.c - 1 - ..\..\components\drivers\src\dataqueue.c - - - - - ringblk_buf.c - 1 - ..\..\components\drivers\src\ringblk_buf.c - - - - - pipe.c - 1 - ..\..\components\drivers\src\pipe.c - - - - - workqueue.c - 1 - ..\..\components\drivers\src\workqueue.c - - - - - completion.c - 1 - ..\..\components\drivers\src\completion.c - - - - - waitqueue.c - 1 - ..\..\components\drivers\src\waitqueue.c - - @@ -632,6 +625,13 @@ libraries\Drivers\drv_gpio.c + + + drv_adc.c + 1 + libraries\Drivers\drv_adc.c + + drv_uart.c @@ -646,13 +646,6 @@ libraries\Drivers\drv_pwm.c - - - drv_adc.c - 1 - libraries\Drivers\drv_adc.c - - drv_spi.c @@ -689,9 +682,44 @@ Kernel - timer.c + object.c 1 - ..\..\src\timer.c + ..\..\src\object.c + + + + + mempool.c + 1 + ..\..\src\mempool.c + + + + + thread.c + 1 + ..\..\src\thread.c + + + + + scheduler.c + 1 + ..\..\src\scheduler.c + + + + + kservice.c + 1 + ..\..\src\kservice.c + + + + + components.c + 1 + ..\..\src\components.c @@ -710,16 +738,9 @@ - kservice.c + timer.c 1 - ..\..\src\kservice.c - - - - - scheduler.c - 1 - ..\..\src\scheduler.c + ..\..\src\timer.c @@ -736,34 +757,6 @@ ..\..\src\idle.c - - - object.c - 1 - ..\..\src\object.c - - - - - thread.c - 1 - ..\..\src\thread.c - - - - - mempool.c - 1 - ..\..\src\mempool.c - - - - - device.c - 1 - ..\..\src\device.c - - ipc.c @@ -773,9 +766,9 @@ - components.c + device.c 1 - ..\..\src\components.c + ..\..\src\device.c diff --git a/bsp/tm4c129x/.config b/bsp/tm4c129x/.config index 631f169ea8..53f235cba6 100644 --- a/bsp/tm4c129x/.config +++ b/bsp/tm4c129x/.config @@ -7,7 +7,6 @@ # RT-Thread Kernel # CONFIG_RT_NAME_MAX=8 -# CONFIG_RT_USING_BIG_ENDIAN is not set # CONFIG_RT_USING_ARCH_DATA_TYPE is not set # CONFIG_RT_USING_SMP is not set CONFIG_RT_ALIGN_SIZE=4 @@ -169,7 +168,6 @@ CONFIG_RT_SERIAL_RB_BUFSZ=64 # # POSIX layer and C standard library # -# CONFIG_RT_USING_MODULE is not set CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8 # @@ -178,7 +176,9 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8 # CONFIG_RT_USING_POSIX_FS is not set # CONFIG_RT_USING_POSIX_DELAY is not set # CONFIG_RT_USING_POSIX_CLOCK is not set +# CONFIG_RT_USING_POSIX_TIMER is not set # CONFIG_RT_USING_PTHREADS is not set +# CONFIG_RT_USING_MODULE is not set # # Interprocess Communication (IPC) @@ -211,7 +211,6 @@ CONFIG_NETDEV_USING_PING=y # CONFIG_RT_USING_LWIP=y CONFIG_RT_USING_LWIP141=y -# CONFIG_RT_USING_LWIP202 is not set # CONFIG_RT_USING_LWIP203 is not set # CONFIG_RT_USING_LWIP212 is not set CONFIG_RT_LWIP_MEM_ALIGNMENT=4 @@ -442,6 +441,7 @@ CONFIG_RT_LWIP_USING_PING=y # CONFIG_PKG_USING_MCURSES is not set # CONFIG_PKG_USING_TERMBOX is not set # CONFIG_PKG_USING_VT100 is not set +# CONFIG_PKG_USING_QRCODE is not set # # tools packages @@ -452,7 +452,6 @@ CONFIG_RT_LWIP_USING_PING=y # CONFIG_PKG_USING_SYSTEMVIEW is not set # CONFIG_PKG_USING_SEGGER_RTT is not set # CONFIG_PKG_USING_RDB is not set -# CONFIG_PKG_USING_QRCODE is not set # CONFIG_PKG_USING_ULOG_EASYFLASH is not set # CONFIG_PKG_USING_ULOG_FILE is not set # CONFIG_PKG_USING_LOGMGR is not set @@ -503,6 +502,7 @@ CONFIG_RT_LWIP_USING_PING=y # CONFIG_PKG_USING_POSIX_GETLINE is not set # CONFIG_PKG_USING_POSIX_WCWIDTH is not set # CONFIG_PKG_USING_POSIX_ITOA is not set +# CONFIG_PKG_USING_POSIX_STRINGS is not set # # acceleration: Assembly language or algorithmic acceleration packages @@ -614,6 +614,7 @@ CONFIG_RT_LWIP_USING_PING=y # CONFIG_PKG_USING_SSD1306 is not set # CONFIG_PKG_USING_QKEY is not set # CONFIG_PKG_USING_RS485 is not set +# CONFIG_PKG_USING_RS232 is not set # CONFIG_PKG_USING_NES is not set # CONFIG_PKG_USING_VIRTUAL_SENSOR is not set # CONFIG_PKG_USING_VDEVICE is not set @@ -701,5 +702,7 @@ CONFIG_RT_LWIP_USING_PING=y # CONFIG_PKG_USING_LWGPS is not set # CONFIG_PKG_USING_STATE_MACHINE is not set # CONFIG_PKG_USING_DESIGN_PATTERN is not set +# CONFIG_PKG_USING_CONTROLLER is not set +# CONFIG_PKG_USING_PHASE_LOCKED_LOOP is not set CONFIG_SOC_TM4C129=y CONFIG_RT_USING_UART0=y diff --git a/bsp/tm4c129x/project.ewp b/bsp/tm4c129x/project.ewp index b53eb04e8d..fc3fd31728 100644 --- a/bsp/tm4c129x/project.ewp +++ b/bsp/tm4c129x/project.ewp @@ -299,26 +299,27 @@ @@ -1981,10 +1983,10 @@ $PROJ_DIR$\..\..\libcpu\arm\common\div0.c - $PROJ_DIR$\..\..\libcpu\arm\common\showmem.c + $PROJ_DIR$\..\..\libcpu\arm\common\backtrace.c - $PROJ_DIR$\..\..\libcpu\arm\common\backtrace.c + $PROJ_DIR$\..\..\libcpu\arm\common\showmem.c $PROJ_DIR$\..\..\libcpu\arm\cortex-m4\cpuport.c @@ -1995,30 +1997,30 @@ DeviceDrivers + + $PROJ_DIR$\..\..\components\drivers\ipc\dataqueue.c + + + $PROJ_DIR$\..\..\components\drivers\ipc\waitqueue.c + + + $PROJ_DIR$\..\..\components\drivers\ipc\workqueue.c + + + $PROJ_DIR$\..\..\components\drivers\ipc\completion.c + + + $PROJ_DIR$\..\..\components\drivers\ipc\ringbuffer.c + + + $PROJ_DIR$\..\..\components\drivers\ipc\ringblk_buf.c + + + $PROJ_DIR$\..\..\components\drivers\ipc\pipe.c + $PROJ_DIR$\..\..\components\drivers\serial\serial.c - - $PROJ_DIR$\..\..\components\drivers\src\ringbuffer.c - - - $PROJ_DIR$\..\..\components\drivers\src\pipe.c - - - $PROJ_DIR$\..\..\components\drivers\src\dataqueue.c - - - $PROJ_DIR$\..\..\components\drivers\src\ringblk_buf.c - - - $PROJ_DIR$\..\..\components\drivers\src\workqueue.c - - - $PROJ_DIR$\..\..\components\drivers\src\completion.c - - - $PROJ_DIR$\..\..\components\drivers\src\waitqueue.c - Drivers @@ -2044,43 +2046,43 @@ Kernel - $PROJ_DIR$\..\..\src\ipc.c - - - $PROJ_DIR$\..\..\src\clock.c - - - $PROJ_DIR$\..\..\src\idle.c + $PROJ_DIR$\..\..\src\device.c $PROJ_DIR$\..\..\src\kservice.c - $PROJ_DIR$\..\..\src\device.c + $PROJ_DIR$\..\..\src\components.c $PROJ_DIR$\..\..\src\thread.c + + $PROJ_DIR$\..\..\src\clock.c + + + $PROJ_DIR$\..\..\src\ipc.c + + + $PROJ_DIR$\..\..\src\idle.c + + + $PROJ_DIR$\..\..\src\object.c + + + $PROJ_DIR$\..\..\src\irq.c + $PROJ_DIR$\..\..\src\timer.c $PROJ_DIR$\..\..\src\mem.c - - $PROJ_DIR$\..\..\src\scheduler.c - - - $PROJ_DIR$\..\..\src\irq.c - $PROJ_DIR$\..\..\src\memheap.c - $PROJ_DIR$\..\..\src\components.c - - - $PROJ_DIR$\..\..\src\object.c + $PROJ_DIR$\..\..\src\scheduler.c $PROJ_DIR$\..\..\src\mempool.c @@ -2089,82 +2091,16 @@ Libraries - $PROJ_DIR$\libraries\driverlib\epi.c - - - $PROJ_DIR$\libraries\driverlib\watchdog.c - - - $PROJ_DIR$\libraries\driverlib\can.c - - - $PROJ_DIR$\libraries\driverlib\qei.c - - - $PROJ_DIR$\libraries\driverlib\tiva_timer.c - - - $PROJ_DIR$\libraries\driverlib\crc.c - - - $PROJ_DIR$\libraries\driverlib\ssi.c - - - $PROJ_DIR$\libraries\driverlib\sw_crc.c + $PROJ_DIR$\libraries\driverlib\gpio.c $PROJ_DIR$\libraries\driverlib\aes.c - $PROJ_DIR$\libraries\driverlib\sysexc.c + $PROJ_DIR$\libraries\driverlib\adc.c - $PROJ_DIR$\libraries\driverlib\usb.c - - - $PROJ_DIR$\libraries\driverlib\gpio.c - - - $PROJ_DIR$\libraries\driverlib\lcd.c - - - $PROJ_DIR$\libraries\driverlib\systick.c - - - $PROJ_DIR$\libraries\driverlib\hibernate.c - - - $PROJ_DIR$\libraries\driverlib\des.c - - - $PROJ_DIR$\libraries\driverlib\shamd5.c - - - $PROJ_DIR$\libraries\driverlib\emac.c - - - $PROJ_DIR$\libraries\driverlib\udma.c - - - $PROJ_DIR$\libraries\driverlib\flash.c - - - $PROJ_DIR$\libraries\driverlib\mpu.c - - - $PROJ_DIR$\libraries\driverlib\cpu.c - - - $PROJ_DIR$\libraries\startup\startup_ewarm.c - - - $PROJ_DIR$\libraries\driverlib\interrupt.c - - - $PROJ_DIR$\libraries\driverlib\comp.c - - - $PROJ_DIR$\libraries\driverlib\sysctl.c + $PROJ_DIR$\libraries\driverlib\ssi.c $PROJ_DIR$\libraries\driverlib\eeprom.c @@ -2173,19 +2109,85 @@ $PROJ_DIR$\libraries\driverlib\onewire.c - $PROJ_DIR$\libraries\driverlib\i2c.c - - - $PROJ_DIR$\libraries\driverlib\uart.c + $PROJ_DIR$\libraries\driverlib\emac.c $PROJ_DIR$\libraries\driverlib\fpu.c + + $PROJ_DIR$\libraries\driverlib\qei.c + + + $PROJ_DIR$\libraries\driverlib\systick.c + + + $PROJ_DIR$\libraries\driverlib\can.c + + + $PROJ_DIR$\libraries\driverlib\uart.c + + + $PROJ_DIR$\libraries\driverlib\sysctl.c + + + $PROJ_DIR$\libraries\driverlib\watchdog.c + + + $PROJ_DIR$\libraries\driverlib\hibernate.c + + + $PROJ_DIR$\libraries\driverlib\crc.c + + + $PROJ_DIR$\libraries\driverlib\comp.c + + + $PROJ_DIR$\libraries\driverlib\udma.c + + + $PROJ_DIR$\libraries\driverlib\i2c.c + + + $PROJ_DIR$\libraries\driverlib\tiva_timer.c + + + $PROJ_DIR$\libraries\driverlib\usb.c + + + $PROJ_DIR$\libraries\driverlib\des.c + + + $PROJ_DIR$\libraries\driverlib\sysexc.c + + + $PROJ_DIR$\libraries\startup\startup_ewarm.c + + + $PROJ_DIR$\libraries\driverlib\shamd5.c + + + $PROJ_DIR$\libraries\driverlib\lcd.c + + + $PROJ_DIR$\libraries\driverlib\cpu.c + + + $PROJ_DIR$\libraries\driverlib\epi.c + + + $PROJ_DIR$\libraries\driverlib\interrupt.c + + + $PROJ_DIR$\libraries\driverlib\flash.c + $PROJ_DIR$\libraries\driverlib\pwm.c - $PROJ_DIR$\libraries\driverlib\adc.c + $PROJ_DIR$\libraries\driverlib\sw_crc.c + + + $PROJ_DIR$\libraries\driverlib\mpu.c @@ -2196,9 +2198,6 @@ $PROJ_DIR$\..\..\components\net\lwip-1.4.1\src\api\netdb.c - - $PROJ_DIR$\..\..\components\net\lwip-1.4.1\src\apps\ping\ping.c - $PROJ_DIR$\..\..\components\net\lwip-1.4.1\src\core\ipv4\autoip.c @@ -2244,6 +2243,9 @@ $PROJ_DIR$\..\..\components\net\lwip-1.4.1\src\core\dhcp.c + + $PROJ_DIR$\..\..\components\net\lwip-1.4.1\src\apps\ping\ping.c + $PROJ_DIR$\..\..\components\net\lwip-1.4.1\src\api\netbuf.c diff --git a/bsp/tm4c129x/project.uvproj b/bsp/tm4c129x/project.uvproj index 120c09f1e1..b57c741b04 100644 --- a/bsp/tm4c129x/project.uvproj +++ b/bsp/tm4c129x/project.uvproj @@ -363,7 +363,7 @@ PART_TM4C129XNCZAD, __RTTHREAD__, RT_USING_ARM_LIBC, __CLK_TCK=RT_TICK_PER_SECOND - applications;.;..\..\components\libc\compilers\common;..\..\components\libc\compilers\common\nogcc;..\..\libcpu\arm\common;..\..\libcpu\arm\cortex-m4;..\..\components\drivers\include;..\..\components\drivers\include;drivers;..\..\components\finsh;.;..\..\include;libraries;libraries\inc;libraries\driverlib;..\..\components\net\lwip-1.4.1\src;..\..\components\net\lwip-1.4.1\src\include;..\..\components\net\lwip-1.4.1\src\include\ipv4;..\..\components\net\lwip-1.4.1\src\arch\include;..\..\components\net\lwip-1.4.1\src\include\netif;..\..\components\libc\posix\io\poll;..\..\components\libc\posix\ipc;..\..\examples\utest\testcases\kernel + applications;.;..\..\components\libc\compilers\common;..\..\components\libc\compilers\common\extension;..\..\libcpu\arm\common;..\..\libcpu\arm\cortex-m4;..\..\components\drivers\include;..\..\components\drivers\include;drivers;..\..\components\finsh;.;..\..\include;libraries;libraries\inc;libraries\driverlib;..\..\components\net\lwip-1.4.1\src;..\..\components\net\lwip-1.4.1\src\include;..\..\components\net\lwip-1.4.1\src\include\ipv4;..\..\components\net\lwip-1.4.1\src\arch\include;..\..\components\net\lwip-1.4.1\src\include\netif;..\..\components\libc\posix\io\poll;..\..\components\libc\posix\io\stdio;..\..\components\libc\posix\ipc;..\..\examples\utest\testcases\kernel @@ -405,13 +405,6 @@ Applications - - - board.c - 1 - applications\board.c - - application.c @@ -419,16 +412,16 @@ applications\application.c + + + board.c + 1 + applications\board.c + + Compiler - - - syscalls.c - 1 - ..\..\components\libc\compilers\armlibc\syscalls.c - - syscall_mem.c @@ -438,9 +431,9 @@ - libc_syms.c + syscalls.c 1 - ..\..\components\libc\compilers\armlibc\libc_syms.c + ..\..\components\libc\compilers\armlibc\syscalls.c @@ -469,16 +462,16 @@ - div0.c + backtrace.c 1 - ..\..\libcpu\arm\common\div0.c + ..\..\libcpu\arm\common\backtrace.c - backtrace.c + div0.c 1 - ..\..\libcpu\arm\common\backtrace.c + ..\..\libcpu\arm\common\div0.c @@ -500,58 +493,58 @@ DeviceDrivers - serial.c + waitqueue.c 1 - ..\..\components\drivers\serial\serial.c + ..\..\components\drivers\ipc\waitqueue.c ringblk_buf.c 1 - ..\..\components\drivers\src\ringblk_buf.c - - - - - ringbuffer.c - 1 - ..\..\components\drivers\src\ringbuffer.c - - - - - workqueue.c - 1 - ..\..\components\drivers\src\workqueue.c - - - - - waitqueue.c - 1 - ..\..\components\drivers\src\waitqueue.c - - - - - completion.c - 1 - ..\..\components\drivers\src\completion.c - - - - - pipe.c - 1 - ..\..\components\drivers\src\pipe.c + ..\..\components\drivers\ipc\ringblk_buf.c dataqueue.c 1 - ..\..\components\drivers\src\dataqueue.c + ..\..\components\drivers\ipc\dataqueue.c + + + + + pipe.c + 1 + ..\..\components\drivers\ipc\pipe.c + + + + + ringbuffer.c + 1 + ..\..\components\drivers\ipc\ringbuffer.c + + + + + completion.c + 1 + ..\..\components\drivers\ipc\completion.c + + + + + workqueue.c + 1 + ..\..\components\drivers\ipc\workqueue.c + + + + + serial.c + 1 + ..\..\components\drivers\serial\serial.c @@ -559,16 +552,16 @@ Drivers - drv_uart.c + drv_eth.c 1 - drivers\drv_uart.c + drivers\drv_eth.c - drv_eth.c + drv_uart.c 1 - drivers\drv_eth.c + drivers\drv_uart.c @@ -600,9 +593,9 @@ Kernel - kservice.c + mem.c 1 - ..\..\src\kservice.c + ..\..\src\mem.c @@ -614,37 +607,9 @@ - scheduler.c + ipc.c 1 - ..\..\src\scheduler.c - - - - - timer.c - 1 - ..\..\src\timer.c - - - - - mempool.c - 1 - ..\..\src\mempool.c - - - - - irq.c - 1 - ..\..\src\irq.c - - - - - clock.c - 1 - ..\..\src\clock.c + ..\..\src\ipc.c @@ -656,9 +621,9 @@ - mem.c + timer.c 1 - ..\..\src\mem.c + ..\..\src\timer.c @@ -668,6 +633,13 @@ ..\..\src\device.c + + + idle.c + 1 + ..\..\src\idle.c + + components.c @@ -677,9 +649,23 @@ - ipc.c + kservice.c 1 - ..\..\src\ipc.c + ..\..\src\kservice.c + + + + + scheduler.c + 1 + ..\..\src\scheduler.c + + + + + irq.c + 1 + ..\..\src\irq.c @@ -691,9 +677,16 @@ - idle.c + mempool.c 1 - ..\..\src\idle.c + ..\..\src\mempool.c + + + + + clock.c + 1 + ..\..\src\clock.c @@ -701,37 +694,9 @@ Libraries - shamd5.c + crc.c 1 - libraries\driverlib\shamd5.c - - - - - des.c - 1 - libraries\driverlib\des.c - - - - - hibernate.c - 1 - libraries\driverlib\hibernate.c - - - - - ssi.c - 1 - libraries\driverlib\ssi.c - - - - - udma.c - 1 - libraries\driverlib\udma.c + libraries\driverlib\crc.c @@ -741,27 +706,6 @@ libraries\startup\startup_rvmdk.S - - - gpio.c - 1 - libraries\driverlib\gpio.c - - - - - i2c.c - 1 - libraries\driverlib\i2c.c - - - - - pwm.c - 1 - libraries\driverlib\pwm.c - - systick.c @@ -769,13 +713,6 @@ libraries\driverlib\systick.c - - - fpu.c - 1 - libraries\driverlib\fpu.c - - usb.c @@ -785,16 +722,23 @@ - adc.c + shamd5.c 1 - libraries\driverlib\adc.c + libraries\driverlib\shamd5.c - lcd.c + flash.c 1 - libraries\driverlib\lcd.c + libraries\driverlib\flash.c + + + + + fpu.c + 1 + libraries\driverlib\fpu.c @@ -806,37 +750,16 @@ - interrupt.c + des.c 1 - libraries\driverlib\interrupt.c + libraries\driverlib\des.c - mpu.c + sysexc.c 1 - libraries\driverlib\mpu.c - - - - - crc.c - 1 - libraries\driverlib\crc.c - - - - - tiva_timer.c - 1 - libraries\driverlib\tiva_timer.c - - - - - aes.c - 1 - libraries\driverlib\aes.c + libraries\driverlib\sysexc.c @@ -846,13 +769,6 @@ libraries\driverlib\emac.c - - - sw_crc.c - 1 - libraries\driverlib\sw_crc.c - - epi.c @@ -862,30 +778,9 @@ - eeprom.c + mpu.c 1 - libraries\driverlib\eeprom.c - - - - - cpu.c - 1 - libraries\driverlib\cpu.c - - - - - qei.c - 1 - libraries\driverlib\qei.c - - - - - can.c - 1 - libraries\driverlib\can.c + libraries\driverlib\mpu.c @@ -902,6 +797,55 @@ libraries\driverlib\comp.c + + + ssi.c + 1 + libraries\driverlib\ssi.c + + + + + eeprom.c + 1 + libraries\driverlib\eeprom.c + + + + + adc.c + 1 + libraries\driverlib\adc.c + + + + + qei.c + 1 + libraries\driverlib\qei.c + + + + + interrupt.c + 1 + libraries\driverlib\interrupt.c + + + + + udma.c + 1 + libraries\driverlib\udma.c + + + + + cpu.c + 1 + libraries\driverlib\cpu.c + + onewire.c @@ -911,9 +855,16 @@ - sysexc.c + hibernate.c 1 - libraries\driverlib\sysexc.c + libraries\driverlib\hibernate.c + + + + + can.c + 1 + libraries\driverlib\can.c @@ -925,14 +876,63 @@ - flash.c + i2c.c 1 - libraries\driverlib\flash.c + libraries\driverlib\i2c.c + + + + + lcd.c + 1 + libraries\driverlib\lcd.c + + + + + aes.c + 1 + libraries\driverlib\aes.c + + + + + pwm.c + 1 + libraries\driverlib\pwm.c + + + + + sw_crc.c + 1 + libraries\driverlib\sw_crc.c + + + + + tiva_timer.c + 1 + libraries\driverlib\tiva_timer.c + + + + + gpio.c + 1 + libraries\driverlib\gpio.c lwIP + + + ping.c + 1 + ..\..\components\net\lwip-1.4.1\src\apps\ping\ping.c + + etharp.c @@ -1003,13 +1003,6 @@ ..\..\components\net\lwip-1.4.1\src\api\tcpip.c - - - ping.c - 1 - ..\..\components\net\lwip-1.4.1\src\apps\ping\ping.c - - inet.c diff --git a/bsp/w60x/.config b/bsp/w60x/.config index 2ba676ec4e..7acb1afeeb 100644 --- a/bsp/w60x/.config +++ b/bsp/w60x/.config @@ -7,7 +7,6 @@ # RT-Thread Kernel # CONFIG_RT_NAME_MAX=8 -# CONFIG_RT_USING_BIG_ENDIAN is not set # CONFIG_RT_USING_ARCH_DATA_TYPE is not set # CONFIG_RT_USING_SMP is not set CONFIG_RT_ALIGN_SIZE=4 @@ -245,7 +244,6 @@ CONFIG_RT_WLAN_WORKQUEUE_THREAD_PRIO=22 # # POSIX layer and C standard library # -# CONFIG_RT_USING_MODULE is not set CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8 # @@ -261,7 +259,9 @@ CONFIG_RT_USING_POSIX_SELECT=y # CONFIG_RT_USING_POSIX_MMAN is not set # CONFIG_RT_USING_POSIX_DELAY is not set # CONFIG_RT_USING_POSIX_CLOCK is not set +# CONFIG_RT_USING_POSIX_TIMER is not set # CONFIG_RT_USING_PTHREADS is not set +# CONFIG_RT_USING_MODULE is not set # # Interprocess Communication (IPC) @@ -308,8 +308,7 @@ CONFIG_NETDEV_IPV6=0 # CONFIG_RT_USING_LWIP=y # CONFIG_RT_USING_LWIP141 is not set -CONFIG_RT_USING_LWIP202=y -# CONFIG_RT_USING_LWIP203 is not set +CONFIG_RT_USING_LWIP203=y # CONFIG_RT_USING_LWIP212 is not set # CONFIG_RT_USING_LWIP_IPV6 is not set CONFIG_RT_LWIP_MEM_ALIGNMENT=4 @@ -469,11 +468,9 @@ CONFIG_NETUTILS_NTP_HOSTNAME2="ntp.rt-thread.org" CONFIG_NETUTILS_NTP_HOSTNAME3="edu.ntp.org.cn" # CONFIG_PKG_NETUTILS_TELNET is not set # CONFIG_PKG_NETUTILS_TCPDUMP is not set -# CONFIG_PKG_USING_NETUTILS_LATEST_VERSION is not set -CONFIG_PKG_USING_NETUTILS_V131=y -# CONFIG_PKG_USING_NETUTILS_V130 is not set -CONFIG_PKG_NETUTILS_VER="v1.3.1" -CONFIG_PKG_NETUTILS_VER_NUM=0x10301 +CONFIG_PKG_USING_NETUTILS_LATEST_VERSION=y +CONFIG_PKG_NETUTILS_VER="latest" +CONFIG_PKG_NETUTILS_VER_NUM=0x99999 # CONFIG_PKG_USING_CMUX is not set # CONFIG_PKG_USING_PPP_DEVICE is not set # CONFIG_PKG_USING_AT_DEVICE is not set @@ -585,6 +582,7 @@ CONFIG_PKG_NETUTILS_VER_NUM=0x10301 # CONFIG_PKG_USING_MCURSES is not set # CONFIG_PKG_USING_TERMBOX is not set # CONFIG_PKG_USING_VT100 is not set +# CONFIG_PKG_USING_QRCODE is not set # # tools packages @@ -595,7 +593,6 @@ CONFIG_PKG_NETUTILS_VER_NUM=0x10301 # CONFIG_PKG_USING_SYSTEMVIEW is not set # CONFIG_PKG_USING_SEGGER_RTT is not set # CONFIG_PKG_USING_RDB is not set -# CONFIG_PKG_USING_QRCODE is not set # CONFIG_PKG_USING_ULOG_EASYFLASH is not set # CONFIG_PKG_USING_ULOG_FILE is not set # CONFIG_PKG_USING_LOGMGR is not set @@ -646,6 +643,7 @@ CONFIG_PKG_NETUTILS_VER_NUM=0x10301 # CONFIG_PKG_USING_POSIX_GETLINE is not set # CONFIG_PKG_USING_POSIX_WCWIDTH is not set # CONFIG_PKG_USING_POSIX_ITOA is not set +# CONFIG_PKG_USING_POSIX_STRINGS is not set # # acceleration: Assembly language or algorithmic acceleration packages @@ -761,6 +759,7 @@ CONFIG_PKG_WM_LIBRARIES_VER="latest" # CONFIG_PKG_USING_SSD1306 is not set # CONFIG_PKG_USING_QKEY is not set # CONFIG_PKG_USING_RS485 is not set +# CONFIG_PKG_USING_RS232 is not set # CONFIG_PKG_USING_NES is not set # CONFIG_PKG_USING_VIRTUAL_SENSOR is not set # CONFIG_PKG_USING_VDEVICE is not set @@ -848,6 +847,8 @@ CONFIG_PKG_WM_LIBRARIES_VER="latest" # CONFIG_PKG_USING_LWGPS is not set # CONFIG_PKG_USING_STATE_MACHINE is not set # CONFIG_PKG_USING_DESIGN_PATTERN is not set +# CONFIG_PKG_USING_CONTROLLER is not set +# CONFIG_PKG_USING_PHASE_LOCKED_LOOP is not set # # Env config diff --git a/bsp/w60x/project.uvprojx b/bsp/w60x/project.uvprojx index c018669780..efac6bce9d 100644 --- a/bsp/w60x/project.uvprojx +++ b/bsp/w60x/project.uvprojx @@ -335,7 +335,7 @@ --c99 --gnu __RTTHREAD__, RT_USING_ARM_LIBC, __CLK_TCK=RT_TICK_PER_SECOND - applications;..\..\components\libc\compilers\common;..\..\components\libc\compilers\common\nogcc;..\..\libcpu\arm\common;..\..\libcpu\arm\cortex-m3;..\..\components\drivers\hwcrypto;.;..\..\components\drivers\include;..\..\components\drivers\include;..\..\components\drivers\include;..\..\components\drivers\include;..\..\components\drivers\include;..\..\components\drivers\spi;..\..\components\drivers\include;..\..\components\drivers\include;..\..\components\drivers\include;..\..\components\drivers\wlan;drivers;..\..\components\dfs\include;..\..\components\dfs\filesystems\devfs;..\..\components\finsh;.;..\..\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;..\..\components\net\lwip_dhcpd;oneshot;..\..\components\libc\posix\io;..\..\components\libc\posix\io\poll;..\..\components\libc\posix\ipc;..\..\components\net\netdev\include;..\..\components\net\sal_socket\include;..\..\components\net\sal_socket\include\socket;..\..\components\net\sal_socket\impl;..\..\components\net\sal_socket\include\dfs_net;..\..\components\net\sal_socket\include\socket\sys_socket;..\..\examples\utest\testcases\kernel;..\..\components\utilities\ulog + applications;..\..\components\libc\compilers\common;..\..\components\libc\compilers\common\extension;..\..\libcpu\arm\common;..\..\libcpu\arm\cortex-m3;..\..\components\drivers\hwcrypto;.;..\..\components\drivers\include;..\..\components\drivers\include;..\..\components\drivers\include;..\..\components\drivers\include;..\..\components\drivers\include;..\..\components\drivers\include;..\..\components\drivers\spi;..\..\components\drivers\include;..\..\components\drivers\include;..\..\components\drivers\wlan;drivers;..\..\components\dfs\include;..\..\components\dfs\filesystems\devfs;..\..\components\finsh;.;..\..\include;..\..\components\net\lwip-2.0.3\src;..\..\components\net\lwip-2.0.3\src\include;..\..\components\net\lwip-2.0.3\src\include\ipv4;..\..\components\net\lwip-2.0.3\src\arch\include;..\..\components\net\lwip-2.0.3\src\include\netif;..\..\components\net\lwip_dhcpd;oneshot;..\..\components\libc\posix\io\poll;..\..\components\libc\posix\io\stdio;..\..\components\libc\posix\ipc;..\..\components\net\netdev\include;..\..\components\net\sal_socket\include;..\..\components\net\sal_socket\include\socket;..\..\components\net\sal_socket\impl;..\..\components\net\sal_socket\include\dfs_net;..\..\components\net\sal_socket\include\socket\sys_socket;..\..\examples\utest\testcases\kernel;..\..\components\utilities\ulog @@ -395,13 +395,6 @@ ..\..\components\libc\compilers\armlibc\syscalls.c - - - libc_syms.c - 1 - ..\..\components\libc\compilers\armlibc\libc_syms.c - - syscall_mem.c @@ -411,16 +404,16 @@ - stdlib.c + time.c 1 - ..\..\components\libc\compilers\common\stdlib.c + ..\..\components\libc\compilers\common\time.c - time.c + stdlib.c 1 - ..\..\components\libc\compilers\common\time.c + ..\..\components\libc\compilers\common\stdlib.c @@ -534,6 +527,55 @@ ..\..\components\drivers\i2c\i2c-bit-ops.c + + + ringblk_buf.c + 1 + ..\..\components\drivers\ipc\ringblk_buf.c + + + + + dataqueue.c + 1 + ..\..\components\drivers\ipc\dataqueue.c + + + + + workqueue.c + 1 + ..\..\components\drivers\ipc\workqueue.c + + + + + ringbuffer.c + 1 + ..\..\components\drivers\ipc\ringbuffer.c + + + + + waitqueue.c + 1 + ..\..\components\drivers\ipc\waitqueue.c + + + + + completion.c + 1 + ..\..\components\drivers\ipc\completion.c + + + + + pipe.c + 1 + ..\..\components\drivers\ipc\pipe.c + + rt_drv_pwm.c @@ -583,55 +625,6 @@ ..\..\components\drivers\spi\spi_dev.c - - - ringbuffer.c - 1 - ..\..\components\drivers\src\ringbuffer.c - - - - - dataqueue.c - 1 - ..\..\components\drivers\src\dataqueue.c - - - - - pipe.c - 1 - ..\..\components\drivers\src\pipe.c - - - - - waitqueue.c - 1 - ..\..\components\drivers\src\waitqueue.c - - - - - ringblk_buf.c - 1 - ..\..\components\drivers\src\ringblk_buf.c - - - - - completion.c - 1 - ..\..\components\drivers\src\completion.c - - - - - workqueue.c - 1 - ..\..\components\drivers\src\workqueue.c - - watchdog.c @@ -817,6 +810,76 @@ Kernel + + + mem.c + 1 + ..\..\src\mem.c + + + + + ipc.c + 1 + ..\..\src\ipc.c + + + + + components.c + 1 + ..\..\src\components.c + + + + + object.c + 1 + ..\..\src\object.c + + + + + device.c + 1 + ..\..\src\device.c + + + + + timer.c + 1 + ..\..\src\timer.c + + + + + scheduler.c + 1 + ..\..\src\scheduler.c + + + + + irq.c + 1 + ..\..\src\irq.c + + + + + kservice.c + 1 + ..\..\src\kservice.c + + + + + idle.c + 1 + ..\..\src\idle.c + + thread.c @@ -831,34 +894,6 @@ ..\..\src\clock.c - - - ipc.c - 1 - ..\..\src\ipc.c - - - - - mem.c - 1 - ..\..\src\mem.c - - - - - irq.c - 1 - ..\..\src\irq.c - - - - - components.c - 1 - ..\..\src\components.c - - mempool.c @@ -866,48 +901,6 @@ ..\..\src\mempool.c - - - idle.c - 1 - ..\..\src\idle.c - - - - - device.c - 1 - ..\..\src\device.c - - - - - scheduler.c - 1 - ..\..\src\scheduler.c - - - - - kservice.c - 1 - ..\..\src\kservice.c - - - - - timer.c - 1 - ..\..\src\timer.c - - - - - object.c - 1 - ..\..\src\object.c - - lwIP @@ -915,259 +908,259 @@ netdb.c 1 - ..\..\components\net\lwip-2.0.2\src\api\netdb.c + ..\..\components\net\lwip-2.0.3\src\api\netdb.c ip.c 1 - ..\..\components\net\lwip-2.0.2\src\core\ip.c + ..\..\components\net\lwip-2.0.3\src\core\ip.c autoip.c 1 - ..\..\components\net\lwip-2.0.2\src\core\ipv4\autoip.c + ..\..\components\net\lwip-2.0.3\src\core\ipv4\autoip.c ethernet.c 1 - ..\..\components\net\lwip-2.0.2\src\netif\ethernet.c + ..\..\components\net\lwip-2.0.3\src\netif\ethernet.c netif.c 1 - ..\..\components\net\lwip-2.0.2\src\core\netif.c + ..\..\components\net\lwip-2.0.3\src\core\netif.c sys.c 1 - ..\..\components\net\lwip-2.0.2\src\core\sys.c + ..\..\components\net\lwip-2.0.3\src\core\sys.c sockets.c 1 - ..\..\components\net\lwip-2.0.2\src\api\sockets.c + ..\..\components\net\lwip-2.0.3\src\api\sockets.c netifapi.c 1 - ..\..\components\net\lwip-2.0.2\src\api\netifapi.c + ..\..\components\net\lwip-2.0.3\src\api\netifapi.c tcpip.c 1 - ..\..\components\net\lwip-2.0.2\src\api\tcpip.c + ..\..\components\net\lwip-2.0.3\src\api\tcpip.c ip4_addr.c 1 - ..\..\components\net\lwip-2.0.2\src\core\ipv4\ip4_addr.c + ..\..\components\net\lwip-2.0.3\src\core\ipv4\ip4_addr.c dhcp.c 1 - ..\..\components\net\lwip-2.0.2\src\core\ipv4\dhcp.c + ..\..\components\net\lwip-2.0.3\src\core\ipv4\dhcp.c init.c 1 - ..\..\components\net\lwip-2.0.2\src\core\init.c + ..\..\components\net\lwip-2.0.3\src\core\init.c ethernetif.c 1 - ..\..\components\net\lwip-2.0.2\src\netif\ethernetif.c + ..\..\components\net\lwip-2.0.3\src\netif\ethernetif.c etharp.c 1 - ..\..\components\net\lwip-2.0.2\src\core\ipv4\etharp.c + ..\..\components\net\lwip-2.0.3\src\core\ipv4\etharp.c memp.c 1 - ..\..\components\net\lwip-2.0.2\src\core\memp.c - - - - - ip4.c - 1 - ..\..\components\net\lwip-2.0.2\src\core\ipv4\ip4.c - - - - - netbuf.c - 1 - ..\..\components\net\lwip-2.0.2\src\api\netbuf.c - - - - - raw.c - 1 - ..\..\components\net\lwip-2.0.2\src\core\raw.c + ..\..\components\net\lwip-2.0.3\src\core\memp.c ping.c 1 - ..\..\components\net\lwip-2.0.2\src\apps\ping\ping.c + ..\..\components\net\lwip-2.0.3\src\apps\ping\ping.c + + + + + ip4.c + 1 + ..\..\components\net\lwip-2.0.3\src\core\ipv4\ip4.c + + + + + netbuf.c + 1 + ..\..\components\net\lwip-2.0.3\src\api\netbuf.c + + + + + raw.c + 1 + ..\..\components\net\lwip-2.0.3\src\core\raw.c ip4_frag.c 1 - ..\..\components\net\lwip-2.0.2\src\core\ipv4\ip4_frag.c + ..\..\components\net\lwip-2.0.3\src\core\ipv4\ip4_frag.c tcp_out.c 1 - ..\..\components\net\lwip-2.0.2\src\core\tcp_out.c + ..\..\components\net\lwip-2.0.3\src\core\tcp_out.c lowpan6.c 1 - ..\..\components\net\lwip-2.0.2\src\netif\lowpan6.c + ..\..\components\net\lwip-2.0.3\src\netif\lowpan6.c icmp.c 1 - ..\..\components\net\lwip-2.0.2\src\core\ipv4\icmp.c + ..\..\components\net\lwip-2.0.3\src\core\ipv4\icmp.c api_lib.c 1 - ..\..\components\net\lwip-2.0.2\src\api\api_lib.c + ..\..\components\net\lwip-2.0.3\src\api\api_lib.c inet_chksum.c 1 - ..\..\components\net\lwip-2.0.2\src\core\inet_chksum.c + ..\..\components\net\lwip-2.0.3\src\core\inet_chksum.c stats.c 1 - ..\..\components\net\lwip-2.0.2\src\core\stats.c + ..\..\components\net\lwip-2.0.3\src\core\stats.c err.c 1 - ..\..\components\net\lwip-2.0.2\src\api\err.c + ..\..\components\net\lwip-2.0.3\src\api\err.c tcp_in.c 1 - ..\..\components\net\lwip-2.0.2\src\core\tcp_in.c + ..\..\components\net\lwip-2.0.3\src\core\tcp_in.c dns.c 1 - ..\..\components\net\lwip-2.0.2\src\core\dns.c + ..\..\components\net\lwip-2.0.3\src\core\dns.c sys_arch.c 1 - ..\..\components\net\lwip-2.0.2\src\arch\sys_arch.c + ..\..\components\net\lwip-2.0.3\src\arch\sys_arch.c timeouts.c 1 - ..\..\components\net\lwip-2.0.2\src\core\timeouts.c + ..\..\components\net\lwip-2.0.3\src\core\timeouts.c igmp.c 1 - ..\..\components\net\lwip-2.0.2\src\core\ipv4\igmp.c + ..\..\components\net\lwip-2.0.3\src\core\ipv4\igmp.c udp.c 1 - ..\..\components\net\lwip-2.0.2\src\core\udp.c + ..\..\components\net\lwip-2.0.3\src\core\udp.c pbuf.c 1 - ..\..\components\net\lwip-2.0.2\src\core\pbuf.c + ..\..\components\net\lwip-2.0.3\src\core\pbuf.c def.c 1 - ..\..\components\net\lwip-2.0.2\src\core\def.c + ..\..\components\net\lwip-2.0.3\src\core\def.c api_msg.c 1 - ..\..\components\net\lwip-2.0.2\src\api\api_msg.c + ..\..\components\net\lwip-2.0.3\src\api\api_msg.c tcp.c 1 - ..\..\components\net\lwip-2.0.2\src\core\tcp.c + ..\..\components\net\lwip-2.0.3\src\core\tcp.c @@ -1194,7 +1187,7 @@ select.c 1 - ..\..\components\libc\posix\io\select.c + ..\..\components\libc\posix\io\poll\select.c @@ -1223,16 +1216,16 @@ - net_netdb.c + dfs_net.c 1 - ..\..\components\net\sal_socket\socket\net_netdb.c + ..\..\components\net\sal_socket\dfs_net\dfs_net.c - dfs_net.c + net_sockets.c 1 - ..\..\components\net\sal_socket\dfs_net\dfs_net.c + ..\..\components\net\sal_socket\socket\net_sockets.c @@ -1251,9 +1244,9 @@ - net_sockets.c + net_netdb.c 1 - ..\..\components\net\sal_socket\socket\net_sockets.c + ..\..\components\net\sal_socket\socket\net_netdb.c diff --git a/bsp/w60x/rtconfig.h b/bsp/w60x/rtconfig.h index 6aa4458bae..2ae579b8f1 100644 --- a/bsp/w60x/rtconfig.h +++ b/bsp/w60x/rtconfig.h @@ -191,7 +191,7 @@ /* light weight TCP/IP stack */ #define RT_USING_LWIP -#define RT_USING_LWIP202 +#define RT_USING_LWIP203 #define RT_LWIP_MEM_ALIGNMENT 4 #define RT_LWIP_IGMP #define RT_LWIP_ICMP @@ -282,8 +282,8 @@ #define NETUTILS_NTP_HOSTNAME "cn.ntp.org.cn" #define NETUTILS_NTP_HOSTNAME2 "ntp.rt-thread.org" #define NETUTILS_NTP_HOSTNAME3 "edu.ntp.org.cn" -#define PKG_USING_NETUTILS_V131 -#define PKG_NETUTILS_VER_NUM 0x10301 +#define PKG_USING_NETUTILS_LATEST_VERSION +#define PKG_NETUTILS_VER_NUM 0x99999 /* IoT Cloud */ diff --git a/bsp/wch/arm/ch32f103c8-core/.config b/bsp/wch/arm/ch32f103c8-core/.config index a817be92a3..327fe0db7c 100644 --- a/bsp/wch/arm/ch32f103c8-core/.config +++ b/bsp/wch/arm/ch32f103c8-core/.config @@ -7,7 +7,6 @@ # RT-Thread Kernel # CONFIG_RT_NAME_MAX=8 -# CONFIG_RT_USING_BIG_ENDIAN is not set # CONFIG_RT_USING_ARCH_DATA_TYPE is not set # CONFIG_RT_USING_SMP is not set CONFIG_RT_ALIGN_SIZE=4 @@ -179,7 +178,6 @@ CONFIG_RT_USING_WDT=y # # POSIX layer and C standard library # -# CONFIG_RT_USING_MODULE is not set CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8 # @@ -188,7 +186,9 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8 # CONFIG_RT_USING_POSIX_FS is not set # CONFIG_RT_USING_POSIX_DELAY is not set # CONFIG_RT_USING_POSIX_CLOCK is not set +# CONFIG_RT_USING_POSIX_TIMER is not set # CONFIG_RT_USING_PTHREADS is not set +# CONFIG_RT_USING_MODULE is not set # # Interprocess Communication (IPC) @@ -398,6 +398,7 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8 # CONFIG_PKG_USING_MCURSES is not set # CONFIG_PKG_USING_TERMBOX is not set # CONFIG_PKG_USING_VT100 is not set +# CONFIG_PKG_USING_QRCODE is not set # # tools packages @@ -408,7 +409,6 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8 # CONFIG_PKG_USING_SYSTEMVIEW is not set # CONFIG_PKG_USING_SEGGER_RTT is not set # CONFIG_PKG_USING_RDB is not set -# CONFIG_PKG_USING_QRCODE is not set # CONFIG_PKG_USING_ULOG_EASYFLASH is not set # CONFIG_PKG_USING_ULOG_FILE is not set # CONFIG_PKG_USING_LOGMGR is not set @@ -459,6 +459,7 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8 # CONFIG_PKG_USING_POSIX_GETLINE is not set # CONFIG_PKG_USING_POSIX_WCWIDTH is not set # CONFIG_PKG_USING_POSIX_ITOA is not set +# CONFIG_PKG_USING_POSIX_STRINGS is not set # # acceleration: Assembly language or algorithmic acceleration packages @@ -570,6 +571,7 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8 # CONFIG_PKG_USING_SSD1306 is not set # CONFIG_PKG_USING_QKEY is not set # CONFIG_PKG_USING_RS485 is not set +# CONFIG_PKG_USING_RS232 is not set # CONFIG_PKG_USING_NES is not set # CONFIG_PKG_USING_VIRTUAL_SENSOR is not set # CONFIG_PKG_USING_VDEVICE is not set @@ -657,6 +659,8 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8 # CONFIG_PKG_USING_LWGPS is not set # CONFIG_PKG_USING_STATE_MACHINE is not set # CONFIG_PKG_USING_DESIGN_PATTERN is not set +# CONFIG_PKG_USING_CONTROLLER is not set +# CONFIG_PKG_USING_PHASE_LOCKED_LOOP is not set CONFIG_SOC_ARM_FAMILY_CH32=y CONFIG_SOC_ARM_SERIES_CH32F103=y diff --git a/bsp/wch/arm/ch32f103c8-core/project.uvprojx b/bsp/wch/arm/ch32f103c8-core/project.uvprojx index 2e6f0bc6e5..b00c028f60 100644 --- a/bsp/wch/arm/ch32f103c8-core/project.uvprojx +++ b/bsp/wch/arm/ch32f103c8-core/project.uvprojx @@ -335,7 +335,7 @@ __RTTHREAD__, RT_USING_ARM_LIBC, __CLK_TCK=RT_TICK_PER_SECOND - applications;.;..\Libraries\CH32F10x_StdPeriph_Driver\CMSIS;..\Libraries\CH32F10x_StdPeriph_Driver\CMSIS\WCH\CH32F10x\Include;..\Libraries\CH32F10x_StdPeriph_Driver\StdPeriph_Driver\inc;..\..\..\..\components\libc\compilers\common;..\..\..\..\components\libc\compilers\common\nogcc;..\..\..\..\libcpu\arm\common;..\..\..\..\libcpu\arm\cortex-m3;..\..\..\..\components\drivers\include;..\..\..\..\components\drivers\include;..\..\..\..\components\drivers\include;..\..\..\..\components\drivers\include;..\..\..\..\components\drivers\spi;..\..\..\..\components\drivers\include;..\..\..\..\components\drivers\include;..\..\..\..\components\drivers\include;board;..\Libraries\ch32_drivers;..\Libraries\ch32_drivers\config;..\..\..\..\components\finsh;.;..\..\..\..\include;..\..\..\..\components\libc\posix\io\poll;..\..\..\..\components\libc\posix\ipc;..\..\..\..\examples\utest\testcases\kernel + applications;.;..\Libraries\CH32F10x_StdPeriph_Driver\CMSIS;..\Libraries\CH32F10x_StdPeriph_Driver\CMSIS\WCH\CH32F10x\Include;..\Libraries\CH32F10x_StdPeriph_Driver\StdPeriph_Driver\inc;..\..\..\..\components\libc\compilers\common;..\..\..\..\components\libc\compilers\common\extension;..\..\..\..\libcpu\arm\common;..\..\..\..\libcpu\arm\cortex-m3;..\..\..\..\components\drivers\include;..\..\..\..\components\drivers\include;..\..\..\..\components\drivers\include;..\..\..\..\components\drivers\include;..\..\..\..\components\drivers\include;..\..\..\..\components\drivers\spi;..\..\..\..\components\drivers\include;..\..\..\..\components\drivers\include;board;..\Libraries\ch32_drivers;..\Libraries\ch32_drivers\config;..\..\..\..\components\finsh;.;..\..\..\..\include;..\..\..\..\components\libc\posix\io\poll;..\..\..\..\components\libc\posix\io\stdio;..\..\..\..\components\libc\posix\ipc;..\..\..\..\examples\utest\testcases\kernel @@ -533,9 +533,9 @@ Compiler - libc_syms.c + syscall_mem.c 1 - ..\..\..\..\components\libc\compilers\armlibc\libc_syms.c + ..\..\..\..\components\libc\compilers\armlibc\syscall_mem.c @@ -547,9 +547,9 @@ - syscall_mem.c + stdlib.c 1 - ..\..\..\..\components\libc\compilers\armlibc\syscall_mem.c + ..\..\..\..\components\libc\compilers\common\stdlib.c @@ -559,13 +559,6 @@ ..\..\..\..\components\libc\compilers\common\time.c - - - stdlib.c - 1 - ..\..\..\..\components\libc\compilers\common\stdlib.c - - CPU @@ -592,16 +585,16 @@ - context_rvds.S - 2 - ..\..\..\..\libcpu\arm\cortex-m3\context_rvds.S + cpuport.c + 1 + ..\..\..\..\libcpu\arm\cortex-m3\cpuport.c - cpuport.c - 1 - ..\..\..\..\libcpu\arm\cortex-m3\cpuport.c + context_rvds.S + 2 + ..\..\..\..\libcpu\arm\cortex-m3\context_rvds.S @@ -621,6 +614,55 @@ ..\..\..\..\components\drivers\i2c\i2c_dev.c + + + ringblk_buf.c + 1 + ..\..\..\..\components\drivers\ipc\ringblk_buf.c + + + + + workqueue.c + 1 + ..\..\..\..\components\drivers\ipc\workqueue.c + + + + + completion.c + 1 + ..\..\..\..\components\drivers\ipc\completion.c + + + + + dataqueue.c + 1 + ..\..\..\..\components\drivers\ipc\dataqueue.c + + + + + pipe.c + 1 + ..\..\..\..\components\drivers\ipc\pipe.c + + + + + waitqueue.c + 1 + ..\..\..\..\components\drivers\ipc\waitqueue.c + + + + + ringbuffer.c + 1 + ..\..\..\..\components\drivers\ipc\ringbuffer.c + + pin.c @@ -656,55 +698,6 @@ ..\..\..\..\components\drivers\spi\spi_dev.c - - - completion.c - 1 - ..\..\..\..\components\drivers\src\completion.c - - - - - workqueue.c - 1 - ..\..\..\..\components\drivers\src\workqueue.c - - - - - ringbuffer.c - 1 - ..\..\..\..\components\drivers\src\ringbuffer.c - - - - - pipe.c - 1 - ..\..\..\..\components\drivers\src\pipe.c - - - - - dataqueue.c - 1 - ..\..\..\..\components\drivers\src\dataqueue.c - - - - - ringblk_buf.c - 1 - ..\..\..\..\components\drivers\src\ringblk_buf.c - - - - - waitqueue.c - 1 - ..\..\..\..\components\drivers\src\waitqueue.c - - watchdog.c @@ -831,6 +824,20 @@ ..\..\..\..\src\thread.c + + + mem.c + 1 + ..\..\..\..\src\mem.c + + + + + idle.c + 1 + ..\..\..\..\src\idle.c + + timer.c @@ -838,34 +845,6 @@ ..\..\..\..\src\timer.c - - - ipc.c - 1 - ..\..\..\..\src\ipc.c - - - - - object.c - 1 - ..\..\..\..\src\object.c - - - - - device.c - 1 - ..\..\..\..\src\device.c - - - - - mempool.c - 1 - ..\..\..\..\src\mempool.c - - clock.c @@ -875,16 +854,9 @@ - mem.c + irq.c 1 - ..\..\..\..\src\mem.c - - - - - kservice.c - 1 - ..\..\..\..\src\kservice.c + ..\..\..\..\src\irq.c @@ -896,16 +868,37 @@ - irq.c + object.c 1 - ..\..\..\..\src\irq.c + ..\..\..\..\src\object.c - idle.c + mempool.c 1 - ..\..\..\..\src\idle.c + ..\..\..\..\src\mempool.c + + + + + kservice.c + 1 + ..\..\..\..\src\kservice.c + + + + + device.c + 1 + ..\..\..\..\src\device.c + + + + + ipc.c + 1 + ..\..\..\..\src\ipc.c diff --git a/bsp/wch/arm/ch32f203r-evt/.config b/bsp/wch/arm/ch32f203r-evt/.config index 885c72a07d..3dbe8762f1 100644 --- a/bsp/wch/arm/ch32f203r-evt/.config +++ b/bsp/wch/arm/ch32f203r-evt/.config @@ -7,7 +7,6 @@ # RT-Thread Kernel # CONFIG_RT_NAME_MAX=8 -# CONFIG_RT_USING_BIG_ENDIAN is not set # CONFIG_RT_USING_ARCH_DATA_TYPE is not set # CONFIG_RT_USING_SMP is not set CONFIG_RT_ALIGN_SIZE=4 diff --git a/bsp/wch/arm/ch32f203r-evt/project.uvprojx b/bsp/wch/arm/ch32f203r-evt/project.uvprojx index 45e32a607f..a1dcab10eb 100644 --- a/bsp/wch/arm/ch32f203r-evt/project.uvprojx +++ b/bsp/wch/arm/ch32f203r-evt/project.uvprojx @@ -1,10 +1,7 @@ - 2.1 -
### uVision Project, (C) Keil Software
- rtthread-ch32f203x @@ -18,28 +15,28 @@ Keil.WCH32F2xx_DFP.1.0.0 http://www.wch.cn/ IRAM(0x20000000,0x8000) IROM(0x08000000,0x40000) CPUTYPE("Cortex-M3") CLOCK(12000000) ELITTLE - - + + UL2CM3(-S0 -C0 -P0 -FD20000000 -FC1000 -FN1 -FF0CH32F2xx -FS08000000 -FL078000 -FP0($$Device:CH32F203RC$Flash\CH32F2xx.FLM)) 0 $$Device:CH32F203RC$Device\Include\ch32f20x.h - - - - - - - - - + + + + + + + + + $$Device:CH32F203RC$SVD\CH32F203xx.svd 0 0 - - - - - + + + + + 0 0 @@ -61,8 +58,8 @@ 0 0 - - + + 0 0 0 @@ -71,8 +68,8 @@ 0 0 - - + + 0 0 0 @@ -82,14 +79,14 @@ 1 0 fromelf --bin !L --output rtthread.bin - + 0 0 0 0 0 - + 0 @@ -103,8 +100,8 @@ 0 0 3 - - + + 1 @@ -113,7 +110,7 @@ DCM.DLL -pCM3 SARMCM3.DLL - + TCM.DLL -pCM3 @@ -137,11 +134,11 @@ 1 BIN\UL2CM3.DLL - - - - - + + + + + 0 @@ -174,7 +171,7 @@ 0 0 "Cortex-M3" - + 0 0 0 @@ -308,7 +305,7 @@ 0x0 - + 1 @@ -335,10 +332,10 @@ 0 0 - + __RTTHREAD__, RT_USING_ARM_LIBC, __CLK_TCK=RT_TICK_PER_SECOND - - applications;.;..\Libraries\CH32F20x_StdPeriph_Driver\CMSIS;..\Libraries\CH32F20x_StdPeriph_Driver\CMSIS\WCH\CH32F20x\Include;..\Libraries\CH32F20x_StdPeriph_Driver\StdPeriph_Driver\inc;..\..\..\..\components\libc\compilers\common;..\..\..\..\components\libc\compilers\common\extension;..\..\..\..\libcpu\arm\common;..\..\..\..\libcpu\arm\cortex-m3;..\..\..\..\components\drivers\include;..\..\..\..\components\drivers\include;..\..\..\..\components\drivers\include;..\..\..\..\components\drivers\include;..\..\..\..\components\drivers\include;..\..\..\..\components\drivers\spi;..\..\..\..\components\drivers\include;..\..\..\..\components\drivers\include;..\..\..\..\components\drivers\include;board;..\Libraries\ch32_drivers;..\Libraries\ch32_drivers\config;..\..\..\..\components\finsh;.;..\..\..\..\include;..\..\..\..\components\libc\posix\io\poll;..\..\..\..\components\libc\posix\ipc;..\..\..\..\examples\utest\testcases\kernel + + applications;.;..\Libraries\CH32F20x_StdPeriph_Driver\CMSIS;..\Libraries\CH32F20x_StdPeriph_Driver\CMSIS\WCH\CH32F20x\Include;..\Libraries\CH32F20x_StdPeriph_Driver\StdPeriph_Driver\inc;..\..\..\..\components\libc\compilers\common;..\..\..\..\components\libc\compilers\common\extension;..\..\..\..\libcpu\arm\common;..\..\..\..\libcpu\arm\cortex-m3;..\..\..\..\components\drivers\include;..\..\..\..\components\drivers\include;..\..\..\..\components\drivers\include;..\..\..\..\components\drivers\include;..\..\..\..\components\drivers\include;..\..\..\..\components\drivers\include;..\..\..\..\components\drivers\spi;..\..\..\..\components\drivers\include;..\..\..\..\components\drivers\include;board;..\Libraries\ch32_drivers;..\Libraries\ch32_drivers\config;..\..\..\..\components\finsh;.;..\..\..\..\include;..\..\..\..\components\libc\posix\io\poll;..\..\..\..\components\libc\posix\io\stdio;..\..\..\..\components\libc\posix\ipc;..\..\..\..\examples\utest\testcases\kernel @@ -353,10 +350,10 @@ 0 1 - - - - + + + + @@ -368,13 +365,13 @@ 0 0x08000000 0x20000000 - + .\board\linker_scripts\link.sct - - - - - + + + + + @@ -397,101 +394,141 @@ 1 ..\Libraries\CH32F20x_StdPeriph_Driver\StdPeriph_Driver\src\ch32f20x_flash.c +
+ ch32f20x_usart.c 1 ..\Libraries\CH32F20x_StdPeriph_Driver\StdPeriph_Driver\src\ch32f20x_usart.c + + startup_ch32f20x.s 2 ..\Libraries\CH32F20x_StdPeriph_Driver\CMSIS\WCH\CH32F20x\Source\ARM\startup_ch32f20x.s + + ch32f20x_dma.c 1 ..\Libraries\CH32F20x_StdPeriph_Driver\StdPeriph_Driver\src\ch32f20x_dma.c + + ch32f20x_dbgmcu.c 1 ..\Libraries\CH32F20x_StdPeriph_Driver\StdPeriph_Driver\src\ch32f20x_dbgmcu.c + + ch32f20x_crc.c 1 ..\Libraries\CH32F20x_StdPeriph_Driver\StdPeriph_Driver\src\ch32f20x_crc.c + + ch32f20x_misc.c 1 ..\Libraries\CH32F20x_StdPeriph_Driver\StdPeriph_Driver\src\ch32f20x_misc.c + + ch32f20x_gpio.c 1 ..\Libraries\CH32F20x_StdPeriph_Driver\StdPeriph_Driver\src\ch32f20x_gpio.c + + ch32f20x_can.c 1 ..\Libraries\CH32F20x_StdPeriph_Driver\StdPeriph_Driver\src\ch32f20x_can.c + + ch32f20x_rtc.c 1 ..\Libraries\CH32F20x_StdPeriph_Driver\StdPeriph_Driver\src\ch32f20x_rtc.c + + ch32f20x_iwdg.c 1 ..\Libraries\CH32F20x_StdPeriph_Driver\StdPeriph_Driver\src\ch32f20x_iwdg.c + + ch32f20x_i2c.c 1 ..\Libraries\CH32F20x_StdPeriph_Driver\StdPeriph_Driver\src\ch32f20x_i2c.c + + ch32f20x_dac.c 1 ..\Libraries\CH32F20x_StdPeriph_Driver\StdPeriph_Driver\src\ch32f20x_dac.c + + ch32f20x_bkp.c 1 ..\Libraries\CH32F20x_StdPeriph_Driver\StdPeriph_Driver\src\ch32f20x_bkp.c + + ch32f20x_wwdg.c 1 ..\Libraries\CH32F20x_StdPeriph_Driver\StdPeriph_Driver\src\ch32f20x_wwdg.c + + ch32f20x_tim.c 1 ..\Libraries\CH32F20x_StdPeriph_Driver\StdPeriph_Driver\src\ch32f20x_tim.c + + ch32f20x_rcc.c 1 ..\Libraries\CH32F20x_StdPeriph_Driver\StdPeriph_Driver\src\ch32f20x_rcc.c + + ch32f20x_exti.c 1 ..\Libraries\CH32F20x_StdPeriph_Driver\StdPeriph_Driver\src\ch32f20x_exti.c + + ch32f20x_spi.c 1 ..\Libraries\CH32F20x_StdPeriph_Driver\StdPeriph_Driver\src\ch32f20x_spi.c + + ch32f20x_pwr.c 1 ..\Libraries\CH32F20x_StdPeriph_Driver\StdPeriph_Driver\src\ch32f20x_pwr.c + + ch32f20x_adc.c 1 @@ -502,21 +539,27 @@ Compiler - - syscall_mem.c - 1 - ..\..\..\..\components\libc\compilers\armlibc\syscall_mem.c - syscalls.c 1 ..\..\..\..\components\libc\compilers\armlibc\syscalls.c + + + + syscall_mem.c + 1 + ..\..\..\..\components\libc\compilers\armlibc\syscall_mem.c + + + time.c 1 ..\..\..\..\components\libc\compilers\common\time.c + + stdlib.c 1 @@ -527,26 +570,34 @@ CPU - - backtrace.c - 1 - ..\..\..\..\libcpu\arm\common\backtrace.c - div0.c 1 ..\..\..\..\libcpu\arm\common\div0.c + + + + backtrace.c + 1 + ..\..\..\..\libcpu\arm\common\backtrace.c + + + showmem.c 1 ..\..\..\..\libcpu\arm\common\showmem.c + + cpuport.c 1 ..\..\..\..\libcpu\arm\cortex-m3\cpuport.c + + context_rvds.S 2 @@ -556,167 +607,144 @@ DeviceDrivers - - - 0 - 0 - 0 - 0 - 0 - 1 - 0 - 0 - 0 - 0 - 3 - - - 0 - - - - 2 - 0 - 2 - 2 - 2 - 2 - 2 - 2 - 2 - 2 - 0 - 2 - 2 - 2 - 2 - 2 - 0 - 0 - 2 - 2 - 2 - 2 - 2 - - - - - - - - - 2 - 2 - 2 - 2 - 2 - 2 - 2 - 2 - 2 - 0 - - - - - - - - - hwtimer.c 1 ..\..\..\..\components\drivers\hwtimer\hwtimer.c + + i2c_core.c 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 + + + + dataqueue.c + 1 + ..\..\..\..\components\drivers\ipc\dataqueue.c + + + + + ringbuffer.c + 1 + ..\..\..\..\components\drivers\ipc\ringbuffer.c + + + + + ringblk_buf.c + 1 + ..\..\..\..\components\drivers\ipc\ringblk_buf.c + + + + + completion.c + 1 + ..\..\..\..\components\drivers\ipc\completion.c + + + + + pipe.c + 1 + ..\..\..\..\components\drivers\ipc\pipe.c + + + + + waitqueue.c + 1 + ..\..\..\..\components\drivers\ipc\waitqueue.c + + + + + workqueue.c + 1 + ..\..\..\..\components\drivers\ipc\workqueue.c + + + rt_drv_pwm.c 1 ..\..\..\..\components\drivers\misc\rt_drv_pwm.c + + pin.c 1 ..\..\..\..\components\drivers\misc\pin.c + + rtc.c 1 ..\..\..\..\components\drivers\rtc\rtc.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 - - - pipe.c - 1 - ..\..\..\..\components\drivers\src\pipe.c - - - ringblk_buf.c - 1 - ..\..\..\..\components\drivers\src\ringblk_buf.c - - - workqueue.c - 1 - ..\..\..\..\components\drivers\src\workqueue.c - - - dataqueue.c - 1 - ..\..\..\..\components\drivers\src\dataqueue.c - - - waitqueue.c - 1 - ..\..\..\..\components\drivers\src\waitqueue.c - - - ringbuffer.c - 1 - ..\..\..\..\components\drivers\src\ringbuffer.c - + + watchdog.c 1 ..\..\..\..\components\drivers\watchdog\watchdog.c + + + + + + + + + + + + Drivers @@ -726,46 +754,64 @@ 1 board\system_ch32f20x.c + + board.c 1 board\board.c + + drv_rtc_ch32f20x.c 1 ..\Libraries\ch32_drivers\drv_rtc_ch32f20x.c + + drv_uart_ch32f20x.c 1 ..\Libraries\ch32_drivers\drv_uart_ch32f20x.c + + drv_spi_ch32f20x.c 1 ..\Libraries\ch32_drivers\drv_spi_ch32f20x.c + + drv_gpio_ch32f20x.c 1 ..\Libraries\ch32_drivers\drv_gpio_ch32f20x.c + + drv_iwdt_ch32f20x.c 1 ..\Libraries\ch32_drivers\drv_iwdt_ch32f20x.c + + drv_hwi2c_ch32f20x.c 1 ..\Libraries\ch32_drivers\drv_hwi2c_ch32f20x.c + + drv_hwtimer_ch32f20x.c 1 ..\Libraries\ch32_drivers\drv_hwtimer_ch32f20x.c + + drv_common.c 1 @@ -781,11 +827,15 @@ 1 ..\..\..\..\components\finsh\shell.c + + msh.c 1 ..\..\..\..\components\finsh\msh.c + + cmd.c 1 @@ -801,76 +851,98 @@ 1 ..\..\..\..\src\thread.c - - clock.c - 1 - ..\..\..\..\src\clock.c - + + object.c 1 ..\..\..\..\src\object.c - - components.c - 1 - ..\..\..\..\src\components.c - - - mempool.c - 1 - ..\..\..\..\src\mempool.c - - - kservice.c - 1 - ..\..\..\..\src\kservice.c - - - ipc.c - 1 - ..\..\..\..\src\ipc.c - + + idle.c 1 ..\..\..\..\src\idle.c + + - device.c + mempool.c 1 - ..\..\..\..\src\device.c - - - scheduler.c - 1 - ..\..\..\..\src\scheduler.c + ..\..\..\..\src\mempool.c + + timer.c 1 ..\..\..\..\src\timer.c + + - mem.c + ipc.c 1 - ..\..\..\..\src\mem.c + ..\..\..\..\src\ipc.c + + irq.c 1 ..\..\..\..\src\irq.c + + + scheduler.c + 1 + ..\..\..\..\src\scheduler.c + + + + + clock.c + 1 + ..\..\..\..\src\clock.c + + + + + device.c + 1 + ..\..\..\..\src\device.c + + + + + kservice.c + 1 + ..\..\..\..\src\kservice.c + + + + + mem.c + 1 + ..\..\..\..\src\mem.c + + + + + components.c + 1 + ..\..\..\..\src\components.c + + - - - - + + + - diff --git a/bsp/x86/.config b/bsp/x86/.config index 42371b65f1..ee4f600967 100644 --- a/bsp/x86/.config +++ b/bsp/x86/.config @@ -7,7 +7,6 @@ # RT-Thread Kernel # CONFIG_RT_NAME_MAX=8 -# CONFIG_RT_USING_BIG_ENDIAN is not set # CONFIG_RT_USING_ARCH_DATA_TYPE is not set # CONFIG_RT_USING_SMP is not set CONFIG_RT_ALIGN_SIZE=4 @@ -202,7 +201,6 @@ CONFIG_RT_USING_PIN=y # # POSIX layer and C standard library # -# CONFIG_RT_USING_MODULE is not set CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8 # @@ -211,7 +209,9 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8 # CONFIG_RT_USING_POSIX_FS is not set # CONFIG_RT_USING_POSIX_DELAY is not set # CONFIG_RT_USING_POSIX_CLOCK is not set +# CONFIG_RT_USING_POSIX_TIMER is not set # CONFIG_RT_USING_PTHREADS is not set +# CONFIG_RT_USING_MODULE is not set # # Interprocess Communication (IPC) @@ -420,6 +420,7 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8 # CONFIG_PKG_USING_MCURSES is not set # CONFIG_PKG_USING_TERMBOX is not set # CONFIG_PKG_USING_VT100 is not set +# CONFIG_PKG_USING_QRCODE is not set # # tools packages @@ -430,7 +431,6 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8 # CONFIG_PKG_USING_SYSTEMVIEW is not set # CONFIG_PKG_USING_SEGGER_RTT is not set # CONFIG_PKG_USING_RDB is not set -# CONFIG_PKG_USING_QRCODE is not set # CONFIG_PKG_USING_ULOG_EASYFLASH is not set # CONFIG_PKG_USING_ULOG_FILE is not set # CONFIG_PKG_USING_LOGMGR is not set @@ -481,6 +481,7 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8 # CONFIG_PKG_USING_POSIX_GETLINE is not set # CONFIG_PKG_USING_POSIX_WCWIDTH is not set # CONFIG_PKG_USING_POSIX_ITOA is not set +# CONFIG_PKG_USING_POSIX_STRINGS is not set # # acceleration: Assembly language or algorithmic acceleration packages @@ -592,6 +593,7 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8 # CONFIG_PKG_USING_SSD1306 is not set # CONFIG_PKG_USING_QKEY is not set # CONFIG_PKG_USING_RS485 is not set +# CONFIG_PKG_USING_RS232 is not set # CONFIG_PKG_USING_NES is not set # CONFIG_PKG_USING_VIRTUAL_SENSOR is not set # CONFIG_PKG_USING_VDEVICE is not set @@ -679,4 +681,6 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8 # CONFIG_PKG_USING_LWGPS is not set # CONFIG_PKG_USING_STATE_MACHINE is not set # CONFIG_PKG_USING_DESIGN_PATTERN is not set +# CONFIG_PKG_USING_CONTROLLER is not set +# CONFIG_PKG_USING_PHASE_LOCKED_LOOP is not set CONFIG_IA32=y diff --git a/bsp/xplorer4330/M0/project.uvproj b/bsp/xplorer4330/M0/project.uvproj index ebe4614be0..194442bb04 100644 --- a/bsp/xplorer4330/M0/project.uvproj +++ b/bsp/xplorer4330/M0/project.uvproj @@ -348,7 +348,7 @@ CORE_M0, USE_SPIFI, __RTTHREAD__, RT_USING_ARM_LIBC, __CLK_TCK=RT_TICK_PER_SECOND - applications;.;..\Libraries\Device\NXP\LPC43xx\Include;..\Libraries\CMSIS\Include;..\..\..\components\libc\compilers\common;..\..\..\components\libc\compilers\common\nogcc;..\..\..\libcpu\arm\common;..\..\..\libcpu\arm\cortex-m0;..\..\..\components\drivers\include;..\..\..\components\drivers\include;..\drivers;..\..\..\components\finsh;.;..\..\..\include;..\..\..\components\libc\posix\io\poll;..\..\..\components\libc\posix\ipc;..\..\..\examples\utest\testcases\kernel + applications;.;..\Libraries\Device\NXP\LPC43xx\Include;..\Libraries\CMSIS\Include;..\..\..\components\libc\compilers\common;..\..\..\components\libc\compilers\common\extension;..\..\..\libcpu\arm\common;..\..\..\libcpu\arm\cortex-m0;..\..\..\components\drivers\include;..\..\..\components\drivers\include;..\drivers;..\..\..\components\finsh;.;..\..\..\include;..\..\..\components\libc\posix\io\poll;..\..\..\components\libc\posix\io\stdio;..\..\..\components\libc\posix\ipc;..\..\..\examples\utest\testcases\kernel @@ -422,13 +422,6 @@ Compiler - - - libc_syms.c - 1 - ..\..\..\components\libc\compilers\armlibc\libc_syms.c - - syscall_mem.c @@ -445,16 +438,16 @@ - stdlib.c + time.c 1 - ..\..\..\components\libc\compilers\common\stdlib.c + ..\..\..\components\libc\compilers\common\time.c - time.c + stdlib.c 1 - ..\..\..\components\libc\compilers\common\time.c + ..\..\..\components\libc\compilers\common\stdlib.c @@ -483,16 +476,16 @@ - cpuport.c - 1 - ..\..\..\libcpu\arm\cortex-m0\cpuport.c + context_rvds.S + 2 + ..\..\..\libcpu\arm\cortex-m0\context_rvds.S - context_rvds.S - 2 - ..\..\..\libcpu\arm\cortex-m0\context_rvds.S + cpuport.c + 1 + ..\..\..\libcpu\arm\cortex-m0\cpuport.c @@ -500,58 +493,58 @@ DeviceDrivers - serial.c + completion.c 1 - ..\..\..\components\drivers\serial\serial.c - - - - - ringbuffer.c - 1 - ..\..\..\components\drivers\src\ringbuffer.c - - - - - workqueue.c - 1 - ..\..\..\components\drivers\src\workqueue.c + ..\..\..\components\drivers\ipc\completion.c pipe.c 1 - ..\..\..\components\drivers\src\pipe.c + ..\..\..\components\drivers\ipc\pipe.c - dataqueue.c + workqueue.c 1 - ..\..\..\components\drivers\src\dataqueue.c + ..\..\..\components\drivers\ipc\workqueue.c - waitqueue.c + ringbuffer.c 1 - ..\..\..\components\drivers\src\waitqueue.c + ..\..\..\components\drivers\ipc\ringbuffer.c ringblk_buf.c 1 - ..\..\..\components\drivers\src\ringblk_buf.c + ..\..\..\components\drivers\ipc\ringblk_buf.c - completion.c + waitqueue.c 1 - ..\..\..\components\drivers\src\completion.c + ..\..\..\components\drivers\ipc\waitqueue.c + + + + + dataqueue.c + 1 + ..\..\..\components\drivers\ipc\dataqueue.c + + + + + serial.c + 1 + ..\..\..\components\drivers\serial\serial.c @@ -566,16 +559,16 @@ - drv_uart.c + drv_led.c 1 - ..\drivers\drv_uart.c + ..\drivers\drv_led.c - drv_led.c + drv_uart.c 1 - ..\drivers\drv_led.c + ..\drivers\drv_uart.c @@ -600,9 +593,9 @@ Kernel - device.c + thread.c 1 - ..\..\..\src\device.c + ..\..\..\src\thread.c @@ -612,55 +605,6 @@ ..\..\..\src\mem.c - - - irq.c - 1 - ..\..\..\src\irq.c - - - - - idle.c - 1 - ..\..\..\src\idle.c - - - - - thread.c - 1 - ..\..\..\src\thread.c - - - - - clock.c - 1 - ..\..\..\src\clock.c - - - - - memheap.c - 1 - ..\..\..\src\memheap.c - - - - - kservice.c - 1 - ..\..\..\src\kservice.c - - - - - scheduler.c - 1 - ..\..\..\src\scheduler.c - - timer.c @@ -670,9 +614,16 @@ - object.c + irq.c 1 - ..\..\..\src\object.c + ..\..\..\src\irq.c + + + + + mempool.c + 1 + ..\..\..\src\mempool.c @@ -682,6 +633,27 @@ ..\..\..\src\components.c + + + object.c + 1 + ..\..\..\src\object.c + + + + + scheduler.c + 1 + ..\..\..\src\scheduler.c + + + + + kservice.c + 1 + ..\..\..\src\kservice.c + + ipc.c @@ -691,9 +663,30 @@ - mempool.c + memheap.c 1 - ..\..\..\src\mempool.c + ..\..\..\src\memheap.c + + + + + device.c + 1 + ..\..\..\src\device.c + + + + + clock.c + 1 + ..\..\..\src\clock.c + + + + + idle.c + 1 + ..\..\..\src\idle.c diff --git a/bsp/xplorer4330/M4/project.uvproj b/bsp/xplorer4330/M4/project.uvproj index 50e66f32d7..021904790d 100644 --- a/bsp/xplorer4330/M4/project.uvproj +++ b/bsp/xplorer4330/M4/project.uvproj @@ -348,7 +348,7 @@ USE_SPIFI, CORE_M4, __RTTHREAD__, RT_USING_ARM_LIBC, __CLK_TCK=RT_TICK_PER_SECOND - applications;.;..\Libraries\Device\NXP\LPC43xx\Include;..\Libraries\CMSIS\Include;..\..\..\components\libc\compilers\common;..\..\..\components\libc\compilers\common\nogcc;..\..\..\libcpu\arm\common;..\..\..\libcpu\arm\cortex-m4;..\..\..\components\drivers\include;..\..\..\components\drivers\include;..\drivers;..\..\..\components\finsh;.;..\..\..\include;..\..\..\components\libc\posix\io\poll;..\..\..\components\libc\posix\ipc;..\..\..\examples\utest\testcases\kernel + applications;.;..\Libraries\Device\NXP\LPC43xx\Include;..\Libraries\CMSIS\Include;..\..\..\components\libc\compilers\common;..\..\..\components\libc\compilers\common\extension;..\..\..\libcpu\arm\common;..\..\..\libcpu\arm\cortex-m4;..\..\..\components\drivers\include;..\..\..\components\drivers\include;..\drivers;..\..\..\components\finsh;.;..\..\..\include;..\..\..\components\libc\posix\io\poll;..\..\..\components\libc\posix\io\stdio;..\..\..\components\libc\posix\ipc;..\..\..\examples\utest\testcases\kernel @@ -422,13 +422,6 @@ Compiler - - - syscall_mem.c - 1 - ..\..\..\components\libc\compilers\armlibc\syscall_mem.c - - syscalls.c @@ -438,16 +431,9 @@ - libc_syms.c + syscall_mem.c 1 - ..\..\..\components\libc\compilers\armlibc\libc_syms.c - - - - - stdlib.c - 1 - ..\..\..\components\libc\compilers\common\stdlib.c + ..\..\..\components\libc\compilers\armlibc\syscall_mem.c @@ -457,21 +443,28 @@ ..\..\..\components\libc\compilers\common\time.c + + + stdlib.c + 1 + ..\..\..\components\libc\compilers\common\stdlib.c + + CPU - showmem.c + div0.c 1 - ..\..\..\libcpu\arm\common\showmem.c + ..\..\..\libcpu\arm\common\div0.c - div0.c + showmem.c 1 - ..\..\..\libcpu\arm\common\div0.c + ..\..\..\libcpu\arm\common\showmem.c @@ -483,75 +476,75 @@ - context_rvds.S - 2 - ..\..\..\libcpu\arm\cortex-m4\context_rvds.S + cpuport.c + 1 + ..\..\..\libcpu\arm\cortex-m4\cpuport.c - cpuport.c - 1 - ..\..\..\libcpu\arm\cortex-m4\cpuport.c + context_rvds.S + 2 + ..\..\..\libcpu\arm\cortex-m4\context_rvds.S DeviceDrivers - - - serial.c - 1 - ..\..\..\components\drivers\serial\serial.c - - - - - dataqueue.c - 1 - ..\..\..\components\drivers\src\dataqueue.c - - - - - ringblk_buf.c - 1 - ..\..\..\components\drivers\src\ringblk_buf.c - - - - - waitqueue.c - 1 - ..\..\..\components\drivers\src\waitqueue.c - - workqueue.c 1 - ..\..\..\components\drivers\src\workqueue.c - - - - - pipe.c - 1 - ..\..\..\components\drivers\src\pipe.c - - - - - completion.c - 1 - ..\..\..\components\drivers\src\completion.c + ..\..\..\components\drivers\ipc\workqueue.c ringbuffer.c 1 - ..\..\..\components\drivers\src\ringbuffer.c + ..\..\..\components\drivers\ipc\ringbuffer.c + + + + + pipe.c + 1 + ..\..\..\components\drivers\ipc\pipe.c + + + + + completion.c + 1 + ..\..\..\components\drivers\ipc\completion.c + + + + + waitqueue.c + 1 + ..\..\..\components\drivers\ipc\waitqueue.c + + + + + ringblk_buf.c + 1 + ..\..\..\components\drivers\ipc\ringblk_buf.c + + + + + dataqueue.c + 1 + ..\..\..\components\drivers\ipc\dataqueue.c + + + + + serial.c + 1 + ..\..\..\components\drivers\serial\serial.c @@ -559,9 +552,9 @@ Drivers - drv_led.c + drv_uart.c 1 - ..\drivers\drv_led.c + ..\drivers\drv_uart.c @@ -573,9 +566,9 @@ - drv_uart.c + drv_led.c 1 - ..\drivers\drv_uart.c + ..\drivers\drv_led.c @@ -600,30 +593,9 @@ Kernel - irq.c + memheap.c 1 - ..\..\..\src\irq.c - - - - - clock.c - 1 - ..\..\..\src\clock.c - - - - - device.c - 1 - ..\..\..\src\device.c - - - - - idle.c - 1 - ..\..\..\src\idle.c + ..\..\..\src\memheap.c @@ -635,30 +607,9 @@ - memheap.c + mem.c 1 - ..\..\..\src\memheap.c - - - - - object.c - 1 - ..\..\..\src\object.c - - - - - kservice.c - 1 - ..\..\..\src\kservice.c - - - - - ipc.c - 1 - ..\..\..\src\ipc.c + ..\..\..\src\mem.c @@ -670,16 +621,9 @@ - timer.c + clock.c 1 - ..\..\..\src\timer.c - - - - - thread.c - 1 - ..\..\..\src\thread.c + ..\..\..\src\clock.c @@ -691,9 +635,58 @@ - mem.c + kservice.c 1 - ..\..\..\src\mem.c + ..\..\..\src\kservice.c + + + + + object.c + 1 + ..\..\..\src\object.c + + + + + idle.c + 1 + ..\..\..\src\idle.c + + + + + ipc.c + 1 + ..\..\..\src\ipc.c + + + + + timer.c + 1 + ..\..\..\src\timer.c + + + + + device.c + 1 + ..\..\..\src\device.c + + + + + irq.c + 1 + ..\..\..\src\irq.c + + + + + thread.c + 1 + ..\..\..\src\thread.c diff --git a/bsp/zynqmp-r5-axu4ev/.config b/bsp/zynqmp-r5-axu4ev/.config index 9c68105bb2..aa4cbec7b3 100644 --- a/bsp/zynqmp-r5-axu4ev/.config +++ b/bsp/zynqmp-r5-axu4ev/.config @@ -7,7 +7,6 @@ # RT-Thread Kernel # CONFIG_RT_NAME_MAX=20 -# CONFIG_RT_USING_BIG_ENDIAN is not set # CONFIG_RT_USING_ARCH_DATA_TYPE is not set # CONFIG_RT_USING_SMP is not set CONFIG_RT_ALIGN_SIZE=4 @@ -202,7 +201,6 @@ CONFIG_RT_USING_PIN=y # # POSIX layer and C standard library # -# CONFIG_RT_USING_MODULE is not set CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8 # @@ -218,7 +216,9 @@ CONFIG_RT_USING_POSIX_SELECT=y # CONFIG_RT_USING_POSIX_MMAN is not set # CONFIG_RT_USING_POSIX_DELAY is not set # CONFIG_RT_USING_POSIX_CLOCK is not set +# CONFIG_RT_USING_POSIX_TIMER is not set # CONFIG_RT_USING_PTHREADS is not set +# CONFIG_RT_USING_MODULE is not set # # Interprocess Communication (IPC)