diff --git a/bsp/gd32450z-eval/project.ewp b/bsp/gd32450z-eval/project.ewp index 668bf4899e..b26015f8f6 100644 --- a/bsp/gd32450z-eval/project.ewp +++ b/bsp/gd32450z-eval/project.ewp @@ -298,32 +298,28 @@ CCIncludePath2 - $PROJ_DIR$\../../components/drivers/include - $PROJ_DIR$\../../libcpu/arm/cortex-m4 - $PROJ_DIR$\Libraries/CMSIS - $PROJ_DIR$\Libraries/GD32F4xx_standard_peripheral/Include - $PROJ_DIR$\../../components/net/lwip-2.0.2/src/include - $PROJ_DIR$\../../components/finsh - $PROJ_DIR$\Libraries/CMSIS/GD/GD32F4xx/Include - $PROJ_DIR$\../../components/net/lwip-2.0.2/src + $PROJ_DIR$\..\..\include + $PROJ_DIR$\..\..\components\net\lwip-2.0.2\src\include\netif + $PROJ_DIR$\Libraries\CMSIS\GD\GD32F4xx\Include + $PROJ_DIR$\..\..\libcpu\arm\common + $PROJ_DIR$\..\..\components\drivers\include + $PROJ_DIR$\..\..\components\dfs\filesystems\devfs + $PROJ_DIR$\..\..\components\net\lwip-2.0.2\src $PROJ_DIR$\drivers - $PROJ_DIR$\../../libcpu/arm/common - $PROJ_DIR$\../../components/dfs/filesystems/devfs + $PROJ_DIR$\..\..\components\net\lwip-2.0.2\src\include\ipv4 + $PROJ_DIR$\Libraries\GD32F4xx_standard_peripheral\Include $PROJ_DIR$\. - $PROJ_DIR$\../../components/net/lwip-2.0.2/src/arch/include - $PROJ_DIR$\../../components/drivers/spi - $PROJ_DIR$\../../components/gui/include/rtgui - $PROJ_DIR$\../../components/dfs/filesystems/elmfat - $PROJ_DIR$\../../components/net/lwip-2.0.2/src/include/posix + $PROJ_DIR$\..\..\libcpu\arm\cortex-m4 + $PROJ_DIR$\..\..\components\drivers\spi\sfud\inc + $PROJ_DIR$\..\..\components\dfs\include + $PROJ_DIR$\Libraries\CMSIS + $PROJ_DIR$\..\..\components\net\lwip-2.0.2\src\include + $PROJ_DIR$\..\..\components\drivers\spi $PROJ_DIR$\applications - $PROJ_DIR$\../../include - $PROJ_DIR$\../../components/gui/include/rtgui/widgets - $PROJ_DIR$\../../components/gui/include - $PROJ_DIR$\../../components/drivers/spi/sfud/inc - $PROJ_DIR$\../../components/net/lwip-2.0.2/src/include/netif - $PROJ_DIR$\../../components/dfs/include - $PROJ_DIR$\../../components/net/lwip-2.0.2/src/include/ipv4 - $PROJ_DIR$\../../components/gui/src + $PROJ_DIR$\..\..\components\finsh + $PROJ_DIR$\..\..\components\dfs\filesystems\elmfat + $PROJ_DIR$\..\..\components\net\lwip-2.0.2\src\include\posix + $PROJ_DIR$\..\..\components\net\lwip-2.0.2\src\arch\include CCStdIncCheck @@ -1268,32 +1264,28 @@ CCIncludePath2 - $PROJ_DIR$\../../components/drivers/include - $PROJ_DIR$\../../libcpu/arm/cortex-m4 - $PROJ_DIR$\Libraries/CMSIS - $PROJ_DIR$\Libraries/GD32F4xx_standard_peripheral/Include - $PROJ_DIR$\../../components/net/lwip-2.0.2/src/include - $PROJ_DIR$\../../components/finsh - $PROJ_DIR$\Libraries/CMSIS/GD/GD32F4xx/Include - $PROJ_DIR$\../../components/net/lwip-2.0.2/src + $PROJ_DIR$\..\..\include + $PROJ_DIR$\..\..\components\net\lwip-2.0.2\src\include\netif + $PROJ_DIR$\Libraries\CMSIS\GD\GD32F4xx\Include + $PROJ_DIR$\..\..\libcpu\arm\common + $PROJ_DIR$\..\..\components\drivers\include + $PROJ_DIR$\..\..\components\dfs\filesystems\devfs + $PROJ_DIR$\..\..\components\net\lwip-2.0.2\src $PROJ_DIR$\drivers - $PROJ_DIR$\../../libcpu/arm/common - $PROJ_DIR$\../../components/dfs/filesystems/devfs + $PROJ_DIR$\..\..\components\net\lwip-2.0.2\src\include\ipv4 + $PROJ_DIR$\Libraries\GD32F4xx_standard_peripheral\Include $PROJ_DIR$\. - $PROJ_DIR$\../../components/net/lwip-2.0.2/src/arch/include - $PROJ_DIR$\../../components/drivers/spi - $PROJ_DIR$\../../components/gui/include/rtgui - $PROJ_DIR$\../../components/dfs/filesystems/elmfat - $PROJ_DIR$\../../components/net/lwip-2.0.2/src/include/posix + $PROJ_DIR$\..\..\libcpu\arm\cortex-m4 + $PROJ_DIR$\..\..\components\drivers\spi\sfud\inc + $PROJ_DIR$\..\..\components\dfs\include + $PROJ_DIR$\Libraries\CMSIS + $PROJ_DIR$\..\..\components\net\lwip-2.0.2\src\include + $PROJ_DIR$\..\..\components\drivers\spi $PROJ_DIR$\applications - $PROJ_DIR$\../../include - $PROJ_DIR$\../../components/gui/include/rtgui/widgets - $PROJ_DIR$\../../components/gui/include - $PROJ_DIR$\../../components/drivers/spi/sfud/inc - $PROJ_DIR$\../../components/net/lwip-2.0.2/src/include/netif - $PROJ_DIR$\../../components/dfs/include - $PROJ_DIR$\../../components/net/lwip-2.0.2/src/include/ipv4 - $PROJ_DIR$\../../components/gui/src + $PROJ_DIR$\..\..\components\finsh + $PROJ_DIR$\..\..\components\dfs\filesystems\elmfat + $PROJ_DIR$\..\..\components\net\lwip-2.0.2\src\include\posix + $PROJ_DIR$\..\..\components\net\lwip-2.0.2\src\arch\include CCStdIncCheck @@ -1941,561 +1933,429 @@ - Drivers + Applications - $PROJ_DIR$\drivers/board.c + $PROJ_DIR$\applications\application.c - $PROJ_DIR$\drivers/drv_exmc_sdram.c + $PROJ_DIR$\applications\rtgui_demo.c - $PROJ_DIR$\drivers/drv_usart.c - - - $PROJ_DIR$\drivers/drv_enet.c - - - $PROJ_DIR$\drivers/synopsys_emac.c - - - $PROJ_DIR$\drivers/drv_lcd.c - - - $PROJ_DIR$\drivers/gd32f450z_lcd_eval.c - - - $PROJ_DIR$\drivers/drv_spi_flash.c - - - $PROJ_DIR$\drivers/drv_spi.c + $PROJ_DIR$\applications\startup.c - Applications + Drivers - $PROJ_DIR$\applications/application.c + $PROJ_DIR$\drivers\board.c - $PROJ_DIR$\applications/rtgui_demo.c + $PROJ_DIR$\drivers\drv_exmc_sdram.c - $PROJ_DIR$\applications/startup.c + $PROJ_DIR$\drivers\drv_usart.c + + + $PROJ_DIR$\drivers\drv_enet.c + + + $PROJ_DIR$\drivers\synopsys_emac.c + + + $PROJ_DIR$\drivers\drv_spi_flash.c + + + $PROJ_DIR$\drivers\drv_spi.c GD32_Lib - $PROJ_DIR$\Libraries/GD32F4xx_standard_peripheral/Source/gd32f4xx_adc.c + $PROJ_DIR$\Libraries\GD32F4xx_standard_peripheral\Source\gd32f4xx_adc.c - $PROJ_DIR$\Libraries/GD32F4xx_standard_peripheral/Source/gd32f4xx_can.c + $PROJ_DIR$\Libraries\GD32F4xx_standard_peripheral\Source\gd32f4xx_can.c - $PROJ_DIR$\Libraries/GD32F4xx_standard_peripheral/Source/gd32f4xx_crc.c + $PROJ_DIR$\Libraries\GD32F4xx_standard_peripheral\Source\gd32f4xx_crc.c - $PROJ_DIR$\Libraries/GD32F4xx_standard_peripheral/Source/gd32f4xx_ctc.c + $PROJ_DIR$\Libraries\GD32F4xx_standard_peripheral\Source\gd32f4xx_ctc.c - $PROJ_DIR$\Libraries/GD32F4xx_standard_peripheral/Source/gd32f4xx_dac.c + $PROJ_DIR$\Libraries\GD32F4xx_standard_peripheral\Source\gd32f4xx_dac.c - $PROJ_DIR$\Libraries/GD32F4xx_standard_peripheral/Source/gd32f4xx_dbg.c + $PROJ_DIR$\Libraries\GD32F4xx_standard_peripheral\Source\gd32f4xx_dbg.c - $PROJ_DIR$\Libraries/GD32F4xx_standard_peripheral/Source/gd32f4xx_dci.c + $PROJ_DIR$\Libraries\GD32F4xx_standard_peripheral\Source\gd32f4xx_dci.c - $PROJ_DIR$\Libraries/GD32F4xx_standard_peripheral/Source/gd32f4xx_dma.c + $PROJ_DIR$\Libraries\GD32F4xx_standard_peripheral\Source\gd32f4xx_dma.c - $PROJ_DIR$\Libraries/GD32F4xx_standard_peripheral/Source/gd32f4xx_enet.c + $PROJ_DIR$\Libraries\GD32F4xx_standard_peripheral\Source\gd32f4xx_enet.c - $PROJ_DIR$\Libraries/GD32F4xx_standard_peripheral/Source/gd32f4xx_exmc.c + $PROJ_DIR$\Libraries\GD32F4xx_standard_peripheral\Source\gd32f4xx_exmc.c - $PROJ_DIR$\Libraries/GD32F4xx_standard_peripheral/Source/gd32f4xx_exti.c + $PROJ_DIR$\Libraries\GD32F4xx_standard_peripheral\Source\gd32f4xx_exti.c - $PROJ_DIR$\Libraries/GD32F4xx_standard_peripheral/Source/gd32f4xx_fmc.c + $PROJ_DIR$\Libraries\GD32F4xx_standard_peripheral\Source\gd32f4xx_fmc.c - $PROJ_DIR$\Libraries/GD32F4xx_standard_peripheral/Source/gd32f4xx_fwdgt.c + $PROJ_DIR$\Libraries\GD32F4xx_standard_peripheral\Source\gd32f4xx_fwdgt.c - $PROJ_DIR$\Libraries/GD32F4xx_standard_peripheral/Source/gd32f4xx_gpio.c + $PROJ_DIR$\Libraries\GD32F4xx_standard_peripheral\Source\gd32f4xx_gpio.c - $PROJ_DIR$\Libraries/GD32F4xx_standard_peripheral/Source/gd32f4xx_i2c.c + $PROJ_DIR$\Libraries\GD32F4xx_standard_peripheral\Source\gd32f4xx_i2c.c - $PROJ_DIR$\Libraries/GD32F4xx_standard_peripheral/Source/gd32f4xx_ipa.c + $PROJ_DIR$\Libraries\GD32F4xx_standard_peripheral\Source\gd32f4xx_ipa.c - $PROJ_DIR$\Libraries/GD32F4xx_standard_peripheral/Source/gd32f4xx_iref.c + $PROJ_DIR$\Libraries\GD32F4xx_standard_peripheral\Source\gd32f4xx_iref.c - $PROJ_DIR$\Libraries/GD32F4xx_standard_peripheral/Source/gd32f4xx_misc.c + $PROJ_DIR$\Libraries\GD32F4xx_standard_peripheral\Source\gd32f4xx_misc.c - $PROJ_DIR$\Libraries/GD32F4xx_standard_peripheral/Source/gd32f4xx_pmu.c + $PROJ_DIR$\Libraries\GD32F4xx_standard_peripheral\Source\gd32f4xx_pmu.c - $PROJ_DIR$\Libraries/GD32F4xx_standard_peripheral/Source/gd32f4xx_rcu.c + $PROJ_DIR$\Libraries\GD32F4xx_standard_peripheral\Source\gd32f4xx_rcu.c - $PROJ_DIR$\Libraries/GD32F4xx_standard_peripheral/Source/gd32f4xx_rtc.c + $PROJ_DIR$\Libraries\GD32F4xx_standard_peripheral\Source\gd32f4xx_rtc.c - $PROJ_DIR$\Libraries/GD32F4xx_standard_peripheral/Source/gd32f4xx_sdio.c + $PROJ_DIR$\Libraries\GD32F4xx_standard_peripheral\Source\gd32f4xx_sdio.c - $PROJ_DIR$\Libraries/GD32F4xx_standard_peripheral/Source/gd32f4xx_spi.c + $PROJ_DIR$\Libraries\GD32F4xx_standard_peripheral\Source\gd32f4xx_spi.c - $PROJ_DIR$\Libraries/GD32F4xx_standard_peripheral/Source/gd32f4xx_syscfg.c + $PROJ_DIR$\Libraries\GD32F4xx_standard_peripheral\Source\gd32f4xx_syscfg.c - $PROJ_DIR$\Libraries/GD32F4xx_standard_peripheral/Source/gd32f4xx_timer.c + $PROJ_DIR$\Libraries\GD32F4xx_standard_peripheral\Source\gd32f4xx_timer.c - $PROJ_DIR$\Libraries/GD32F4xx_standard_peripheral/Source/gd32f4xx_tli.c + $PROJ_DIR$\Libraries\GD32F4xx_standard_peripheral\Source\gd32f4xx_tli.c - $PROJ_DIR$\Libraries/GD32F4xx_standard_peripheral/Source/gd32f4xx_trng.c + $PROJ_DIR$\Libraries\GD32F4xx_standard_peripheral\Source\gd32f4xx_trng.c - $PROJ_DIR$\Libraries/GD32F4xx_standard_peripheral/Source/gd32f4xx_usart.c + $PROJ_DIR$\Libraries\GD32F4xx_standard_peripheral\Source\gd32f4xx_usart.c - $PROJ_DIR$\Libraries/GD32F4xx_standard_peripheral/Source/gd32f4xx_wwdgt.c + $PROJ_DIR$\Libraries\GD32F4xx_standard_peripheral\Source\gd32f4xx_wwdgt.c - $PROJ_DIR$\Libraries/CMSIS/GD/GD32F4xx/Source/system_gd32f4xx.c + $PROJ_DIR$\Libraries\CMSIS\GD\GD32F4xx\Source\system_gd32f4xx.c - $PROJ_DIR$\Libraries/CMSIS/GD/GD32F4xx/Source/IAR/startup_gd32f4xx.s + $PROJ_DIR$\Libraries\CMSIS\GD\GD32F4xx\Source\IAR\startup_gd32f4xx.s Kernel - $PROJ_DIR$\../../src/clock.c + $PROJ_DIR$\..\..\src\clock.c - $PROJ_DIR$\../../src/components.c + $PROJ_DIR$\..\..\src\components.c - $PROJ_DIR$\../../src/device.c + $PROJ_DIR$\..\..\src\device.c - $PROJ_DIR$\../../src/idle.c + $PROJ_DIR$\..\..\src\idle.c - $PROJ_DIR$\../../src/ipc.c + $PROJ_DIR$\..\..\src\ipc.c - $PROJ_DIR$\../../src/irq.c + $PROJ_DIR$\..\..\src\irq.c - $PROJ_DIR$\../../src/kservice.c + $PROJ_DIR$\..\..\src\kservice.c - $PROJ_DIR$\../../src/mem.c + $PROJ_DIR$\..\..\src\mem.c - $PROJ_DIR$\../../src/memheap.c + $PROJ_DIR$\..\..\src\memheap.c - $PROJ_DIR$\../../src/mempool.c + $PROJ_DIR$\..\..\src\mempool.c - $PROJ_DIR$\../../src/module.c + $PROJ_DIR$\..\..\src\module.c - $PROJ_DIR$\../../src/object.c + $PROJ_DIR$\..\..\src\object.c - $PROJ_DIR$\../../src/scheduler.c + $PROJ_DIR$\..\..\src\scheduler.c - $PROJ_DIR$\../../src/signal.c + $PROJ_DIR$\..\..\src\signal.c - $PROJ_DIR$\../../src/thread.c + $PROJ_DIR$\..\..\src\thread.c - $PROJ_DIR$\../../src/timer.c + $PROJ_DIR$\..\..\src\timer.c CORTEX-M4 - $PROJ_DIR$\../../libcpu/arm/cortex-m4/cpuport.c + $PROJ_DIR$\..\..\libcpu\arm\cortex-m4\cpuport.c - $PROJ_DIR$\../../libcpu/arm/cortex-m4/context_iar.S + $PROJ_DIR$\..\..\libcpu\arm\cortex-m4\context_iar.S - $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\div0.c - $PROJ_DIR$\../../libcpu/arm/common/showmem.c - - - - DeviceDrivers - - $PROJ_DIR$\../../components/drivers/i2c/i2c_core.c - - - $PROJ_DIR$\../../components/drivers/i2c/i2c_dev.c - - - $PROJ_DIR$\../../components/drivers/i2c/i2c-bit-ops.c - - - $PROJ_DIR$\../../components/drivers/serial/serial.c - - - $PROJ_DIR$\../../components/drivers/rtc/rtc.c - - - $PROJ_DIR$\../../components/drivers/spi/spi_core.c - - - $PROJ_DIR$\../../components/drivers/spi/spi_dev.c - - - $PROJ_DIR$\../../components/drivers/spi/spi_flash_sfud.c - - - $PROJ_DIR$\../../components/drivers/spi/sfud/src/sfud.c - - - $PROJ_DIR$\../../components/drivers/src/completion.c - - - $PROJ_DIR$\../../components/drivers/src/dataqueue.c - - - $PROJ_DIR$\../../components/drivers/src/pipe.c - - - $PROJ_DIR$\../../components/drivers/src/ringbuffer.c - - - $PROJ_DIR$\../../components/drivers/src/waitqueue.c - - - $PROJ_DIR$\../../components/drivers/src/workqueue.c - - - - finsh - - $PROJ_DIR$\../../components/finsh/shell.c - - - $PROJ_DIR$\../../components/finsh/symbol.c - - - $PROJ_DIR$\../../components/finsh/cmd.c - - - $PROJ_DIR$\../../components/finsh/finsh_compiler.c - - - $PROJ_DIR$\../../components/finsh/finsh_error.c - - - $PROJ_DIR$\../../components/finsh/finsh_heap.c - - - $PROJ_DIR$\../../components/finsh/finsh_init.c - - - $PROJ_DIR$\../../components/finsh/finsh_node.c - - - $PROJ_DIR$\../../components/finsh/finsh_ops.c - - - $PROJ_DIR$\../../components/finsh/finsh_parser.c - - - $PROJ_DIR$\../../components/finsh/finsh_var.c - - - $PROJ_DIR$\../../components/finsh/finsh_vm.c - - - $PROJ_DIR$\../../components/finsh/finsh_token.c - - - - GuiEngine - - $PROJ_DIR$\../../components/gui/src/asc12font.c - - - $PROJ_DIR$\../../components/gui/src/asc16font.c - - - $PROJ_DIR$\../../components/gui/src/blit.c - - - $PROJ_DIR$\../../components/gui/src/box.c - - - $PROJ_DIR$\../../components/gui/src/color.c - - - $PROJ_DIR$\../../components/gui/src/container.c - - - $PROJ_DIR$\../../components/gui/src/dc.c - - - $PROJ_DIR$\../../components/gui/src/dc_blend.c - - - $PROJ_DIR$\../../components/gui/src/dc_buffer.c - - - $PROJ_DIR$\../../components/gui/src/dc_client.c - - - $PROJ_DIR$\../../components/gui/src/dc_hw.c - - - $PROJ_DIR$\../../components/gui/src/dc_rotozoom.c - - - $PROJ_DIR$\../../components/gui/src/dc_trans.c - - - $PROJ_DIR$\../../components/gui/src/filerw.c - - - $PROJ_DIR$\../../components/gui/src/font.c - - - $PROJ_DIR$\../../components/gui/src/font_bmp.c - - - $PROJ_DIR$\../../components/gui/src/font_fnt.c - - - $PROJ_DIR$\../../components/gui/src/font_freetype.c - - - $PROJ_DIR$\../../components/gui/src/font_hz_bmp.c - - - $PROJ_DIR$\../../components/gui/src/font_hz_file.c - - - $PROJ_DIR$\../../components/gui/src/hz12font.c - - - $PROJ_DIR$\../../components/gui/src/hz16font.c - - - $PROJ_DIR$\../../components/gui/src/image.c - - - $PROJ_DIR$\../../components/gui/src/image_bmp.c - - - $PROJ_DIR$\../../components/gui/src/image_container.c - - - $PROJ_DIR$\../../components/gui/src/image_hdc.c - - - $PROJ_DIR$\../../components/gui/src/image_jpg.c - - - $PROJ_DIR$\../../components/gui/src/image_png.c - - - $PROJ_DIR$\../../components/gui/src/image_xpm.c - - - $PROJ_DIR$\../../components/gui/src/matrix.c - - - $PROJ_DIR$\../../components/gui/src/mouse.c - - - $PROJ_DIR$\../../components/gui/src/region.c - - - $PROJ_DIR$\../../components/gui/src/rtgui_app.c - - - $PROJ_DIR$\../../components/gui/src/rtgui_driver.c - - - $PROJ_DIR$\../../components/gui/src/rtgui_object.c - - - $PROJ_DIR$\../../components/gui/src/rtgui_system.c - - - $PROJ_DIR$\../../components/gui/src/server.c - - - $PROJ_DIR$\../../components/gui/src/title.c - - - $PROJ_DIR$\../../components/gui/src/topwin.c - - - $PROJ_DIR$\../../components/gui/src/widget.c - - - $PROJ_DIR$\../../components/gui/src/window.c - - - - lwIP - - $PROJ_DIR$\../../components/net/lwip-2.0.2/src/arch/sys_arch.c - - - $PROJ_DIR$\../../components/net/lwip-2.0.2/src/api/api_lib.c - - - $PROJ_DIR$\../../components/net/lwip-2.0.2/src/api/api_msg.c - - - $PROJ_DIR$\../../components/net/lwip-2.0.2/src/api/err.c - - - $PROJ_DIR$\../../components/net/lwip-2.0.2/src/api/netbuf.c - - - $PROJ_DIR$\../../components/net/lwip-2.0.2/src/api/netdb.c - - - $PROJ_DIR$\../../components/net/lwip-2.0.2/src/api/netifapi.c - - - $PROJ_DIR$\../../components/net/lwip-2.0.2/src/api/sockets.c - - - $PROJ_DIR$\../../components/net/lwip-2.0.2/src/api/tcpip.c - - - $PROJ_DIR$\../../components/net/lwip-2.0.2/src/core/def.c - - - $PROJ_DIR$\../../components/net/lwip-2.0.2/src/core/dns.c - - - $PROJ_DIR$\../../components/net/lwip-2.0.2/src/core/inet_chksum.c - - - $PROJ_DIR$\../../components/net/lwip-2.0.2/src/core/init.c - - - $PROJ_DIR$\../../components/net/lwip-2.0.2/src/core/ip.c - - - $PROJ_DIR$\../../components/net/lwip-2.0.2/src/core/memp.c - - - $PROJ_DIR$\../../components/net/lwip-2.0.2/src/core/netif.c - - - $PROJ_DIR$\../../components/net/lwip-2.0.2/src/core/pbuf.c - - - $PROJ_DIR$\../../components/net/lwip-2.0.2/src/core/raw.c - - - $PROJ_DIR$\../../components/net/lwip-2.0.2/src/core/stats.c - - - $PROJ_DIR$\../../components/net/lwip-2.0.2/src/core/sys.c - - - $PROJ_DIR$\../../components/net/lwip-2.0.2/src/core/tcp.c - - - $PROJ_DIR$\../../components/net/lwip-2.0.2/src/core/tcp_in.c - - - $PROJ_DIR$\../../components/net/lwip-2.0.2/src/core/tcp_out.c - - - $PROJ_DIR$\../../components/net/lwip-2.0.2/src/core/timeouts.c - - - $PROJ_DIR$\../../components/net/lwip-2.0.2/src/core/udp.c - - - $PROJ_DIR$\../../components/net/lwip-2.0.2/src/netif/ethernet.c - - - $PROJ_DIR$\../../components/net/lwip-2.0.2/src/netif/ethernetif.c - - - $PROJ_DIR$\../../components/net/lwip-2.0.2/src/netif/lowpan6.c - - - $PROJ_DIR$\../../components/net/lwip-2.0.2/src/core/ipv4/autoip.c - - - $PROJ_DIR$\../../components/net/lwip-2.0.2/src/core/ipv4/dhcp.c - - - $PROJ_DIR$\../../components/net/lwip-2.0.2/src/core/ipv4/etharp.c - - - $PROJ_DIR$\../../components/net/lwip-2.0.2/src/core/ipv4/icmp.c - - - $PROJ_DIR$\../../components/net/lwip-2.0.2/src/core/ipv4/igmp.c - - - $PROJ_DIR$\../../components/net/lwip-2.0.2/src/core/ipv4/ip4.c - - - $PROJ_DIR$\../../components/net/lwip-2.0.2/src/core/ipv4/ip4_addr.c - - - $PROJ_DIR$\../../components/net/lwip-2.0.2/src/core/ipv4/ip4_frag.c + $PROJ_DIR$\..\..\libcpu\arm\common\showmem.c Filesystem - $PROJ_DIR$\../../components/dfs/src/dfs.c + $PROJ_DIR$\..\..\components\dfs\src\dfs.c - $PROJ_DIR$\../../components/dfs/src/dfs_file.c + $PROJ_DIR$\..\..\components\dfs\src\dfs_file.c - $PROJ_DIR$\../../components/dfs/src/dfs_fs.c + $PROJ_DIR$\..\..\components\dfs\src\dfs_fs.c - $PROJ_DIR$\../../components/dfs/src/dfs_posix.c + $PROJ_DIR$\..\..\components\dfs\src\dfs_posix.c - $PROJ_DIR$\../../components/dfs/filesystems/devfs/devfs.c + $PROJ_DIR$\..\..\components\dfs\filesystems\devfs\devfs.c - $PROJ_DIR$\../../components/dfs/filesystems/elmfat/dfs_elm.c + $PROJ_DIR$\..\..\components\dfs\filesystems\elmfat\dfs_elm.c - $PROJ_DIR$\../../components/dfs/filesystems/elmfat/ff.c + $PROJ_DIR$\..\..\components\dfs\filesystems\elmfat\ff.c + + + + DeviceDrivers + + $PROJ_DIR$\..\..\components\drivers\i2c\i2c_core.c + + + $PROJ_DIR$\..\..\components\drivers\i2c\i2c_dev.c + + + $PROJ_DIR$\..\..\components\drivers\i2c\i2c-bit-ops.c + + + $PROJ_DIR$\..\..\components\drivers\rtc\rtc.c + + + $PROJ_DIR$\..\..\components\drivers\serial\serial.c + + + $PROJ_DIR$\..\..\components\drivers\spi\spi_core.c + + + $PROJ_DIR$\..\..\components\drivers\spi\spi_dev.c + + + $PROJ_DIR$\..\..\components\drivers\spi\spi_flash_sfud.c + + + $PROJ_DIR$\..\..\components\drivers\spi\sfud\src\sfud.c + + + $PROJ_DIR$\..\..\components\drivers\src\completion.c + + + $PROJ_DIR$\..\..\components\drivers\src\dataqueue.c + + + $PROJ_DIR$\..\..\components\drivers\src\pipe.c + + + $PROJ_DIR$\..\..\components\drivers\src\ringbuffer.c + + + $PROJ_DIR$\..\..\components\drivers\src\waitqueue.c + + + $PROJ_DIR$\..\..\components\drivers\src\workqueue.c + + + + finsh + + $PROJ_DIR$\..\..\components\finsh\shell.c + + + $PROJ_DIR$\..\..\components\finsh\symbol.c + + + $PROJ_DIR$\..\..\components\finsh\cmd.c + + + $PROJ_DIR$\..\..\components\finsh\finsh_compiler.c + + + $PROJ_DIR$\..\..\components\finsh\finsh_error.c + + + $PROJ_DIR$\..\..\components\finsh\finsh_heap.c + + + $PROJ_DIR$\..\..\components\finsh\finsh_init.c + + + $PROJ_DIR$\..\..\components\finsh\finsh_node.c + + + $PROJ_DIR$\..\..\components\finsh\finsh_ops.c + + + $PROJ_DIR$\..\..\components\finsh\finsh_parser.c + + + $PROJ_DIR$\..\..\components\finsh\finsh_var.c + + + $PROJ_DIR$\..\..\components\finsh\finsh_vm.c + + + $PROJ_DIR$\..\..\components\finsh\finsh_token.c + + + + lwIP + + $PROJ_DIR$\..\..\components\net\lwip-2.0.2\src\arch\sys_arch.c + + + $PROJ_DIR$\..\..\components\net\lwip-2.0.2\src\api\api_lib.c + + + $PROJ_DIR$\..\..\components\net\lwip-2.0.2\src\api\api_msg.c + + + $PROJ_DIR$\..\..\components\net\lwip-2.0.2\src\api\err.c + + + $PROJ_DIR$\..\..\components\net\lwip-2.0.2\src\api\netbuf.c + + + $PROJ_DIR$\..\..\components\net\lwip-2.0.2\src\api\netdb.c + + + $PROJ_DIR$\..\..\components\net\lwip-2.0.2\src\api\netifapi.c + + + $PROJ_DIR$\..\..\components\net\lwip-2.0.2\src\api\sockets.c + + + $PROJ_DIR$\..\..\components\net\lwip-2.0.2\src\api\tcpip.c + + + $PROJ_DIR$\..\..\components\net\lwip-2.0.2\src\core\def.c + + + $PROJ_DIR$\..\..\components\net\lwip-2.0.2\src\core\dns.c + + + $PROJ_DIR$\..\..\components\net\lwip-2.0.2\src\core\inet_chksum.c + + + $PROJ_DIR$\..\..\components\net\lwip-2.0.2\src\core\init.c + + + $PROJ_DIR$\..\..\components\net\lwip-2.0.2\src\core\ip.c + + + $PROJ_DIR$\..\..\components\net\lwip-2.0.2\src\core\memp.c + + + $PROJ_DIR$\..\..\components\net\lwip-2.0.2\src\core\netif.c + + + $PROJ_DIR$\..\..\components\net\lwip-2.0.2\src\core\pbuf.c + + + $PROJ_DIR$\..\..\components\net\lwip-2.0.2\src\core\raw.c + + + $PROJ_DIR$\..\..\components\net\lwip-2.0.2\src\core\stats.c + + + $PROJ_DIR$\..\..\components\net\lwip-2.0.2\src\core\sys.c + + + $PROJ_DIR$\..\..\components\net\lwip-2.0.2\src\core\tcp.c + + + $PROJ_DIR$\..\..\components\net\lwip-2.0.2\src\core\tcp_in.c + + + $PROJ_DIR$\..\..\components\net\lwip-2.0.2\src\core\tcp_out.c + + + $PROJ_DIR$\..\..\components\net\lwip-2.0.2\src\core\timeouts.c + + + $PROJ_DIR$\..\..\components\net\lwip-2.0.2\src\core\udp.c + + + $PROJ_DIR$\..\..\components\net\lwip-2.0.2\src\netif\ethernet.c + + + $PROJ_DIR$\..\..\components\net\lwip-2.0.2\src\netif\ethernetif.c + + + $PROJ_DIR$\..\..\components\net\lwip-2.0.2\src\netif\lowpan6.c + + + $PROJ_DIR$\..\..\components\net\lwip-2.0.2\src\core\ipv4\autoip.c + + + $PROJ_DIR$\..\..\components\net\lwip-2.0.2\src\core\ipv4\dhcp.c + + + $PROJ_DIR$\..\..\components\net\lwip-2.0.2\src\core\ipv4\etharp.c + + + $PROJ_DIR$\..\..\components\net\lwip-2.0.2\src\core\ipv4\icmp.c + + + $PROJ_DIR$\..\..\components\net\lwip-2.0.2\src\core\ipv4\igmp.c + + + $PROJ_DIR$\..\..\components\net\lwip-2.0.2\src\core\ipv4\ip4.c + + + $PROJ_DIR$\..\..\components\net\lwip-2.0.2\src\core\ipv4\ip4_addr.c + + + $PROJ_DIR$\..\..\components\net\lwip-2.0.2\src\core\ipv4\ip4_frag.c diff --git a/bsp/gd32450z-eval/project.uvproj b/bsp/gd32450z-eval/project.uvproj index 6921a4f927..82523ac05b 100644 --- a/bsp/gd32450z-eval/project.uvproj +++ b/bsp/gd32450z-eval/project.uvproj @@ -359,7 +359,7 @@ GD32F4XX, USE_STDPERIPH_DRIVER - drivers;applications;.;Libraries/CMSIS/GD/GD32F4xx/Include;Libraries/CMSIS;Libraries/GD32F4xx_standard_peripheral/Include;../../include;../../libcpu/arm/cortex-m4;../../libcpu/arm/common;../../components/drivers/include;../../components/drivers/include;../../components/drivers/include;../../components/drivers/spi;../../components/drivers/include;../../components/drivers/spi/sfud/inc;../../components/drivers/include;../../components/finsh;../../components/gui/include;../../components/gui/include/rtgui;../../components/gui/include/rtgui/widgets;../../components/gui/src;../../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-2.0.2/src/include/posix;../../components/dfs/include;../../components/dfs/filesystems/devfs;../../components/dfs/filesystems/elmfat + applications;.;drivers;Libraries\CMSIS\GD\GD32F4xx\Include;Libraries\CMSIS;Libraries\GD32F4xx_standard_peripheral\Include;..\..\include;..\..\libcpu\arm\cortex-m4;..\..\libcpu\arm\common;..\..\components\dfs\include;..\..\components\dfs\filesystems\devfs;..\..\components\dfs\filesystems\elmfat;..\..\components\drivers\include;..\..\components\drivers\include;..\..\components\drivers\include;..\..\components\drivers\spi;..\..\components\drivers\include;..\..\components\drivers\spi\sfud\inc;..\..\components\drivers\include;..\..\components\finsh;..\..\components\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-2.0.2\src\include\posix @@ -399,93 +399,79 @@ - - Drivers - - - board.c - 1 - drivers/board.c - - - - - drv_exmc_sdram.c - 1 - drivers/drv_exmc_sdram.c - - - - - drv_usart.c - 1 - drivers/drv_usart.c - - - - - drv_enet.c - 1 - drivers/drv_enet.c - - - - - synopsys_emac.c - 1 - drivers/synopsys_emac.c - - - - - drv_lcd.c - 1 - drivers/drv_lcd.c - - - - - gd32f450z_lcd_eval.c - 1 - drivers/gd32f450z_lcd_eval.c - - - - - drv_spi_flash.c - 1 - drivers/drv_spi_flash.c - - - - - drv_spi.c - 1 - drivers/drv_spi.c - - - Applications application.c 1 - applications/application.c + applications\application.c rtgui_demo.c 1 - applications/rtgui_demo.c + applications\rtgui_demo.c startup.c 1 - applications/startup.c + applications\startup.c + + + + + Drivers + + + board.c + 1 + drivers\board.c + + + + + drv_exmc_sdram.c + 1 + drivers\drv_exmc_sdram.c + + + + + drv_usart.c + 1 + drivers\drv_usart.c + + + + + drv_enet.c + 1 + drivers\drv_enet.c + + + + + synopsys_emac.c + 1 + drivers\synopsys_emac.c + + + + + drv_spi_flash.c + 1 + drivers\drv_spi_flash.c + + + + + drv_spi.c + 1 + drivers\drv_spi.c @@ -495,217 +481,217 @@ gd32f4xx_adc.c 1 - Libraries/GD32F4xx_standard_peripheral/Source/gd32f4xx_adc.c + Libraries\GD32F4xx_standard_peripheral\Source\gd32f4xx_adc.c gd32f4xx_can.c 1 - Libraries/GD32F4xx_standard_peripheral/Source/gd32f4xx_can.c + Libraries\GD32F4xx_standard_peripheral\Source\gd32f4xx_can.c gd32f4xx_crc.c 1 - Libraries/GD32F4xx_standard_peripheral/Source/gd32f4xx_crc.c + Libraries\GD32F4xx_standard_peripheral\Source\gd32f4xx_crc.c gd32f4xx_ctc.c 1 - Libraries/GD32F4xx_standard_peripheral/Source/gd32f4xx_ctc.c + Libraries\GD32F4xx_standard_peripheral\Source\gd32f4xx_ctc.c gd32f4xx_dac.c 1 - Libraries/GD32F4xx_standard_peripheral/Source/gd32f4xx_dac.c + Libraries\GD32F4xx_standard_peripheral\Source\gd32f4xx_dac.c gd32f4xx_dbg.c 1 - Libraries/GD32F4xx_standard_peripheral/Source/gd32f4xx_dbg.c + Libraries\GD32F4xx_standard_peripheral\Source\gd32f4xx_dbg.c gd32f4xx_dci.c 1 - Libraries/GD32F4xx_standard_peripheral/Source/gd32f4xx_dci.c + Libraries\GD32F4xx_standard_peripheral\Source\gd32f4xx_dci.c gd32f4xx_dma.c 1 - Libraries/GD32F4xx_standard_peripheral/Source/gd32f4xx_dma.c + Libraries\GD32F4xx_standard_peripheral\Source\gd32f4xx_dma.c gd32f4xx_enet.c 1 - Libraries/GD32F4xx_standard_peripheral/Source/gd32f4xx_enet.c + Libraries\GD32F4xx_standard_peripheral\Source\gd32f4xx_enet.c gd32f4xx_exmc.c 1 - Libraries/GD32F4xx_standard_peripheral/Source/gd32f4xx_exmc.c + Libraries\GD32F4xx_standard_peripheral\Source\gd32f4xx_exmc.c gd32f4xx_exti.c 1 - Libraries/GD32F4xx_standard_peripheral/Source/gd32f4xx_exti.c + Libraries\GD32F4xx_standard_peripheral\Source\gd32f4xx_exti.c gd32f4xx_fmc.c 1 - Libraries/GD32F4xx_standard_peripheral/Source/gd32f4xx_fmc.c + Libraries\GD32F4xx_standard_peripheral\Source\gd32f4xx_fmc.c gd32f4xx_fwdgt.c 1 - Libraries/GD32F4xx_standard_peripheral/Source/gd32f4xx_fwdgt.c + Libraries\GD32F4xx_standard_peripheral\Source\gd32f4xx_fwdgt.c gd32f4xx_gpio.c 1 - Libraries/GD32F4xx_standard_peripheral/Source/gd32f4xx_gpio.c + Libraries\GD32F4xx_standard_peripheral\Source\gd32f4xx_gpio.c gd32f4xx_i2c.c 1 - Libraries/GD32F4xx_standard_peripheral/Source/gd32f4xx_i2c.c + Libraries\GD32F4xx_standard_peripheral\Source\gd32f4xx_i2c.c gd32f4xx_ipa.c 1 - Libraries/GD32F4xx_standard_peripheral/Source/gd32f4xx_ipa.c + Libraries\GD32F4xx_standard_peripheral\Source\gd32f4xx_ipa.c gd32f4xx_iref.c 1 - Libraries/GD32F4xx_standard_peripheral/Source/gd32f4xx_iref.c + Libraries\GD32F4xx_standard_peripheral\Source\gd32f4xx_iref.c gd32f4xx_misc.c 1 - Libraries/GD32F4xx_standard_peripheral/Source/gd32f4xx_misc.c + Libraries\GD32F4xx_standard_peripheral\Source\gd32f4xx_misc.c gd32f4xx_pmu.c 1 - Libraries/GD32F4xx_standard_peripheral/Source/gd32f4xx_pmu.c + Libraries\GD32F4xx_standard_peripheral\Source\gd32f4xx_pmu.c gd32f4xx_rcu.c 1 - Libraries/GD32F4xx_standard_peripheral/Source/gd32f4xx_rcu.c + Libraries\GD32F4xx_standard_peripheral\Source\gd32f4xx_rcu.c gd32f4xx_rtc.c 1 - Libraries/GD32F4xx_standard_peripheral/Source/gd32f4xx_rtc.c + Libraries\GD32F4xx_standard_peripheral\Source\gd32f4xx_rtc.c gd32f4xx_sdio.c 1 - Libraries/GD32F4xx_standard_peripheral/Source/gd32f4xx_sdio.c + Libraries\GD32F4xx_standard_peripheral\Source\gd32f4xx_sdio.c gd32f4xx_spi.c 1 - Libraries/GD32F4xx_standard_peripheral/Source/gd32f4xx_spi.c + Libraries\GD32F4xx_standard_peripheral\Source\gd32f4xx_spi.c gd32f4xx_syscfg.c 1 - Libraries/GD32F4xx_standard_peripheral/Source/gd32f4xx_syscfg.c + Libraries\GD32F4xx_standard_peripheral\Source\gd32f4xx_syscfg.c gd32f4xx_timer.c 1 - Libraries/GD32F4xx_standard_peripheral/Source/gd32f4xx_timer.c + Libraries\GD32F4xx_standard_peripheral\Source\gd32f4xx_timer.c gd32f4xx_tli.c 1 - Libraries/GD32F4xx_standard_peripheral/Source/gd32f4xx_tli.c + Libraries\GD32F4xx_standard_peripheral\Source\gd32f4xx_tli.c gd32f4xx_trng.c 1 - Libraries/GD32F4xx_standard_peripheral/Source/gd32f4xx_trng.c + Libraries\GD32F4xx_standard_peripheral\Source\gd32f4xx_trng.c gd32f4xx_usart.c 1 - Libraries/GD32F4xx_standard_peripheral/Source/gd32f4xx_usart.c + Libraries\GD32F4xx_standard_peripheral\Source\gd32f4xx_usart.c gd32f4xx_wwdgt.c 1 - Libraries/GD32F4xx_standard_peripheral/Source/gd32f4xx_wwdgt.c + Libraries\GD32F4xx_standard_peripheral\Source\gd32f4xx_wwdgt.c system_gd32f4xx.c 1 - Libraries/CMSIS/GD/GD32F4xx/Source/system_gd32f4xx.c + Libraries\CMSIS\GD\GD32F4xx\Source\system_gd32f4xx.c startup_gd32f4xx.s 2 - Libraries/CMSIS/GD/GD32F4xx/Source/ARM/startup_gd32f4xx.s + Libraries\CMSIS\GD\GD32F4xx\Source\ARM\startup_gd32f4xx.s @@ -715,112 +701,112 @@ clock.c 1 - ../../src/clock.c + ..\..\src\clock.c components.c 1 - ../../src/components.c + ..\..\src\components.c device.c 1 - ../../src/device.c + ..\..\src\device.c idle.c 1 - ../../src/idle.c + ..\..\src\idle.c ipc.c 1 - ../../src/ipc.c + ..\..\src\ipc.c irq.c 1 - ../../src/irq.c + ..\..\src\irq.c kservice.c 1 - ../../src/kservice.c + ..\..\src\kservice.c mem.c 1 - ../../src/mem.c + ..\..\src\mem.c memheap.c 1 - ../../src/memheap.c + ..\..\src\memheap.c mempool.c 1 - ../../src/mempool.c + ..\..\src\mempool.c module.c 1 - ../../src/module.c + ..\..\src\module.c object.c 1 - ../../src/object.c + ..\..\src\object.c scheduler.c 1 - ../../src/scheduler.c + ..\..\src\scheduler.c signal.c 1 - ../../src/signal.c + ..\..\src\signal.c thread.c 1 - ../../src/thread.c + ..\..\src\thread.c timer.c 1 - ../../src/timer.c + ..\..\src\timer.c @@ -830,35 +816,87 @@ cpuport.c 1 - ../../libcpu/arm/cortex-m4/cpuport.c + ..\..\libcpu\arm\cortex-m4\cpuport.c context_rvds.S 2 - ../../libcpu/arm/cortex-m4/context_rvds.S + ..\..\libcpu\arm\cortex-m4\context_rvds.S backtrace.c 1 - ../../libcpu/arm/common/backtrace.c + ..\..\libcpu\arm\common\backtrace.c div0.c 1 - ../../libcpu/arm/common/div0.c + ..\..\libcpu\arm\common\div0.c showmem.c 1 - ../../libcpu/arm/common/showmem.c + ..\..\libcpu\arm\common\showmem.c + + + + + Filesystem + + + dfs.c + 1 + ..\..\components\dfs\src\dfs.c + + + + + dfs_file.c + 1 + ..\..\components\dfs\src\dfs_file.c + + + + + dfs_fs.c + 1 + ..\..\components\dfs\src\dfs_fs.c + + + + + dfs_posix.c + 1 + ..\..\components\dfs\src\dfs_posix.c + + + + + devfs.c + 1 + ..\..\components\dfs\filesystems\devfs\devfs.c + + + + + dfs_elm.c + 1 + ..\..\components\dfs\filesystems\elmfat\dfs_elm.c + + + + + ff.c + 1 + ..\..\components\dfs\filesystems\elmfat\ff.c @@ -868,105 +906,105 @@ i2c_core.c 1 - ../../components/drivers/i2c/i2c_core.c + ..\..\components\drivers\i2c\i2c_core.c i2c_dev.c 1 - ../../components/drivers/i2c/i2c_dev.c + ..\..\components\drivers\i2c\i2c_dev.c i2c-bit-ops.c 1 - ../../components/drivers/i2c/i2c-bit-ops.c - - - - - serial.c - 1 - ../../components/drivers/serial/serial.c + ..\..\components\drivers\i2c\i2c-bit-ops.c rtc.c 1 - ../../components/drivers/rtc/rtc.c + ..\..\components\drivers\rtc\rtc.c + + + + + serial.c + 1 + ..\..\components\drivers\serial\serial.c spi_core.c 1 - ../../components/drivers/spi/spi_core.c + ..\..\components\drivers\spi\spi_core.c spi_dev.c 1 - ../../components/drivers/spi/spi_dev.c + ..\..\components\drivers\spi\spi_dev.c spi_flash_sfud.c 1 - ../../components/drivers/spi/spi_flash_sfud.c + ..\..\components\drivers\spi\spi_flash_sfud.c sfud.c 1 - ../../components/drivers/spi/sfud/src/sfud.c + ..\..\components\drivers\spi\sfud\src\sfud.c completion.c 1 - ../../components/drivers/src/completion.c + ..\..\components\drivers\src\completion.c dataqueue.c 1 - ../../components/drivers/src/dataqueue.c + ..\..\components\drivers\src\dataqueue.c pipe.c 1 - ../../components/drivers/src/pipe.c + ..\..\components\drivers\src\pipe.c ringbuffer.c 1 - ../../components/drivers/src/ringbuffer.c + ..\..\components\drivers\src\ringbuffer.c waitqueue.c 1 - ../../components/drivers/src/waitqueue.c + ..\..\components\drivers\src\waitqueue.c workqueue.c 1 - ../../components/drivers/src/workqueue.c + ..\..\components\drivers\src\workqueue.c @@ -988,381 +1026,91 @@ shell.c 1 - ../../components/finsh/shell.c + ..\..\components\finsh\shell.c symbol.c 1 - ../../components/finsh/symbol.c + ..\..\components\finsh\symbol.c cmd.c 1 - ../../components/finsh/cmd.c + ..\..\components\finsh\cmd.c finsh_compiler.c 1 - ../../components/finsh/finsh_compiler.c + ..\..\components\finsh\finsh_compiler.c finsh_error.c 1 - ../../components/finsh/finsh_error.c + ..\..\components\finsh\finsh_error.c finsh_heap.c 1 - ../../components/finsh/finsh_heap.c + ..\..\components\finsh\finsh_heap.c finsh_init.c 1 - ../../components/finsh/finsh_init.c + ..\..\components\finsh\finsh_init.c finsh_node.c 1 - ../../components/finsh/finsh_node.c + ..\..\components\finsh\finsh_node.c finsh_ops.c 1 - ../../components/finsh/finsh_ops.c + ..\..\components\finsh\finsh_ops.c finsh_parser.c 1 - ../../components/finsh/finsh_parser.c + ..\..\components\finsh\finsh_parser.c finsh_var.c 1 - ../../components/finsh/finsh_var.c + ..\..\components\finsh\finsh_var.c finsh_vm.c 1 - ../../components/finsh/finsh_vm.c + ..\..\components\finsh\finsh_vm.c finsh_token.c 1 - ../../components/finsh/finsh_token.c - - - - - GuiEngine - - - asc12font.c - 1 - ../../components/gui/src/asc12font.c - - - - - asc16font.c - 1 - ../../components/gui/src/asc16font.c - - - - - blit.c - 1 - ../../components/gui/src/blit.c - - - - - box.c - 1 - ../../components/gui/src/box.c - - - - - color.c - 1 - ../../components/gui/src/color.c - - - - - container.c - 1 - ../../components/gui/src/container.c - - - - - dc.c - 1 - ../../components/gui/src/dc.c - - - - - dc_blend.c - 1 - ../../components/gui/src/dc_blend.c - - - - - dc_buffer.c - 1 - ../../components/gui/src/dc_buffer.c - - - - - dc_client.c - 1 - ../../components/gui/src/dc_client.c - - - - - dc_hw.c - 1 - ../../components/gui/src/dc_hw.c - - - - - dc_rotozoom.c - 1 - ../../components/gui/src/dc_rotozoom.c - - - - - dc_trans.c - 1 - ../../components/gui/src/dc_trans.c - - - - - filerw.c - 1 - ../../components/gui/src/filerw.c - - - - - font.c - 1 - ../../components/gui/src/font.c - - - - - font_bmp.c - 1 - ../../components/gui/src/font_bmp.c - - - - - font_fnt.c - 1 - ../../components/gui/src/font_fnt.c - - - - - font_freetype.c - 1 - ../../components/gui/src/font_freetype.c - - - - - font_hz_bmp.c - 1 - ../../components/gui/src/font_hz_bmp.c - - - - - font_hz_file.c - 1 - ../../components/gui/src/font_hz_file.c - - - - - hz12font.c - 1 - ../../components/gui/src/hz12font.c - - - - - hz16font.c - 1 - ../../components/gui/src/hz16font.c - - - - - image.c - 1 - ../../components/gui/src/image.c - - - - - image_bmp.c - 1 - ../../components/gui/src/image_bmp.c - - - - - image_container.c - 1 - ../../components/gui/src/image_container.c - - - - - image_hdc.c - 1 - ../../components/gui/src/image_hdc.c - - - - - image_jpg.c - 1 - ../../components/gui/src/image_jpg.c - - - - - image_png.c - 1 - ../../components/gui/src/image_png.c - - - - - image_xpm.c - 1 - ../../components/gui/src/image_xpm.c - - - - - matrix.c - 1 - ../../components/gui/src/matrix.c - - - - - mouse.c - 1 - ../../components/gui/src/mouse.c - - - - - region.c - 1 - ../../components/gui/src/region.c - - - - - rtgui_app.c - 1 - ../../components/gui/src/rtgui_app.c - - - - - rtgui_driver.c - 1 - ../../components/gui/src/rtgui_driver.c - - - - - rtgui_object.c - 1 - ../../components/gui/src/rtgui_object.c - - - - - rtgui_system.c - 1 - ../../components/gui/src/rtgui_system.c - - - - - server.c - 1 - ../../components/gui/src/server.c - - - - - title.c - 1 - ../../components/gui/src/title.c - - - - - topwin.c - 1 - ../../components/gui/src/topwin.c - - - - - widget.c - 1 - ../../components/gui/src/widget.c - - - - - window.c - 1 - ../../components/gui/src/window.c + ..\..\components\finsh\finsh_token.c @@ -1372,304 +1120,252 @@ sys_arch.c 1 - ../../components/net/lwip-2.0.2/src/arch/sys_arch.c + ..\..\components\net\lwip-2.0.2\src\arch\sys_arch.c api_lib.c 1 - ../../components/net/lwip-2.0.2/src/api/api_lib.c + ..\..\components\net\lwip-2.0.2\src\api\api_lib.c api_msg.c 1 - ../../components/net/lwip-2.0.2/src/api/api_msg.c + ..\..\components\net\lwip-2.0.2\src\api\api_msg.c err.c 1 - ../../components/net/lwip-2.0.2/src/api/err.c + ..\..\components\net\lwip-2.0.2\src\api\err.c netbuf.c 1 - ../../components/net/lwip-2.0.2/src/api/netbuf.c + ..\..\components\net\lwip-2.0.2\src\api\netbuf.c netdb.c 1 - ../../components/net/lwip-2.0.2/src/api/netdb.c + ..\..\components\net\lwip-2.0.2\src\api\netdb.c netifapi.c 1 - ../../components/net/lwip-2.0.2/src/api/netifapi.c + ..\..\components\net\lwip-2.0.2\src\api\netifapi.c sockets.c 1 - ../../components/net/lwip-2.0.2/src/api/sockets.c + ..\..\components\net\lwip-2.0.2\src\api\sockets.c tcpip.c 1 - ../../components/net/lwip-2.0.2/src/api/tcpip.c + ..\..\components\net\lwip-2.0.2\src\api\tcpip.c def.c 1 - ../../components/net/lwip-2.0.2/src/core/def.c + ..\..\components\net\lwip-2.0.2\src\core\def.c dns.c 1 - ../../components/net/lwip-2.0.2/src/core/dns.c + ..\..\components\net\lwip-2.0.2\src\core\dns.c inet_chksum.c 1 - ../../components/net/lwip-2.0.2/src/core/inet_chksum.c + ..\..\components\net\lwip-2.0.2\src\core\inet_chksum.c init.c 1 - ../../components/net/lwip-2.0.2/src/core/init.c + ..\..\components\net\lwip-2.0.2\src\core\init.c ip.c 1 - ../../components/net/lwip-2.0.2/src/core/ip.c + ..\..\components\net\lwip-2.0.2\src\core\ip.c memp.c 1 - ../../components/net/lwip-2.0.2/src/core/memp.c + ..\..\components\net\lwip-2.0.2\src\core\memp.c netif.c 1 - ../../components/net/lwip-2.0.2/src/core/netif.c + ..\..\components\net\lwip-2.0.2\src\core\netif.c pbuf.c 1 - ../../components/net/lwip-2.0.2/src/core/pbuf.c + ..\..\components\net\lwip-2.0.2\src\core\pbuf.c raw.c 1 - ../../components/net/lwip-2.0.2/src/core/raw.c + ..\..\components\net\lwip-2.0.2\src\core\raw.c stats.c 1 - ../../components/net/lwip-2.0.2/src/core/stats.c + ..\..\components\net\lwip-2.0.2\src\core\stats.c sys.c 1 - ../../components/net/lwip-2.0.2/src/core/sys.c + ..\..\components\net\lwip-2.0.2\src\core\sys.c tcp.c 1 - ../../components/net/lwip-2.0.2/src/core/tcp.c + ..\..\components\net\lwip-2.0.2\src\core\tcp.c tcp_in.c 1 - ../../components/net/lwip-2.0.2/src/core/tcp_in.c + ..\..\components\net\lwip-2.0.2\src\core\tcp_in.c tcp_out.c 1 - ../../components/net/lwip-2.0.2/src/core/tcp_out.c + ..\..\components\net\lwip-2.0.2\src\core\tcp_out.c timeouts.c 1 - ../../components/net/lwip-2.0.2/src/core/timeouts.c + ..\..\components\net\lwip-2.0.2\src\core\timeouts.c udp.c 1 - ../../components/net/lwip-2.0.2/src/core/udp.c + ..\..\components\net\lwip-2.0.2\src\core\udp.c ethernet.c 1 - ../../components/net/lwip-2.0.2/src/netif/ethernet.c + ..\..\components\net\lwip-2.0.2\src\netif\ethernet.c ethernetif.c 1 - ../../components/net/lwip-2.0.2/src/netif/ethernetif.c + ..\..\components\net\lwip-2.0.2\src\netif\ethernetif.c lowpan6.c 1 - ../../components/net/lwip-2.0.2/src/netif/lowpan6.c + ..\..\components\net\lwip-2.0.2\src\netif\lowpan6.c autoip.c 1 - ../../components/net/lwip-2.0.2/src/core/ipv4/autoip.c + ..\..\components\net\lwip-2.0.2\src\core\ipv4\autoip.c dhcp.c 1 - ../../components/net/lwip-2.0.2/src/core/ipv4/dhcp.c + ..\..\components\net\lwip-2.0.2\src\core\ipv4\dhcp.c etharp.c 1 - ../../components/net/lwip-2.0.2/src/core/ipv4/etharp.c + ..\..\components\net\lwip-2.0.2\src\core\ipv4\etharp.c icmp.c 1 - ../../components/net/lwip-2.0.2/src/core/ipv4/icmp.c + ..\..\components\net\lwip-2.0.2\src\core\ipv4\icmp.c igmp.c 1 - ../../components/net/lwip-2.0.2/src/core/ipv4/igmp.c + ..\..\components\net\lwip-2.0.2\src\core\ipv4\igmp.c ip4.c 1 - ../../components/net/lwip-2.0.2/src/core/ipv4/ip4.c + ..\..\components\net\lwip-2.0.2\src\core\ipv4\ip4.c ip4_addr.c 1 - ../../components/net/lwip-2.0.2/src/core/ipv4/ip4_addr.c + ..\..\components\net\lwip-2.0.2\src\core\ipv4\ip4_addr.c ip4_frag.c 1 - ../../components/net/lwip-2.0.2/src/core/ipv4/ip4_frag.c - - - - - Filesystem - - - dfs.c - 1 - ../../components/dfs/src/dfs.c - - - - - dfs_file.c - 1 - ../../components/dfs/src/dfs_file.c - - - - - dfs_fs.c - 1 - ../../components/dfs/src/dfs_fs.c - - - - - dfs_posix.c - 1 - ../../components/dfs/src/dfs_posix.c - - - - - devfs.c - 1 - ../../components/dfs/filesystems/devfs/devfs.c - - - - - dfs_elm.c - 1 - ../../components/dfs/filesystems/elmfat/dfs_elm.c - - - - - ff.c - 1 - ../../components/dfs/filesystems/elmfat/ff.c + ..\..\components\net\lwip-2.0.2\src\core\ipv4\ip4_frag.c diff --git a/bsp/gd32450z-eval/project.uvprojx b/bsp/gd32450z-eval/project.uvprojx index 0a83879614..1f4fbdfb73 100644 --- a/bsp/gd32450z-eval/project.uvprojx +++ b/bsp/gd32450z-eval/project.uvprojx @@ -1,12 +1,17 @@ + 2.1 + ### uVision Project, (C) Keil Software + rt-thread_gd32f4xx 0x4 ARM-ADS + 5060750::V5.06 update 6 (build 750)::ARMCC + 0 GD32F450ZK @@ -14,28 +19,28 @@ GigaDevice.GD32F4xx_DFP.1.0.1 http://gd32mcu.21ic.com/data/documents/yingyongruanjian/GD32F4 IRAM(0x20000000,0x030000) IRAM2(0x10000000,0x010000) IROM(0x08000000,0x0300000) CPUTYPE("Cortex-M4") FPU2 CLOCK(12000000) ELITTLE - - + + UL2CM3(-S0 -C0 -P0 -FD20000000 -FC1000 -FN1 -FF0GD32F4xx_3MB -FS08000000 -FL0300000 -FP0($$Device:GD32F450ZK$Flash\GD32F4xx_3MB.FLM)) 0 $$Device:GD32F450ZK$Device\Include\gd32f4xx.h - - - - - - - - - + + + + + + + + + $$Device:GD32F450ZK$SVD\GD32F4xx.svd 0 0 - - - - - + + + + + 0 0 @@ -57,8 +62,8 @@ 0 0 - - + + 0 0 0 @@ -67,8 +72,8 @@ 0 0 - - + + 0 0 0 @@ -78,14 +83,14 @@ 1 0 fromelf --bin !L --output rtthread.bin - + 0 0 0 0 0 - + 0 @@ -99,8 +104,8 @@ 0 0 3 - - + + 1 @@ -133,11 +138,11 @@ 1 BIN\UL2CM3.DLL - - - - - + + + + + 0 @@ -170,7 +175,7 @@ 0 0 "Cortex-M4" - + 0 0 0 @@ -302,7 +307,7 @@ 0x10000 - + 1 @@ -319,6 +324,7 @@ 0 0 1 + 0 0 1 1 @@ -328,9 +334,9 @@ 0 0 - + GD32F4XX, USE_STDPERIPH_DRIVER - + drivers;applications;.;Libraries/CMSIS/GD/GD32F4xx/Include;Libraries/CMSIS;Libraries/GD32F4xx_standard_peripheral/Include;../../include;../../libcpu/arm/cortex-m4;../../libcpu/arm/common;../../components/drivers/include;../../components/drivers/include;../../components/drivers/include;../../components/drivers/spi;../../components/drivers/include;../../components/drivers/spi/sfud/inc;../../components/drivers/include;../../components/finsh;../../components/gui/include;../../components/gui/include/rtgui;../../components/gui/include/rtgui/widgets;../../components/gui/src;../../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-2.0.2/src/include/posix;../../components/dfs/include;../../components/dfs/filesystems/devfs;../../components/dfs/filesystems/elmfat @@ -346,10 +352,10 @@ 0 0 - - - - + + + + @@ -361,13 +367,13 @@ 0 0x08000000 0x20000000 - + .\gd32_rom.ld - - + + --keep *.o(RTMSymTab) --keep *.o(.rti_fn.*) --keep *.o(FSymTab) --keep *.o(VSymTab) - - + + @@ -380,57 +386,41 @@ 1 drivers/board.c - - drv_exmc_sdram.c 1 drivers/drv_exmc_sdram.c - - drv_usart.c 1 drivers/drv_usart.c - - drv_enet.c 1 drivers/drv_enet.c - - synopsys_emac.c 1 drivers/synopsys_emac.c - - drv_lcd.c 1 drivers/drv_lcd.c - - gd32f450z_lcd_eval.c 1 drivers/gd32f450z_lcd_eval.c - - drv_spi_flash.c 1 drivers/drv_spi_flash.c - - drv_spi.c 1 @@ -446,15 +436,11 @@ 1 applications/application.c - - rtgui_demo.c 1 applications/rtgui_demo.c - - startup.c 1 @@ -470,211 +456,151 @@ 1 Libraries/GD32F4xx_standard_peripheral/Source/gd32f4xx_adc.c - - gd32f4xx_can.c 1 Libraries/GD32F4xx_standard_peripheral/Source/gd32f4xx_can.c - - gd32f4xx_crc.c 1 Libraries/GD32F4xx_standard_peripheral/Source/gd32f4xx_crc.c - - gd32f4xx_ctc.c 1 Libraries/GD32F4xx_standard_peripheral/Source/gd32f4xx_ctc.c - - gd32f4xx_dac.c 1 Libraries/GD32F4xx_standard_peripheral/Source/gd32f4xx_dac.c - - gd32f4xx_dbg.c 1 Libraries/GD32F4xx_standard_peripheral/Source/gd32f4xx_dbg.c - - gd32f4xx_dci.c 1 Libraries/GD32F4xx_standard_peripheral/Source/gd32f4xx_dci.c - - gd32f4xx_dma.c 1 Libraries/GD32F4xx_standard_peripheral/Source/gd32f4xx_dma.c - - gd32f4xx_enet.c 1 Libraries/GD32F4xx_standard_peripheral/Source/gd32f4xx_enet.c - - gd32f4xx_exmc.c 1 Libraries/GD32F4xx_standard_peripheral/Source/gd32f4xx_exmc.c - - gd32f4xx_exti.c 1 Libraries/GD32F4xx_standard_peripheral/Source/gd32f4xx_exti.c - - gd32f4xx_fmc.c 1 Libraries/GD32F4xx_standard_peripheral/Source/gd32f4xx_fmc.c - - gd32f4xx_fwdgt.c 1 Libraries/GD32F4xx_standard_peripheral/Source/gd32f4xx_fwdgt.c - - gd32f4xx_gpio.c 1 Libraries/GD32F4xx_standard_peripheral/Source/gd32f4xx_gpio.c - - gd32f4xx_i2c.c 1 Libraries/GD32F4xx_standard_peripheral/Source/gd32f4xx_i2c.c - - gd32f4xx_ipa.c 1 Libraries/GD32F4xx_standard_peripheral/Source/gd32f4xx_ipa.c - - gd32f4xx_iref.c 1 Libraries/GD32F4xx_standard_peripheral/Source/gd32f4xx_iref.c - - gd32f4xx_misc.c 1 Libraries/GD32F4xx_standard_peripheral/Source/gd32f4xx_misc.c - - gd32f4xx_pmu.c 1 Libraries/GD32F4xx_standard_peripheral/Source/gd32f4xx_pmu.c - - gd32f4xx_rcu.c 1 Libraries/GD32F4xx_standard_peripheral/Source/gd32f4xx_rcu.c - - gd32f4xx_rtc.c 1 Libraries/GD32F4xx_standard_peripheral/Source/gd32f4xx_rtc.c - - gd32f4xx_sdio.c 1 Libraries/GD32F4xx_standard_peripheral/Source/gd32f4xx_sdio.c - - gd32f4xx_spi.c 1 Libraries/GD32F4xx_standard_peripheral/Source/gd32f4xx_spi.c - - gd32f4xx_syscfg.c 1 Libraries/GD32F4xx_standard_peripheral/Source/gd32f4xx_syscfg.c - - gd32f4xx_timer.c 1 Libraries/GD32F4xx_standard_peripheral/Source/gd32f4xx_timer.c - - gd32f4xx_tli.c 1 Libraries/GD32F4xx_standard_peripheral/Source/gd32f4xx_tli.c - - gd32f4xx_trng.c 1 Libraries/GD32F4xx_standard_peripheral/Source/gd32f4xx_trng.c - - gd32f4xx_usart.c 1 Libraries/GD32F4xx_standard_peripheral/Source/gd32f4xx_usart.c - - gd32f4xx_wwdgt.c 1 Libraries/GD32F4xx_standard_peripheral/Source/gd32f4xx_wwdgt.c - - system_gd32f4xx.c 1 Libraries/CMSIS/GD/GD32F4xx/Source/system_gd32f4xx.c - - startup_gd32f4xx.s 2 @@ -690,106 +616,76 @@ 1 ../../src/clock.c - - components.c 1 ../../src/components.c - - device.c 1 ../../src/device.c - - idle.c 1 ../../src/idle.c - - ipc.c 1 ../../src/ipc.c - - irq.c 1 ../../src/irq.c - - kservice.c 1 ../../src/kservice.c - - mem.c 1 ../../src/mem.c - - memheap.c 1 ../../src/memheap.c - - mempool.c 1 ../../src/mempool.c - - module.c 1 ../../src/module.c - - object.c 1 ../../src/object.c - - scheduler.c 1 ../../src/scheduler.c - - signal.c 1 ../../src/signal.c - - thread.c 1 ../../src/thread.c - - timer.c 1 @@ -805,29 +701,21 @@ 1 ../../libcpu/arm/cortex-m4/cpuport.c - - context_rvds.S 2 ../../libcpu/arm/cortex-m4/context_rvds.S - - backtrace.c 1 ../../libcpu/arm/common/backtrace.c - - div0.c 1 ../../libcpu/arm/common/div0.c - - showmem.c 1 @@ -837,123 +725,152 @@ 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 + + --c99 + + + + + + + 2 + 2 + 2 + 2 + 2 + 2 + 2 + 2 + 2 + 2 + + + + + + + + + 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 - - serial.c 1 ../../components/drivers/serial/serial.c - - rtc.c 1 ../../components/drivers/rtc/rtc.c - - spi_core.c 1 ../../components/drivers/spi/spi_core.c - - spi_dev.c 1 ../../components/drivers/spi/spi_dev.c - - spi_flash_sfud.c 1 ../../components/drivers/spi/spi_flash_sfud.c - - sfud.c 1 ../../components/drivers/spi/sfud/src/sfud.c - - completion.c 1 ../../components/drivers/src/completion.c - - dataqueue.c 1 ../../components/drivers/src/dataqueue.c - - pipe.c 1 ../../components/drivers/src/pipe.c - - ringbuffer.c 1 ../../components/drivers/src/ringbuffer.c - - waitqueue.c 1 ../../components/drivers/src/waitqueue.c - - workqueue.c 1 ../../components/drivers/src/workqueue.c - - - - - --c99 - - - - - - - finsh @@ -963,85 +880,61 @@ 1 ../../components/finsh/shell.c - - symbol.c 1 ../../components/finsh/symbol.c - - cmd.c 1 ../../components/finsh/cmd.c - - finsh_compiler.c 1 ../../components/finsh/finsh_compiler.c - - finsh_error.c 1 ../../components/finsh/finsh_error.c - - finsh_heap.c 1 ../../components/finsh/finsh_heap.c - - finsh_init.c 1 ../../components/finsh/finsh_init.c - - finsh_node.c 1 ../../components/finsh/finsh_node.c - - finsh_ops.c 1 ../../components/finsh/finsh_ops.c - - finsh_parser.c 1 ../../components/finsh/finsh_parser.c - - finsh_var.c 1 ../../components/finsh/finsh_var.c - - finsh_vm.c 1 ../../components/finsh/finsh_vm.c - - finsh_token.c 1 @@ -1057,281 +950,201 @@ 1 ../../components/gui/src/asc12font.c - - asc16font.c 1 ../../components/gui/src/asc16font.c - - blit.c 1 ../../components/gui/src/blit.c - - box.c 1 ../../components/gui/src/box.c - - color.c 1 ../../components/gui/src/color.c - - container.c 1 ../../components/gui/src/container.c - - dc.c 1 ../../components/gui/src/dc.c - - dc_blend.c 1 ../../components/gui/src/dc_blend.c - - dc_buffer.c 1 ../../components/gui/src/dc_buffer.c - - dc_client.c 1 ../../components/gui/src/dc_client.c - - dc_hw.c 1 ../../components/gui/src/dc_hw.c - - dc_rotozoom.c 1 ../../components/gui/src/dc_rotozoom.c - - dc_trans.c 1 ../../components/gui/src/dc_trans.c - - filerw.c 1 ../../components/gui/src/filerw.c - - font.c 1 ../../components/gui/src/font.c - - font_bmp.c 1 ../../components/gui/src/font_bmp.c - - font_fnt.c 1 ../../components/gui/src/font_fnt.c - - font_freetype.c 1 ../../components/gui/src/font_freetype.c - - font_hz_bmp.c 1 ../../components/gui/src/font_hz_bmp.c - - font_hz_file.c 1 ../../components/gui/src/font_hz_file.c - - hz12font.c 1 ../../components/gui/src/hz12font.c - - hz16font.c 1 ../../components/gui/src/hz16font.c - - image.c 1 ../../components/gui/src/image.c - - image_bmp.c 1 ../../components/gui/src/image_bmp.c - - image_container.c 1 ../../components/gui/src/image_container.c - - image_hdc.c 1 ../../components/gui/src/image_hdc.c - - image_jpg.c 1 ../../components/gui/src/image_jpg.c - - image_png.c 1 ../../components/gui/src/image_png.c - - image_xpm.c 1 ../../components/gui/src/image_xpm.c - - matrix.c 1 ../../components/gui/src/matrix.c - - mouse.c 1 ../../components/gui/src/mouse.c - - region.c 1 ../../components/gui/src/region.c - - rtgui_app.c 1 ../../components/gui/src/rtgui_app.c - - rtgui_driver.c 1 ../../components/gui/src/rtgui_driver.c - - rtgui_object.c 1 ../../components/gui/src/rtgui_object.c - - rtgui_system.c 1 ../../components/gui/src/rtgui_system.c - - server.c 1 ../../components/gui/src/server.c - - title.c 1 ../../components/gui/src/title.c - - topwin.c 1 ../../components/gui/src/topwin.c - - widget.c 1 ../../components/gui/src/widget.c - - window.c 1 @@ -1347,246 +1160,176 @@ 1 ../../components/net/lwip-2.0.2/src/arch/sys_arch.c - - api_lib.c 1 ../../components/net/lwip-2.0.2/src/api/api_lib.c - - api_msg.c 1 ../../components/net/lwip-2.0.2/src/api/api_msg.c - - err.c 1 ../../components/net/lwip-2.0.2/src/api/err.c - - netbuf.c 1 ../../components/net/lwip-2.0.2/src/api/netbuf.c - - netdb.c 1 ../../components/net/lwip-2.0.2/src/api/netdb.c - - netifapi.c 1 ../../components/net/lwip-2.0.2/src/api/netifapi.c - - sockets.c 1 ../../components/net/lwip-2.0.2/src/api/sockets.c - - tcpip.c 1 ../../components/net/lwip-2.0.2/src/api/tcpip.c - - def.c 1 ../../components/net/lwip-2.0.2/src/core/def.c - - dns.c 1 ../../components/net/lwip-2.0.2/src/core/dns.c - - inet_chksum.c 1 ../../components/net/lwip-2.0.2/src/core/inet_chksum.c - - init.c 1 ../../components/net/lwip-2.0.2/src/core/init.c - - ip.c 1 ../../components/net/lwip-2.0.2/src/core/ip.c - - memp.c 1 ../../components/net/lwip-2.0.2/src/core/memp.c - - netif.c 1 ../../components/net/lwip-2.0.2/src/core/netif.c - - pbuf.c 1 ../../components/net/lwip-2.0.2/src/core/pbuf.c - - raw.c 1 ../../components/net/lwip-2.0.2/src/core/raw.c - - stats.c 1 ../../components/net/lwip-2.0.2/src/core/stats.c - - sys.c 1 ../../components/net/lwip-2.0.2/src/core/sys.c - - tcp.c 1 ../../components/net/lwip-2.0.2/src/core/tcp.c - - tcp_in.c 1 ../../components/net/lwip-2.0.2/src/core/tcp_in.c - - tcp_out.c 1 ../../components/net/lwip-2.0.2/src/core/tcp_out.c - - timeouts.c 1 ../../components/net/lwip-2.0.2/src/core/timeouts.c - - udp.c 1 ../../components/net/lwip-2.0.2/src/core/udp.c - - ethernet.c 1 ../../components/net/lwip-2.0.2/src/netif/ethernet.c - - ethernetif.c 1 ../../components/net/lwip-2.0.2/src/netif/ethernetif.c - - lowpan6.c 1 ../../components/net/lwip-2.0.2/src/netif/lowpan6.c - - autoip.c 1 ../../components/net/lwip-2.0.2/src/core/ipv4/autoip.c - - dhcp.c 1 ../../components/net/lwip-2.0.2/src/core/ipv4/dhcp.c - - etharp.c 1 ../../components/net/lwip-2.0.2/src/core/ipv4/etharp.c - - icmp.c 1 ../../components/net/lwip-2.0.2/src/core/ipv4/icmp.c - - igmp.c 1 ../../components/net/lwip-2.0.2/src/core/ipv4/igmp.c - - ip4.c 1 ../../components/net/lwip-2.0.2/src/core/ipv4/ip4.c - - ip4_addr.c 1 ../../components/net/lwip-2.0.2/src/core/ipv4/ip4_addr.c - - ip4_frag.c 1 @@ -1602,43 +1345,31 @@ 1 ../../components/dfs/src/dfs.c - - dfs_file.c 1 ../../components/dfs/src/dfs_file.c - - dfs_fs.c 1 ../../components/dfs/src/dfs_fs.c - - dfs_posix.c 1 ../../components/dfs/src/dfs_posix.c - - devfs.c 1 ../../components/dfs/filesystems/devfs/devfs.c - - dfs_elm.c 1 ../../components/dfs/filesystems/elmfat/dfs_elm.c - - ff.c 1 @@ -1646,19 +1377,24 @@ + + ::CMSIS + + - + - + - + - + + diff --git a/bsp/imxrt1052-evk/Libraries/drivers/fsl_enet.c b/bsp/imxrt1052-evk/Libraries/drivers/fsl_enet.c index 2e7e002425..0ef887400a 100644 --- a/bsp/imxrt1052-evk/Libraries/drivers/fsl_enet.c +++ b/bsp/imxrt1052-evk/Libraries/drivers/fsl_enet.c @@ -1345,7 +1345,13 @@ status_t ENET_SendFrame(ENET_Type *base, enet_handle_t *handle, const uint8_t *d #else address = (uint32_t)curBuffDescrip->buffer; #endif /* FSL_FEATURE_MEMORY_HAS_ADDRESS_OFFSET */ - memcpy((void *)address, data, length); + + { + // Change SDK to reduce memory copy + extern void pbuf2mem(const uint8_t *data, void *dataptr, uint32_t len); + pbuf2mem(data, (void *)address, length); + } + //memcpy((void *)address, data, length); /* Set data length. */ curBuffDescrip->length = length; #ifdef ENET_ENHANCEDBUFFERDESCRIPTOR_MODE diff --git a/bsp/imxrt1052-evk/drivers/drv_eth.c b/bsp/imxrt1052-evk/drivers/drv_eth.c index 3bd9cdcc72..812adbd748 100644 --- a/bsp/imxrt1052-evk/drivers/drv_eth.c +++ b/bsp/imxrt1052-evk/drivers/drv_eth.c @@ -16,7 +16,7 @@ #include #ifdef RT_USING_FINSH -#include + #include #endif #include "fsl_enet.h" @@ -50,13 +50,13 @@ struct rt_imxrt_eth { - /* inherit from ethernet device */ - struct eth_device parent; + /* inherit from ethernet device */ + struct eth_device parent; enet_handle_t enet_handle; ENET_Type *enet_base; enet_data_error_stats_t error_statistic; - rt_uint8_t dev_addr[MAX_ADDR_LEN]; /* hw address */ + rt_uint8_t dev_addr[MAX_ADDR_LEN]; /* hw address */ rt_bool_t tx_is_waiting; struct rt_semaphore tx_wait; @@ -73,18 +73,18 @@ ALIGN(ENET_BUFF_ALIGNMENT) rt_uint8_t g_rxDataBuff[ENET_RXBD_NUM][RT_ALIGN(ENET_ static struct rt_imxrt_eth imxrt_eth_device; -void _enet_rx_callback(struct rt_imxrt_eth * eth) +void _enet_rx_callback(struct rt_imxrt_eth *eth) { rt_err_t result; ENET_DisableInterrupts(eth->enet_base, kENET_RxFrameInterrupt); result = eth_device_ready(&(eth->parent)); - if( result != RT_EOK ) - rt_kprintf("RX err =%d\n", result ); + if (result != RT_EOK) + rt_kprintf("RX err =%d\n", result); } -void _enet_tx_callback(struct rt_imxrt_eth * eth) +void _enet_tx_callback(struct rt_imxrt_eth *eth) { if (eth->tx_is_waiting == RT_TRUE) { @@ -95,7 +95,7 @@ void _enet_tx_callback(struct rt_imxrt_eth * eth) void _enet_callback(ENET_Type *base, enet_handle_t *handle, enet_event_t event, void *userData) { - switch(event) + switch (event) { case kENET_RxEvent: @@ -130,53 +130,53 @@ void _enet_callback(ENET_Type *base, enet_handle_t *handle, enet_event_t event, static void _enet_io_init(void) { - CLOCK_EnableClock(kCLOCK_Iomuxc); /* iomuxc clock (iomuxc_clk_enable): 0x03u */ + CLOCK_EnableClock(kCLOCK_Iomuxc); /* iomuxc clock (iomuxc_clk_enable): 0x03u */ - IOMUXC_SetPinMux( - IOMUXC_GPIO_AD_B0_09_GPIO1_IO09, /* GPIO_AD_B0_09 is configured as GPIO1_IO09 */ - 0U); /* Software Input On Field: Input Path is determined by functionality */ - IOMUXC_SetPinMux( - IOMUXC_GPIO_AD_B0_10_GPIO1_IO10, /* GPIO_AD_B0_10 is configured as GPIO1_IO10 */ - 0U); /* Software Input On Field: Input Path is determined by functionality */ - IOMUXC_SetPinMux( - IOMUXC_GPIO_AD_B0_12_LPUART1_TX, /* GPIO_AD_B0_12 is configured as LPUART1_TX */ - 0U); /* Software Input On Field: Input Path is determined by functionality */ - IOMUXC_SetPinMux( - IOMUXC_GPIO_AD_B0_13_LPUART1_RX, /* GPIO_AD_B0_13 is configured as LPUART1_RX */ - 0U); /* Software Input On Field: Input Path is determined by functionality */ - IOMUXC_SetPinMux( - IOMUXC_GPIO_B1_04_ENET_RX_DATA00, /* GPIO_B1_04 is configured as ENET_RX_DATA00 */ - 0U); /* Software Input On Field: Input Path is determined by functionality */ - IOMUXC_SetPinMux( - IOMUXC_GPIO_B1_05_ENET_RX_DATA01, /* GPIO_B1_05 is configured as ENET_RX_DATA01 */ - 0U); /* Software Input On Field: Input Path is determined by functionality */ - IOMUXC_SetPinMux( - IOMUXC_GPIO_B1_06_ENET_RX_EN, /* GPIO_B1_06 is configured as ENET_RX_EN */ - 0U); /* Software Input On Field: Input Path is determined by functionality */ - IOMUXC_SetPinMux( - IOMUXC_GPIO_B1_07_ENET_TX_DATA00, /* GPIO_B1_07 is configured as ENET_TX_DATA00 */ - 0U); /* Software Input On Field: Input Path is determined by functionality */ - IOMUXC_SetPinMux( - IOMUXC_GPIO_B1_08_ENET_TX_DATA01, /* GPIO_B1_08 is configured as ENET_TX_DATA01 */ - 0U); /* Software Input On Field: Input Path is determined by functionality */ - IOMUXC_SetPinMux( - IOMUXC_GPIO_B1_09_ENET_TX_EN, /* GPIO_B1_09 is configured as ENET_TX_EN */ - 0U); /* Software Input On Field: Input Path is determined by functionality */ - IOMUXC_SetPinMux( - IOMUXC_GPIO_B1_10_ENET_REF_CLK, /* GPIO_B1_10 is configured as ENET_REF_CLK */ - 1U); /* Software Input On Field: Force input path of pad GPIO_B1_10 */ - IOMUXC_SetPinMux( - IOMUXC_GPIO_B1_11_ENET_RX_ER, /* GPIO_B1_11 is configured as ENET_RX_ER */ - 0U); /* Software Input On Field: Input Path is determined by functionality */ - IOMUXC_SetPinMux( - IOMUXC_GPIO_EMC_40_ENET_MDC, /* GPIO_EMC_40 is configured as ENET_MDC */ - 0U); /* Software Input On Field: Input Path is determined by functionality */ - IOMUXC_SetPinMux( - IOMUXC_GPIO_EMC_41_ENET_MDIO, /* GPIO_EMC_41 is configured as ENET_MDIO */ - 0U); /* Software Input On Field: Input Path is determined by functionality */ - IOMUXC_SetPinConfig( - IOMUXC_GPIO_AD_B0_09_GPIO1_IO09, /* GPIO_AD_B0_09 PAD functional properties : */ - 0xB0A9u); /* Slew Rate Field: Fast Slew Rate + IOMUXC_SetPinMux( + IOMUXC_GPIO_AD_B0_09_GPIO1_IO09, /* GPIO_AD_B0_09 is configured as GPIO1_IO09 */ + 0U); /* Software Input On Field: Input Path is determined by functionality */ + IOMUXC_SetPinMux( + IOMUXC_GPIO_AD_B0_10_GPIO1_IO10, /* GPIO_AD_B0_10 is configured as GPIO1_IO10 */ + 0U); /* Software Input On Field: Input Path is determined by functionality */ + IOMUXC_SetPinMux( + IOMUXC_GPIO_AD_B0_12_LPUART1_TX, /* GPIO_AD_B0_12 is configured as LPUART1_TX */ + 0U); /* Software Input On Field: Input Path is determined by functionality */ + IOMUXC_SetPinMux( + IOMUXC_GPIO_AD_B0_13_LPUART1_RX, /* GPIO_AD_B0_13 is configured as LPUART1_RX */ + 0U); /* Software Input On Field: Input Path is determined by functionality */ + IOMUXC_SetPinMux( + IOMUXC_GPIO_B1_04_ENET_RX_DATA00, /* GPIO_B1_04 is configured as ENET_RX_DATA00 */ + 0U); /* Software Input On Field: Input Path is determined by functionality */ + IOMUXC_SetPinMux( + IOMUXC_GPIO_B1_05_ENET_RX_DATA01, /* GPIO_B1_05 is configured as ENET_RX_DATA01 */ + 0U); /* Software Input On Field: Input Path is determined by functionality */ + IOMUXC_SetPinMux( + IOMUXC_GPIO_B1_06_ENET_RX_EN, /* GPIO_B1_06 is configured as ENET_RX_EN */ + 0U); /* Software Input On Field: Input Path is determined by functionality */ + IOMUXC_SetPinMux( + IOMUXC_GPIO_B1_07_ENET_TX_DATA00, /* GPIO_B1_07 is configured as ENET_TX_DATA00 */ + 0U); /* Software Input On Field: Input Path is determined by functionality */ + IOMUXC_SetPinMux( + IOMUXC_GPIO_B1_08_ENET_TX_DATA01, /* GPIO_B1_08 is configured as ENET_TX_DATA01 */ + 0U); /* Software Input On Field: Input Path is determined by functionality */ + IOMUXC_SetPinMux( + IOMUXC_GPIO_B1_09_ENET_TX_EN, /* GPIO_B1_09 is configured as ENET_TX_EN */ + 0U); /* Software Input On Field: Input Path is determined by functionality */ + IOMUXC_SetPinMux( + IOMUXC_GPIO_B1_10_ENET_REF_CLK, /* GPIO_B1_10 is configured as ENET_REF_CLK */ + 1U); /* Software Input On Field: Force input path of pad GPIO_B1_10 */ + IOMUXC_SetPinMux( + IOMUXC_GPIO_B1_11_ENET_RX_ER, /* GPIO_B1_11 is configured as ENET_RX_ER */ + 0U); /* Software Input On Field: Input Path is determined by functionality */ + IOMUXC_SetPinMux( + IOMUXC_GPIO_EMC_40_ENET_MDC, /* GPIO_EMC_40 is configured as ENET_MDC */ + 0U); /* Software Input On Field: Input Path is determined by functionality */ + IOMUXC_SetPinMux( + IOMUXC_GPIO_EMC_41_ENET_MDIO, /* GPIO_EMC_41 is configured as ENET_MDIO */ + 0U); /* Software Input On Field: Input Path is determined by functionality */ + IOMUXC_SetPinConfig( + IOMUXC_GPIO_AD_B0_09_GPIO1_IO09, /* GPIO_AD_B0_09 PAD functional properties : */ + 0xB0A9u); /* Slew Rate Field: Fast Slew Rate Drive Strength Field: R0/5 Speed Field: medium(100MHz) Open Drain Enable Field: Open Drain Disabled @@ -184,9 +184,9 @@ static void _enet_io_init(void) Pull / Keep Select Field: Pull Pull Up / Down Config. Field: 100K Ohm Pull Up Hyst. Enable Field: Hysteresis Disabled */ - IOMUXC_SetPinConfig( - IOMUXC_GPIO_AD_B0_10_GPIO1_IO10, /* GPIO_AD_B0_10 PAD functional properties : */ - 0xB0A9u); /* Slew Rate Field: Fast Slew Rate + IOMUXC_SetPinConfig( + IOMUXC_GPIO_AD_B0_10_GPIO1_IO10, /* GPIO_AD_B0_10 PAD functional properties : */ + 0xB0A9u); /* Slew Rate Field: Fast Slew Rate Drive Strength Field: R0/5 Speed Field: medium(100MHz) Open Drain Enable Field: Open Drain Disabled @@ -194,9 +194,9 @@ static void _enet_io_init(void) Pull / Keep Select Field: Pull Pull Up / Down Config. Field: 100K Ohm Pull Up Hyst. Enable Field: Hysteresis Disabled */ - IOMUXC_SetPinConfig( - IOMUXC_GPIO_AD_B0_12_LPUART1_TX, /* GPIO_AD_B0_12 PAD functional properties : */ - 0x10B0u); /* Slew Rate Field: Slow Slew Rate + IOMUXC_SetPinConfig( + IOMUXC_GPIO_AD_B0_12_LPUART1_TX, /* GPIO_AD_B0_12 PAD functional properties : */ + 0x10B0u); /* Slew Rate Field: Slow Slew Rate Drive Strength Field: R0/6 Speed Field: medium(100MHz) Open Drain Enable Field: Open Drain Disabled @@ -204,9 +204,9 @@ static void _enet_io_init(void) Pull / Keep Select Field: Keeper Pull Up / Down Config. Field: 100K Ohm Pull Down Hyst. Enable Field: Hysteresis Disabled */ - IOMUXC_SetPinConfig( - IOMUXC_GPIO_AD_B0_13_LPUART1_RX, /* GPIO_AD_B0_13 PAD functional properties : */ - 0x10B0u); /* Slew Rate Field: Slow Slew Rate + IOMUXC_SetPinConfig( + IOMUXC_GPIO_AD_B0_13_LPUART1_RX, /* GPIO_AD_B0_13 PAD functional properties : */ + 0x10B0u); /* Slew Rate Field: Slow Slew Rate Drive Strength Field: R0/6 Speed Field: medium(100MHz) Open Drain Enable Field: Open Drain Disabled @@ -214,9 +214,9 @@ static void _enet_io_init(void) Pull / Keep Select Field: Keeper Pull Up / Down Config. Field: 100K Ohm Pull Down Hyst. Enable Field: Hysteresis Disabled */ - IOMUXC_SetPinConfig( - IOMUXC_GPIO_B1_04_ENET_RX_DATA00, /* GPIO_B1_04 PAD functional properties : */ - 0xB0E9u); /* Slew Rate Field: Fast Slew Rate + IOMUXC_SetPinConfig( + IOMUXC_GPIO_B1_04_ENET_RX_DATA00, /* GPIO_B1_04 PAD functional properties : */ + 0xB0E9u); /* Slew Rate Field: Fast Slew Rate Drive Strength Field: R0/5 Speed Field: max(200MHz) Open Drain Enable Field: Open Drain Disabled @@ -224,9 +224,9 @@ static void _enet_io_init(void) Pull / Keep Select Field: Pull Pull Up / Down Config. Field: 100K Ohm Pull Up Hyst. Enable Field: Hysteresis Disabled */ - IOMUXC_SetPinConfig( - IOMUXC_GPIO_B1_05_ENET_RX_DATA01, /* GPIO_B1_05 PAD functional properties : */ - 0xB0E9u); /* Slew Rate Field: Fast Slew Rate + IOMUXC_SetPinConfig( + IOMUXC_GPIO_B1_05_ENET_RX_DATA01, /* GPIO_B1_05 PAD functional properties : */ + 0xB0E9u); /* Slew Rate Field: Fast Slew Rate Drive Strength Field: R0/5 Speed Field: max(200MHz) Open Drain Enable Field: Open Drain Disabled @@ -234,9 +234,9 @@ static void _enet_io_init(void) Pull / Keep Select Field: Pull Pull Up / Down Config. Field: 100K Ohm Pull Up Hyst. Enable Field: Hysteresis Disabled */ - IOMUXC_SetPinConfig( - IOMUXC_GPIO_B1_06_ENET_RX_EN, /* GPIO_B1_06 PAD functional properties : */ - 0xB0E9u); /* Slew Rate Field: Fast Slew Rate + IOMUXC_SetPinConfig( + IOMUXC_GPIO_B1_06_ENET_RX_EN, /* GPIO_B1_06 PAD functional properties : */ + 0xB0E9u); /* Slew Rate Field: Fast Slew Rate Drive Strength Field: R0/5 Speed Field: max(200MHz) Open Drain Enable Field: Open Drain Disabled @@ -244,9 +244,9 @@ static void _enet_io_init(void) Pull / Keep Select Field: Pull Pull Up / Down Config. Field: 100K Ohm Pull Up Hyst. Enable Field: Hysteresis Disabled */ - IOMUXC_SetPinConfig( - IOMUXC_GPIO_B1_07_ENET_TX_DATA00, /* GPIO_B1_07 PAD functional properties : */ - 0xB0E9u); /* Slew Rate Field: Fast Slew Rate + IOMUXC_SetPinConfig( + IOMUXC_GPIO_B1_07_ENET_TX_DATA00, /* GPIO_B1_07 PAD functional properties : */ + 0xB0E9u); /* Slew Rate Field: Fast Slew Rate Drive Strength Field: R0/5 Speed Field: max(200MHz) Open Drain Enable Field: Open Drain Disabled @@ -254,9 +254,9 @@ static void _enet_io_init(void) Pull / Keep Select Field: Pull Pull Up / Down Config. Field: 100K Ohm Pull Up Hyst. Enable Field: Hysteresis Disabled */ - IOMUXC_SetPinConfig( - IOMUXC_GPIO_B1_08_ENET_TX_DATA01, /* GPIO_B1_08 PAD functional properties : */ - 0xB0E9u); /* Slew Rate Field: Fast Slew Rate + IOMUXC_SetPinConfig( + IOMUXC_GPIO_B1_08_ENET_TX_DATA01, /* GPIO_B1_08 PAD functional properties : */ + 0xB0E9u); /* Slew Rate Field: Fast Slew Rate Drive Strength Field: R0/5 Speed Field: max(200MHz) Open Drain Enable Field: Open Drain Disabled @@ -264,9 +264,9 @@ static void _enet_io_init(void) Pull / Keep Select Field: Pull Pull Up / Down Config. Field: 100K Ohm Pull Up Hyst. Enable Field: Hysteresis Disabled */ - IOMUXC_SetPinConfig( - IOMUXC_GPIO_B1_09_ENET_TX_EN, /* GPIO_B1_09 PAD functional properties : */ - 0xB0E9u); /* Slew Rate Field: Fast Slew Rate + IOMUXC_SetPinConfig( + IOMUXC_GPIO_B1_09_ENET_TX_EN, /* GPIO_B1_09 PAD functional properties : */ + 0xB0E9u); /* Slew Rate Field: Fast Slew Rate Drive Strength Field: R0/5 Speed Field: max(200MHz) Open Drain Enable Field: Open Drain Disabled @@ -274,9 +274,9 @@ static void _enet_io_init(void) Pull / Keep Select Field: Pull Pull Up / Down Config. Field: 100K Ohm Pull Up Hyst. Enable Field: Hysteresis Disabled */ - IOMUXC_SetPinConfig( - IOMUXC_GPIO_B1_10_ENET_REF_CLK, /* GPIO_B1_10 PAD functional properties : */ - 0x31u); /* Slew Rate Field: Fast Slew Rate + IOMUXC_SetPinConfig( + IOMUXC_GPIO_B1_10_ENET_REF_CLK, /* GPIO_B1_10 PAD functional properties : */ + 0x31u); /* Slew Rate Field: Fast Slew Rate Drive Strength Field: R0/6 Speed Field: low(50MHz) Open Drain Enable Field: Open Drain Disabled @@ -284,9 +284,9 @@ static void _enet_io_init(void) Pull / Keep Select Field: Keeper Pull Up / Down Config. Field: 100K Ohm Pull Down Hyst. Enable Field: Hysteresis Disabled */ - IOMUXC_SetPinConfig( - IOMUXC_GPIO_B1_11_ENET_RX_ER, /* GPIO_B1_11 PAD functional properties : */ - 0xB0E9u); /* Slew Rate Field: Fast Slew Rate + IOMUXC_SetPinConfig( + IOMUXC_GPIO_B1_11_ENET_RX_ER, /* GPIO_B1_11 PAD functional properties : */ + 0xB0E9u); /* Slew Rate Field: Fast Slew Rate Drive Strength Field: R0/5 Speed Field: max(200MHz) Open Drain Enable Field: Open Drain Disabled @@ -294,9 +294,9 @@ static void _enet_io_init(void) Pull / Keep Select Field: Pull Pull Up / Down Config. Field: 100K Ohm Pull Up Hyst. Enable Field: Hysteresis Disabled */ - IOMUXC_SetPinConfig( - IOMUXC_GPIO_EMC_40_ENET_MDC, /* GPIO_EMC_40 PAD functional properties : */ - 0xB0E9u); /* Slew Rate Field: Fast Slew Rate + IOMUXC_SetPinConfig( + IOMUXC_GPIO_EMC_40_ENET_MDC, /* GPIO_EMC_40 PAD functional properties : */ + 0xB0E9u); /* Slew Rate Field: Fast Slew Rate Drive Strength Field: R0/5 Speed Field: max(200MHz) Open Drain Enable Field: Open Drain Disabled @@ -304,9 +304,9 @@ static void _enet_io_init(void) Pull / Keep Select Field: Pull Pull Up / Down Config. Field: 100K Ohm Pull Up Hyst. Enable Field: Hysteresis Disabled */ - IOMUXC_SetPinConfig( - IOMUXC_GPIO_EMC_41_ENET_MDIO, /* GPIO_EMC_41 PAD functional properties : */ - 0xB829u); /* Slew Rate Field: Fast Slew Rate + IOMUXC_SetPinConfig( + IOMUXC_GPIO_EMC_41_ENET_MDIO, /* GPIO_EMC_41 PAD functional properties : */ + 0xB829u); /* Slew Rate Field: Fast Slew Rate Drive Strength Field: R0/5 Speed Field: low(50MHz) Open Drain Enable Field: Open Drain Enabled @@ -314,8 +314,6 @@ static void _enet_io_init(void) Pull / Keep Select Field: Pull Pull Up / Down Config. Field: 100K Ohm Pull Up Hyst. Enable Field: Hysteresis Disabled */ - - } static void _enet_clk_init(void) @@ -353,7 +351,8 @@ static void _enet_config(void) uint32_t sysClock; /* prepare the buffer configuration. */ - enet_buffer_config_t buffConfig = { + enet_buffer_config_t buffConfig = + { ENET_RXBD_NUM, ENET_TXBD_NUM, SDK_SIZEALIGN(ENET_RXBUFF_SIZE, ENET_BUFF_ALIGNMENT), @@ -390,6 +389,43 @@ static void _enet_config(void) ENET_ActiveRead(imxrt_eth_device.enet_base); } +#if defined(ETH_RX_DUMP) || defined(ETH_TX_DUMP) +static void packet_dump(const char *msg, const struct pbuf *p) +{ + const struct pbuf *q; + rt_uint32_t i, j; + rt_uint8_t *ptr; + + rt_kprintf("%s %d byte\n", msg, p->tot_len); + + i = 0; + for (q = p; q != RT_NULL; q = q->next) + { + ptr = q->payload; + + for (j = 0; j < q->len; j++) + { + if ((i % 8) == 0) + { + rt_kprintf(" "); + } + if ((i % 16) == 0) + { + rt_kprintf("\r\n"); + } + rt_kprintf("%02x ", *ptr); + + i++; + ptr++; + } + } + + rt_kprintf("\n\n"); +} +#else +#define packet_dump(...) +#endif /* dump */ + /* initialize the interface */ static rt_err_t rt_imxrt_eth_init(rt_device_t dev) { @@ -402,127 +438,112 @@ static rt_err_t rt_imxrt_eth_init(rt_device_t dev) static rt_err_t rt_imxrt_eth_open(rt_device_t dev, rt_uint16_t oflag) { dbg_log(DBG_LOG, "rt_imxrt_eth_open...\n"); - return RT_EOK; + return RT_EOK; } static rt_err_t rt_imxrt_eth_close(rt_device_t dev) { dbg_log(DBG_LOG, "rt_imxrt_eth_close...\n"); - return RT_EOK; + return RT_EOK; } -static rt_size_t rt_imxrt_eth_read(rt_device_t dev, rt_off_t pos, void* buffer, rt_size_t size) +static rt_size_t rt_imxrt_eth_read(rt_device_t dev, rt_off_t pos, void *buffer, rt_size_t size) { dbg_log(DBG_LOG, "rt_imxrt_eth_read...\n"); - rt_set_errno(-RT_ENOSYS); - return 0; + rt_set_errno(-RT_ENOSYS); + return 0; } -static rt_size_t rt_imxrt_eth_write (rt_device_t dev, rt_off_t pos, const void* buffer, rt_size_t size) +static rt_size_t rt_imxrt_eth_write(rt_device_t dev, rt_off_t pos, const void *buffer, rt_size_t size) { dbg_log(DBG_LOG, "rt_imxrt_eth_write...\n"); - rt_set_errno(-RT_ENOSYS); - return 0; + rt_set_errno(-RT_ENOSYS); + return 0; } static rt_err_t rt_imxrt_eth_control(rt_device_t dev, int cmd, void *args) { dbg_log(DBG_LOG, "rt_imxrt_eth_control...\n"); - switch(cmd) - { - case NIOCTL_GADDR: - /* get mac address */ - if(args) rt_memcpy(args, imxrt_eth_device.dev_addr, 6); - else return -RT_ERROR; - break; + switch (cmd) + { + case NIOCTL_GADDR: + /* get mac address */ + if (args) rt_memcpy(args, imxrt_eth_device.dev_addr, 6); + else return -RT_ERROR; + break; - default : - break; - } + default : + break; + } - return RT_EOK; + return RT_EOK; } /* ethernet device interface */ /* transmit packet. */ -rt_err_t rt_imxrt_eth_tx( rt_device_t dev, struct pbuf* p) +rt_err_t rt_imxrt_eth_tx(rt_device_t dev, struct pbuf *p) { rt_err_t result = RT_EOK; enet_handle_t * enet_handle = &imxrt_eth_device.enet_handle; - RT_ASSERT(p != NULL); + RT_ASSERT(p != NULL); RT_ASSERT(enet_handle != RT_NULL); - dbg_log(DBG_LOG, "rt_imxrt_eth_tx: %d\n", p->len); + dbg_log(DBG_LOG, "rt_imxrt_eth_tx: %d\n", p->len); #ifdef ETH_TX_DUMP - { - int i; - uint8_t * buf; - buf = (uint8_t *)p->payload; - for (i = 0; i < p->len; i++) - { - dbg_log(DBG_LOG, "%02X ", buf[i]); - if (i % 16 == 15) - dbg_log(DBG_LOG, "\n"); - } - dbg_log(DBG_LOG, "\n"); - } + packet_dump("send", p); #endif - do - { - result = ENET_SendFrame(imxrt_eth_device.enet_base, enet_handle, p->payload, p->len); + do + { + result = ENET_SendFrame(imxrt_eth_device.enet_base, enet_handle, (const uint8_t *)p, p->tot_len); - if (result == kStatus_ENET_TxFrameBusy) - { - rt_sem_take(&imxrt_eth_device.tx_wait, RT_WAITING_FOREVER); - } + if (result == kStatus_ENET_TxFrameBusy) + { + imxrt_eth_device.tx_is_waiting = RT_TRUE; + rt_sem_take(&imxrt_eth_device.tx_wait, RT_WAITING_FOREVER); + } - } while (result == kStatus_ENET_TxFrameBusy); + } + while (result == kStatus_ENET_TxFrameBusy); - return RT_EOK; + return RT_EOK; +} + +void pbuf2mem(const uint8_t *data, void *dataptr, uint32_t len) +{ + pbuf_copy_partial((const struct pbuf *)data, dataptr, len, 0); } /* reception packet. */ struct pbuf *rt_imxrt_eth_rx(rt_device_t dev) { - uint32_t length = 0; - status_t status; + uint32_t length = 0; + status_t status; - struct pbuf* p = RT_NULL; - enet_handle_t * enet_handle = &imxrt_eth_device.enet_handle; + struct pbuf *p = RT_NULL; + enet_handle_t *enet_handle = &imxrt_eth_device.enet_handle; ENET_Type *enet_base = imxrt_eth_device.enet_base; enet_data_error_stats_t *error_statistic = &imxrt_eth_device.error_statistic; - /* Get the Frame size */ - status = ENET_GetRxFrameSize(enet_handle, &length); + /* Get the Frame size */ + status = ENET_GetRxFrameSize(enet_handle, &length); - /* Call ENET_ReadFrame when there is a received frame. */ - if (length != 0) - { - /* Received valid frame. Deliver the rx buffer with the size equal to length. */ - p = pbuf_alloc(PBUF_RAW, length, PBUF_POOL); + /* Call ENET_ReadFrame when there is a received frame. */ + if (length != 0) + { + /* Received valid frame. Deliver the rx buffer with the size equal to length. */ + p = pbuf_alloc(PBUF_RAW, length, PBUF_POOL); if (p != NULL) { status = ENET_ReadFrame(enet_base, enet_handle, p->payload, length); if (status == kStatus_Success) { - #ifdef ETH_RX_DUMP - uint8_t *buf; - int i; - - ETH_PRINTF("A frame received. the length:%d\n", p->len); - buf = (uint8_t *)p->payload; - for (i = 0; i < p->len; i++) - { - dbg_log(DBG_LOG, "%02X ", buf[i]); - if (i % 16 == 15) - dbg_log(DBG_LOG, "\n"); - } - dbg_log(DBG_LOG, "\n"); - #endif +#ifdef ETH_RX_DUMP + packet_dump("recv", p); +#endif return p; } else @@ -535,16 +556,16 @@ struct pbuf *rt_imxrt_eth_rx(rt_device_t dev) { dbg_log(DBG_LOG, " pbuf_alloc faild\n"); } - } - else if (status == kStatus_ENET_RxFrameError) - { - dbg_log(DBG_WARNING, "ENET_GetRxFrameSize: kStatus_ENET_RxFrameError\n"); - /* Update the received buffer when error happened. */ - /* Get the error information of the received g_frame. */ - ENET_GetRxErrBeforeReadFrame(enet_handle, error_statistic); - /* update the receive buffer. */ - ENET_ReadFrame(enet_base, enet_handle, NULL, 0); - } + } + else if (status == kStatus_ENET_RxFrameError) + { + dbg_log(DBG_WARNING, "ENET_GetRxFrameSize: kStatus_ENET_RxFrameError\n"); + /* Update the received buffer when error happened. */ + /* Get the error information of the received g_frame. */ + ENET_GetRxErrBeforeReadFrame(enet_handle, error_statistic); + /* update the receive buffer. */ + ENET_ReadFrame(enet_base, enet_handle, NULL, 0); + } ENET_EnableInterrupts(enet_base, kENET_RxFrameInterrupt); return NULL; @@ -552,29 +573,28 @@ struct pbuf *rt_imxrt_eth_rx(rt_device_t dev) static void phy_monitor_thread_entry(void *parameter) { - phy_speed_t speed; phy_duplex_t duplex; bool link = false; - + _enet_phy_reset_by_gpio(); PHY_Init(imxrt_eth_device.enet_base, PHY_ADDRESS, CLOCK_GetFreq(kCLOCK_AhbClk)); - + while (1) { bool new_link = false; status_t status = PHY_GetLinkStatus(imxrt_eth_device.enet_base, PHY_ADDRESS, &new_link); - + if ((status == kStatus_Success) && (link != new_link)) { link = new_link; - + if (link) // link up { - PHY_GetLinkSpeedDuplex(imxrt_eth_device.enet_base, + PHY_GetLinkSpeedDuplex(imxrt_eth_device.enet_base, PHY_ADDRESS, &speed, &duplex); - + if (kPHY_Speed10M == speed) { dbg_log(DBG_LOG, "10M\n"); @@ -583,7 +603,7 @@ static void phy_monitor_thread_entry(void *parameter) { dbg_log(DBG_LOG, "100M\n"); } - + if (kPHY_HalfDuplex == duplex) { dbg_log(DBG_LOG, "half dumplex\n"); @@ -592,13 +612,13 @@ static void phy_monitor_thread_entry(void *parameter) { dbg_log(DBG_LOG, "full dumplex\n"); } - - if ((imxrt_eth_device.speed != (enet_mii_speed_t)speed) - || (imxrt_eth_device.duplex != (enet_mii_duplex_t)duplex)) + + if ((imxrt_eth_device.speed != (enet_mii_speed_t)speed) + || (imxrt_eth_device.duplex != (enet_mii_duplex_t)duplex)) { - imxrt_eth_device.speed = (enet_mii_speed_t)speed; + imxrt_eth_device.speed = (enet_mii_speed_t)speed; imxrt_eth_device.duplex = (enet_mii_duplex_t)duplex; - + dbg_log(DBG_LOG, "link up, and update eth mode.\n"); rt_imxrt_eth_init((rt_device_t)&imxrt_eth_device); } @@ -615,7 +635,7 @@ static void phy_monitor_thread_entry(void *parameter) eth_device_linkchange(&imxrt_eth_device.parent, RT_FALSE); } } - + rt_thread_delay(RT_TICK_PER_SECOND * 2); } } @@ -626,17 +646,17 @@ static int rt_hw_imxrt_eth_init(void) _enet_io_init(); _enet_clk_init(); - + /* OUI 00-80-E1 STMICROELECTRONICS. */ imxrt_eth_device.dev_addr[0] = 0x00; - imxrt_eth_device.dev_addr[1] = 0x80; - imxrt_eth_device.dev_addr[2] = 0xE1; + imxrt_eth_device.dev_addr[1] = 0x04; + imxrt_eth_device.dev_addr[2] = 0x9F; /* generate MAC addr from 96bit unique ID (only for test). */ - imxrt_eth_device.dev_addr[3] = 0x12; - imxrt_eth_device.dev_addr[4] = 0x34; - imxrt_eth_device.dev_addr[5] = 0x56; - - imxrt_eth_device.speed = kENET_MiiSpeed100M; + imxrt_eth_device.dev_addr[3] = 0x05; + imxrt_eth_device.dev_addr[4] = 0x44; + imxrt_eth_device.dev_addr[5] = 0xE5; + + imxrt_eth_device.speed = kENET_MiiSpeed100M; imxrt_eth_device.duplex = kENET_MiiFullDuplex; imxrt_eth_device.enet_base = ENET; @@ -667,9 +687,9 @@ static int rt_hw_imxrt_eth_init(void) { dbg_log(DBG_LOG, "eth_device_init faild: %d\r\n", state); } - + eth_device_linkchange(&imxrt_eth_device.parent, RT_FALSE); - + /* start phy monitor */ { rt_thread_t tid; @@ -682,7 +702,7 @@ static int rt_hw_imxrt_eth_init(void) if (tid != RT_NULL) rt_thread_startup(tid); } - + return state; } INIT_DEVICE_EXPORT(rt_hw_imxrt_eth_init); @@ -756,102 +776,102 @@ void enet_reg_dump(void) #define DUMP_REG(__REG) \ rt_kprintf("%s(%08X): %08X\n", #__REG, (uint32_t)&enet_base->__REG, enet_base->__REG) - DUMP_REG(EIR); - DUMP_REG(EIMR); - DUMP_REG(RDAR); - DUMP_REG(TDAR); - DUMP_REG(ECR); - DUMP_REG(MMFR); - DUMP_REG(MSCR); - DUMP_REG(MIBC); - DUMP_REG(RCR); - DUMP_REG(TCR); - DUMP_REG(PALR); - DUMP_REG(PAUR); - DUMP_REG(OPD); - DUMP_REG(TXIC); - DUMP_REG(RXIC); - DUMP_REG(IAUR); - DUMP_REG(IALR); - DUMP_REG(GAUR); - DUMP_REG(GALR); - DUMP_REG(TFWR); - DUMP_REG(RDSR); - DUMP_REG(TDSR); - DUMP_REG(MRBR); - DUMP_REG(RSFL); - DUMP_REG(RSEM); - DUMP_REG(RAEM); - DUMP_REG(RAFL); - DUMP_REG(TSEM); - DUMP_REG(TAEM); - DUMP_REG(TAFL); - DUMP_REG(TIPG); - DUMP_REG(FTRL); - DUMP_REG(TACC); - DUMP_REG(RACC); - DUMP_REG(RMON_T_DROP); - DUMP_REG(RMON_T_PACKETS); - DUMP_REG(RMON_T_BC_PKT); - DUMP_REG(RMON_T_MC_PKT); - DUMP_REG(RMON_T_CRC_ALIGN); - DUMP_REG(RMON_T_UNDERSIZE); - DUMP_REG(RMON_T_OVERSIZE); - DUMP_REG(RMON_T_FRAG); - DUMP_REG(RMON_T_JAB); - DUMP_REG(RMON_T_COL); - DUMP_REG(RMON_T_P64); - DUMP_REG(RMON_T_P65TO127); - DUMP_REG(RMON_T_P128TO255); - DUMP_REG(RMON_T_P256TO511); - DUMP_REG(RMON_T_P512TO1023); - DUMP_REG(RMON_T_P1024TO2047); - DUMP_REG(RMON_T_P_GTE2048); - DUMP_REG(RMON_T_OCTETS); - DUMP_REG(IEEE_T_DROP); - DUMP_REG(IEEE_T_FRAME_OK); - DUMP_REG(IEEE_T_1COL); - DUMP_REG(IEEE_T_MCOL); - DUMP_REG(IEEE_T_DEF); - DUMP_REG(IEEE_T_LCOL); - DUMP_REG(IEEE_T_EXCOL); - DUMP_REG(IEEE_T_MACERR); - DUMP_REG(IEEE_T_CSERR); - DUMP_REG(IEEE_T_SQE); - DUMP_REG(IEEE_T_FDXFC); - DUMP_REG(IEEE_T_OCTETS_OK); - DUMP_REG(RMON_R_PACKETS); - DUMP_REG(RMON_R_BC_PKT); - DUMP_REG(RMON_R_MC_PKT); - DUMP_REG(RMON_R_CRC_ALIGN); - DUMP_REG(RMON_R_UNDERSIZE); - DUMP_REG(RMON_R_OVERSIZE); - DUMP_REG(RMON_R_FRAG); - DUMP_REG(RMON_R_JAB); - DUMP_REG(RMON_R_RESVD_0); - DUMP_REG(RMON_R_P64); - DUMP_REG(RMON_R_P65TO127); - DUMP_REG(RMON_R_P128TO255); - DUMP_REG(RMON_R_P256TO511); - DUMP_REG(RMON_R_P512TO1023); - DUMP_REG(RMON_R_P1024TO2047); - DUMP_REG(RMON_R_P_GTE2048); - DUMP_REG(RMON_R_OCTETS); - DUMP_REG(IEEE_R_DROP); - DUMP_REG(IEEE_R_FRAME_OK); - DUMP_REG(IEEE_R_CRC); - DUMP_REG(IEEE_R_ALIGN); - DUMP_REG(IEEE_R_MACERR); - DUMP_REG(IEEE_R_FDXFC); - DUMP_REG(IEEE_R_OCTETS_OK); - DUMP_REG(ATCR); - DUMP_REG(ATVR); - DUMP_REG(ATOFF); - DUMP_REG(ATPER); - DUMP_REG(ATCOR); - DUMP_REG(ATINC); - DUMP_REG(ATSTMP); - DUMP_REG(TGSR); + DUMP_REG(EIR); + DUMP_REG(EIMR); + DUMP_REG(RDAR); + DUMP_REG(TDAR); + DUMP_REG(ECR); + DUMP_REG(MMFR); + DUMP_REG(MSCR); + DUMP_REG(MIBC); + DUMP_REG(RCR); + DUMP_REG(TCR); + DUMP_REG(PALR); + DUMP_REG(PAUR); + DUMP_REG(OPD); + DUMP_REG(TXIC); + DUMP_REG(RXIC); + DUMP_REG(IAUR); + DUMP_REG(IALR); + DUMP_REG(GAUR); + DUMP_REG(GALR); + DUMP_REG(TFWR); + DUMP_REG(RDSR); + DUMP_REG(TDSR); + DUMP_REG(MRBR); + DUMP_REG(RSFL); + DUMP_REG(RSEM); + DUMP_REG(RAEM); + DUMP_REG(RAFL); + DUMP_REG(TSEM); + DUMP_REG(TAEM); + DUMP_REG(TAFL); + DUMP_REG(TIPG); + DUMP_REG(FTRL); + DUMP_REG(TACC); + DUMP_REG(RACC); + DUMP_REG(RMON_T_DROP); + DUMP_REG(RMON_T_PACKETS); + DUMP_REG(RMON_T_BC_PKT); + DUMP_REG(RMON_T_MC_PKT); + DUMP_REG(RMON_T_CRC_ALIGN); + DUMP_REG(RMON_T_UNDERSIZE); + DUMP_REG(RMON_T_OVERSIZE); + DUMP_REG(RMON_T_FRAG); + DUMP_REG(RMON_T_JAB); + DUMP_REG(RMON_T_COL); + DUMP_REG(RMON_T_P64); + DUMP_REG(RMON_T_P65TO127); + DUMP_REG(RMON_T_P128TO255); + DUMP_REG(RMON_T_P256TO511); + DUMP_REG(RMON_T_P512TO1023); + DUMP_REG(RMON_T_P1024TO2047); + DUMP_REG(RMON_T_P_GTE2048); + DUMP_REG(RMON_T_OCTETS); + DUMP_REG(IEEE_T_DROP); + DUMP_REG(IEEE_T_FRAME_OK); + DUMP_REG(IEEE_T_1COL); + DUMP_REG(IEEE_T_MCOL); + DUMP_REG(IEEE_T_DEF); + DUMP_REG(IEEE_T_LCOL); + DUMP_REG(IEEE_T_EXCOL); + DUMP_REG(IEEE_T_MACERR); + DUMP_REG(IEEE_T_CSERR); + DUMP_REG(IEEE_T_SQE); + DUMP_REG(IEEE_T_FDXFC); + DUMP_REG(IEEE_T_OCTETS_OK); + DUMP_REG(RMON_R_PACKETS); + DUMP_REG(RMON_R_BC_PKT); + DUMP_REG(RMON_R_MC_PKT); + DUMP_REG(RMON_R_CRC_ALIGN); + DUMP_REG(RMON_R_UNDERSIZE); + DUMP_REG(RMON_R_OVERSIZE); + DUMP_REG(RMON_R_FRAG); + DUMP_REG(RMON_R_JAB); + DUMP_REG(RMON_R_RESVD_0); + DUMP_REG(RMON_R_P64); + DUMP_REG(RMON_R_P65TO127); + DUMP_REG(RMON_R_P128TO255); + DUMP_REG(RMON_R_P256TO511); + DUMP_REG(RMON_R_P512TO1023); + DUMP_REG(RMON_R_P1024TO2047); + DUMP_REG(RMON_R_P_GTE2048); + DUMP_REG(RMON_R_OCTETS); + DUMP_REG(IEEE_R_DROP); + DUMP_REG(IEEE_R_FRAME_OK); + DUMP_REG(IEEE_R_CRC); + DUMP_REG(IEEE_R_ALIGN); + DUMP_REG(IEEE_R_MACERR); + DUMP_REG(IEEE_R_FDXFC); + DUMP_REG(IEEE_R_OCTETS_OK); + DUMP_REG(ATCR); + DUMP_REG(ATVR); + DUMP_REG(ATOFF); + DUMP_REG(ATPER); + DUMP_REG(ATCOR); + DUMP_REG(ATINC); + DUMP_REG(ATSTMP); + DUMP_REG(TGSR); } void enet_nvic_tog(void) @@ -891,24 +911,23 @@ void enet_rx_stat(void) void enet_buf_info(void) { - int i = 0; for (i = 0; i < ENET_RXBD_NUM; i++) { rt_kprintf("%d: length: %-8d, control: %04X, buffer:%p\n", - i, - g_rxBuffDescrip[i].length, - g_rxBuffDescrip[i].control, - g_rxBuffDescrip[i].buffer); + i, + g_rxBuffDescrip[i].length, + g_rxBuffDescrip[i].control, + g_rxBuffDescrip[i].buffer); } for (i = 0; i < ENET_TXBD_NUM; i++) { rt_kprintf("%d: length: %-8d, control: %04X, buffer:%p\n", - i, - g_txBuffDescrip[i].length, - g_txBuffDescrip[i].control, - g_txBuffDescrip[i].buffer); + i, + g_txBuffDescrip[i].length, + g_txBuffDescrip[i].control, + g_txBuffDescrip[i].buffer); } } diff --git a/components/drivers/rtc/rtc.c b/components/drivers/rtc/rtc.c index f64a528ef0..48da802627 100644 --- a/components/drivers/rtc/rtc.c +++ b/components/drivers/rtc/rtc.c @@ -247,7 +247,7 @@ FINSH_FUNCTION_EXPORT(list_date, show date and time.) FINSH_FUNCTION_EXPORT(set_date, set date. e.g: set_date(2010,2,28)) FINSH_FUNCTION_EXPORT(set_time, set time. e.g: set_time(23,59,59)) -#if defined(RT_USING_FINSH) +#if defined(RT_USING_FINSH) && defined(FINSH_USING_MSH) static void date(uint8_t argc, char **argv) { if (argc == 1) @@ -308,6 +308,6 @@ static void date(uint8_t argc, char **argv) } } MSH_CMD_EXPORT(date, get date and time or set [year month day hour min sec]); -#endif /* defined(RT_USING_FINSH) */ +#endif /* defined(RT_USING_FINSH) && defined(FINSH_USING_MSH) */ #endif /* RT_USING_FINSH */ diff --git a/components/drivers/src/pipe.c b/components/drivers/src/pipe.c index 61b8a5db6b..ee9c8ba02a 100644 --- a/components/drivers/src/pipe.c +++ b/components/drivers/src/pipe.c @@ -358,7 +358,7 @@ rt_err_t rt_pipe_close (rt_device_t device) rt_size_t rt_pipe_read (rt_device_t device, rt_off_t pos, void *buffer, rt_size_t count) { uint8_t *pbuf; - int read_bytes = 0; + rt_size_t read_bytes = 0; rt_pipe_t *pipe = (rt_pipe_t *)device; if (device == RT_NULL) @@ -386,7 +386,7 @@ rt_size_t rt_pipe_read (rt_device_t device, rt_off_t pos, void *buffer, rt_siz rt_size_t rt_pipe_write (rt_device_t device, rt_off_t pos, const void *buffer, rt_size_t count) { uint8_t *pbuf; - int write_bytes = 0; + rt_size_t write_bytes = 0; rt_pipe_t *pipe = (rt_pipe_t *)device; if (device == RT_NULL) diff --git a/components/finsh/msh.c b/components/finsh/msh.c index f308e70ace..b540698d9c 100644 --- a/components/finsh/msh.c +++ b/components/finsh/msh.c @@ -282,7 +282,7 @@ RTM_EXPORT(system); static int _msh_exec_cmd(char *cmd, rt_size_t length, int *retp) { int argc; - int cmd0_size = 0; + rt_size_t cmd0_size = 0; cmd_function_t cmd_func; char *argv[RT_FINSH_ARG_MAX]; @@ -448,7 +448,7 @@ void msh_auto_complete_path(char *path) } else { - int length, min_length; + rt_size_t length, min_length; min_length = 0; for (;;) diff --git a/src/mempool.c b/src/mempool.c index 3de2d5fd7f..5d80d66533 100644 --- a/src/mempool.c +++ b/src/mempool.c @@ -95,7 +95,7 @@ rt_err_t rt_mp_init(struct rt_mempool *mp, rt_size_t block_size) { rt_uint8_t *block_ptr; - register rt_base_t offset; + register rt_size_t offset; /* parameter check */ RT_ASSERT(mp != RT_NULL); @@ -200,7 +200,7 @@ rt_mp_t rt_mp_create(const char *name, { rt_uint8_t *block_ptr; struct rt_mempool *mp; - register rt_base_t offset; + register rt_size_t offset; RT_DEBUG_NOT_IN_INTERRUPT;