From b7d17f3df88ce9331f0527d254254b750cef8892 Mon Sep 17 00:00:00 2001
From: Meco Man <920369182@qq.com>
Date: Thu, 18 Nov 2021 11:26:54 -0500
Subject: [PATCH 1/3] [stm32l475] update lvgl driver
---
bsp/stm32/stm32l475-atk-pandora/board/ports/lcd/drv_lcd.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/bsp/stm32/stm32l475-atk-pandora/board/ports/lcd/drv_lcd.c b/bsp/stm32/stm32l475-atk-pandora/board/ports/lcd/drv_lcd.c
index b0aabd7bdd..d08b9754c7 100644
--- a/bsp/stm32/stm32l475-atk-pandora/board/ports/lcd/drv_lcd.c
+++ b/bsp/stm32/stm32l475-atk-pandora/board/ports/lcd/drv_lcd.c
@@ -438,7 +438,7 @@ void lcd_fill(rt_uint16_t x_start, rt_uint16_t y_start, rt_uint16_t x_end, rt_ui
*/
void lcd_fill_array(rt_uint16_t x_start, rt_uint16_t y_start, rt_uint16_t x_end, rt_uint16_t y_end, void *pcolor)
{
- rt_uint32_t size = 0, size_remain = 0;
+ rt_uint32_t size = 0;
size = (x_end - x_start + 1) * (y_end - y_start + 1) * 2;
lcd_address_set(x_start, y_start, x_end, y_end);
From 5f2f862ed9f315c63f4fee9a491f55fe40292adc Mon Sep 17 00:00:00 2001
From: Meco Man <920369182@qq.com>
Date: Thu, 18 Nov 2021 11:40:38 -0500
Subject: [PATCH 2/3] [stm32f469] update project
---
bsp/stm32/stm32f469-st-disco/.config | 43 +--
bsp/stm32/stm32f469-st-disco/project.ewp | 276 +++++------------
bsp/stm32/stm32f469-st-disco/project.uvprojx | 293 ++++++-------------
bsp/stm32/stm32f469-st-disco/rtconfig.h | 28 --
4 files changed, 161 insertions(+), 479 deletions(-)
diff --git a/bsp/stm32/stm32f469-st-disco/.config b/bsp/stm32/stm32f469-st-disco/.config
index e29ef04a16..135645a1bc 100644
--- a/bsp/stm32/stm32f469-st-disco/.config
+++ b/bsp/stm32/stm32f469-st-disco/.config
@@ -121,38 +121,7 @@ CONFIG_FINSH_ARG_MAX=10
#
# Device virtual file system
#
-CONFIG_RT_USING_DFS=y
-CONFIG_DFS_USING_WORKDIR=y
-CONFIG_DFS_FILESYSTEMS_MAX=2
-CONFIG_DFS_FILESYSTEM_TYPES_MAX=2
-CONFIG_DFS_FD_MAX=16
-# CONFIG_RT_USING_DFS_MNTTABLE is not set
-CONFIG_RT_USING_DFS_ELMFAT=y
-
-#
-# elm-chan's FatFs, Generic FAT Filesystem Module
-#
-CONFIG_RT_DFS_ELM_CODE_PAGE=437
-CONFIG_RT_DFS_ELM_WORD_ACCESS=y
-# CONFIG_RT_DFS_ELM_USE_LFN_0 is not set
-# CONFIG_RT_DFS_ELM_USE_LFN_1 is not set
-# CONFIG_RT_DFS_ELM_USE_LFN_2 is not set
-CONFIG_RT_DFS_ELM_USE_LFN_3=y
-CONFIG_RT_DFS_ELM_USE_LFN=3
-CONFIG_RT_DFS_ELM_LFN_UNICODE_0=y
-# CONFIG_RT_DFS_ELM_LFN_UNICODE_1 is not set
-# CONFIG_RT_DFS_ELM_LFN_UNICODE_2 is not set
-# CONFIG_RT_DFS_ELM_LFN_UNICODE_3 is not set
-CONFIG_RT_DFS_ELM_LFN_UNICODE=0
-CONFIG_RT_DFS_ELM_MAX_LFN=255
-CONFIG_RT_DFS_ELM_DRIVES=2
-CONFIG_RT_DFS_ELM_MAX_SECTOR_SIZE=512
-# CONFIG_RT_DFS_ELM_USE_ERASE is not set
-CONFIG_RT_DFS_ELM_REENTRANT=y
-CONFIG_RT_DFS_ELM_MUTEX_TIMEOUT=3000
-CONFIG_RT_USING_DFS_DEVFS=y
-# CONFIG_RT_USING_DFS_ROMFS is not set
-# CONFIG_RT_USING_DFS_RAMFS is not set
+# CONFIG_RT_USING_DFS is not set
#
# Device Drivers
@@ -174,17 +143,11 @@ CONFIG_RT_USING_PIN=y
# CONFIG_RT_USING_ADC is not set
# CONFIG_RT_USING_DAC is not set
# CONFIG_RT_USING_PWM is not set
-CONFIG_RT_USING_MTD_NOR=y
+# CONFIG_RT_USING_MTD_NOR is not set
# CONFIG_RT_USING_MTD_NAND is not set
# CONFIG_RT_USING_PM is not set
# CONFIG_RT_USING_RTC is not set
-CONFIG_RT_USING_SDIO=y
-CONFIG_RT_SDIO_STACK_SIZE=512
-CONFIG_RT_SDIO_THREAD_PRIORITY=15
-CONFIG_RT_MMCSD_STACK_SIZE=1024
-CONFIG_RT_MMCSD_THREAD_PREORITY=22
-CONFIG_RT_MMCSD_MAX_PARTITION=16
-# CONFIG_RT_SDIO_DEBUG is not set
+# CONFIG_RT_USING_SDIO is not set
# CONFIG_RT_USING_SPI is not set
# CONFIG_RT_USING_WDT is not set
# CONFIG_RT_USING_AUDIO is not set
diff --git a/bsp/stm32/stm32f469-st-disco/project.ewp b/bsp/stm32/stm32f469-st-disco/project.ewp
index 1a249d6915..3e484e8c68 100644
--- a/bsp/stm32/stm32f469-st-disco/project.ewp
+++ b/bsp/stm32/stm32f469-st-disco/project.ewp
@@ -215,9 +215,8 @@
CCDefines
- RT_USING_DLIBC
- _DLIB_FILE_DESCRIPTOR
STM32F469xx
+ __RTTHREAD__
USE_HAL_DRIVER
@@ -344,21 +343,19 @@
CCIncludePath2
- $PROJ_DIR$\..\..\..\components\dfs\filesystems\devfs
+ $PROJ_DIR$\..\..\..\components\libc\compilers\common\nogcc
$PROJ_DIR$\..\libraries\STM32F4xx_HAL\CMSIS\Include
$PROJ_DIR$\..\..\..\components\finsh
$PROJ_DIR$\..\..\..\libcpu\arm\common
$PROJ_DIR$\..\..\..\libcpu\arm\cortex-m4
- $PROJ_DIR$\..\..\..\components\dfs\include
$PROJ_DIR$\board\ports
$PROJ_DIR$\..\..\..\components\drivers\include
- $PROJ_DIR$\..\..\..\components\libc\compilers\common
+ $PROJ_DIR$\..\..\..\examples\utest\testcases\kernel
$PROJ_DIR$\.
$PROJ_DIR$\applications
$PROJ_DIR$\..\libraries\HAL_Drivers\config
- $PROJ_DIR$\..\..\..\components\libc\compilers\dlib
$PROJ_DIR$\board
- $PROJ_DIR$\..\..\..\components\dfs\filesystems\elmfat
+ $PROJ_DIR$\..\..\..\components\libc\compilers\common
$PROJ_DIR$\board\CubeMX_Config\Inc
$PROJ_DIR$\..\libraries\STM32F4xx_HAL\CMSIS\Device\ST\STM32F4xx\Include
$PROJ_DIR$\..\..\..\include
@@ -1252,9 +1249,8 @@
CCDefines
- RT_USING_DLIBC
- _DLIB_FILE_DESCRIPTOR
STM32F469xx
+ __RTTHREAD__
USE_HAL_DRIVER
@@ -1381,21 +1377,19 @@
CCIncludePath2
- $PROJ_DIR$\..\..\..\components\dfs\filesystems\devfs
+ $PROJ_DIR$\..\..\..\components\libc\compilers\common\nogcc
$PROJ_DIR$\..\libraries\STM32F4xx_HAL\CMSIS\Include
$PROJ_DIR$\..\..\..\components\finsh
$PROJ_DIR$\..\..\..\libcpu\arm\common
$PROJ_DIR$\..\..\..\libcpu\arm\cortex-m4
- $PROJ_DIR$\..\..\..\components\dfs\include
$PROJ_DIR$\board\ports
$PROJ_DIR$\..\..\..\components\drivers\include
- $PROJ_DIR$\..\..\..\components\libc\compilers\common
+ $PROJ_DIR$\..\..\..\examples\utest\testcases\kernel
$PROJ_DIR$\.
$PROJ_DIR$\applications
$PROJ_DIR$\..\libraries\HAL_Drivers\config
- $PROJ_DIR$\..\..\..\components\libc\compilers\dlib
$PROJ_DIR$\board
- $PROJ_DIR$\..\..\..\components\dfs\filesystems\elmfat
+ $PROJ_DIR$\..\..\..\components\libc\compilers\common
$PROJ_DIR$\board\CubeMX_Config\Inc
$PROJ_DIR$\..\libraries\STM32F4xx_HAL\CMSIS\Device\ST\STM32F4xx\Include
$PROJ_DIR$\..\..\..\include
@@ -2078,22 +2072,22 @@
Applications
- $PROJ_DIR$\applications\main.c
+ $PROJ_DIR$\applications\lcd_init.c
- $PROJ_DIR$\applications\lcd_init.c
+ $PROJ_DIR$\applications\main.c
- cpu
+ 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\showmem.c
+ $PROJ_DIR$\..\..\..\libcpu\arm\common\div0.c
$PROJ_DIR$\..\..\..\libcpu\arm\cortex-m4\cpuport.c
@@ -2107,92 +2101,38 @@
$PROJ_DIR$\..\..\..\components\drivers\misc\pin.c
-
- $PROJ_DIR$\..\..\..\components\drivers\mtd\mtd_nor.c
-
-
- $PROJ_DIR$\..\..\..\components\drivers\sdio\block_dev.c
-
-
- $PROJ_DIR$\..\..\..\components\drivers\sdio\mmcsd_core.c
-
-
- $PROJ_DIR$\..\..\..\components\drivers\sdio\sd.c
-
-
- $PROJ_DIR$\..\..\..\components\drivers\sdio\sdio.c
-
-
- $PROJ_DIR$\..\..\..\components\drivers\sdio\mmc.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\pipe.c
-
$PROJ_DIR$\..\..\..\components\drivers\src\ringblk_buf.c
- $PROJ_DIR$\..\..\..\components\drivers\src\ringbuffer.c
+ $PROJ_DIR$\..\..\..\components\drivers\src\completion.c
+
+
+ $PROJ_DIR$\..\..\..\components\drivers\src\pipe.c
$PROJ_DIR$\..\..\..\components\drivers\src\waitqueue.c
+
+ $PROJ_DIR$\..\..\..\components\drivers\src\ringbuffer.c
+
$PROJ_DIR$\..\..\..\components\drivers\src\workqueue.c
-
- dlib
-
- $PROJ_DIR$\..\..\..\components\libc\compilers\dlib\environ.c
-
-
- $PROJ_DIR$\..\..\..\components\libc\compilers\dlib\libc.c
-
-
- $PROJ_DIR$\..\..\..\components\libc\compilers\dlib\rmtx.c
-
-
- $PROJ_DIR$\..\..\..\components\libc\compilers\dlib\stdio.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_open.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_write.c
-
-
Drivers
- $PROJ_DIR$\board\board.c
+ $PROJ_DIR$\board\CubeMX_Config\Src\stm32f4xx_hal_msp.c
- $PROJ_DIR$\board\CubeMX_Config\Src\stm32f4xx_hal_msp.c
+ $PROJ_DIR$\board\board.c
$PROJ_DIR$\..\libraries\STM32F4xx_HAL\CMSIS\Device\ST\STM32F4xx\Source\Templates\iar\startup_stm32f469xx.s
@@ -2208,126 +2148,57 @@
- Filesystem
-
- $PROJ_DIR$\..\..\..\components\dfs\src\dfs.c
-
-
- $PROJ_DIR$\..\..\..\components\dfs\src\dfs_file.c
-
-
- $PROJ_DIR$\..\..\..\components\dfs\src\dfs_fs.c
-
-
- $PROJ_DIR$\..\..\..\components\dfs\src\dfs_posix.c
-
-
- $PROJ_DIR$\..\..\..\components\dfs\src\poll.c
-
-
- $PROJ_DIR$\..\..\..\components\dfs\src\select.c
-
-
- $PROJ_DIR$\..\..\..\components\dfs\filesystems\devfs\devfs.c
-
-
- $PROJ_DIR$\..\..\..\components\dfs\filesystems\elmfat\dfs_elm.c
-
-
- $PROJ_DIR$\..\..\..\components\dfs\filesystems\elmfat\ff.c
-
-
- $PROJ_DIR$\..\..\..\components\dfs\filesystems\elmfat\option\ccsbcs.c
-
-
-
- finsh
+ Finsh
$PROJ_DIR$\..\..\..\components\finsh\shell.c
-
- $PROJ_DIR$\..\..\..\components\finsh\cmd.c
-
$PROJ_DIR$\..\..\..\components\finsh\msh.c
- $PROJ_DIR$\..\..\..\components\finsh\msh_file.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
+ $PROJ_DIR$\..\..\..\components\finsh\cmd.c
Kernel
- $PROJ_DIR$\..\..\..\src\clock.c
-
-
- $PROJ_DIR$\..\..\..\src\components.c
+ $PROJ_DIR$\..\..\..\src\irq.c
$PROJ_DIR$\..\..\..\src\device.c
- $PROJ_DIR$\..\..\..\src\idle.c
+ $PROJ_DIR$\..\..\..\src\memheap.c
$PROJ_DIR$\..\..\..\src\ipc.c
- $PROJ_DIR$\..\..\..\src\irq.c
+ $PROJ_DIR$\..\..\..\src\clock.c
- $PROJ_DIR$\..\..\..\src\kservice.c
-
-
- $PROJ_DIR$\..\..\..\src\memheap.c
-
-
- $PROJ_DIR$\..\..\..\src\mempool.c
+ $PROJ_DIR$\..\..\..\src\idle.c
$PROJ_DIR$\..\..\..\src\object.c
- $PROJ_DIR$\..\..\..\src\scheduler.c
-
-
- $PROJ_DIR$\..\..\..\src\signal.c
+ $PROJ_DIR$\..\..\..\src\timer.c
$PROJ_DIR$\..\..\..\src\thread.c
- $PROJ_DIR$\..\..\..\src\timer.c
+ $PROJ_DIR$\..\..\..\src\mempool.c
+
+
+ $PROJ_DIR$\..\..\..\src\kservice.c
+
+
+ $PROJ_DIR$\..\..\..\src\scheduler.c
+
+
+ $PROJ_DIR$\..\..\..\src\components.c
@@ -2335,36 +2206,39 @@
$PROJ_DIR$\..\..\..\components\libc\compilers\common\time.c
-
- $PROJ_DIR$\..\..\..\components\libc\compilers\common\unistd.c
-
- STM32_HAL
+ Libraries
- $PROJ_DIR$\..\libraries\STM32F4xx_HAL\CMSIS\Device\ST\STM32F4xx\Source\Templates\system_stm32f4xx.c
-
-
- $PROJ_DIR$\..\libraries\STM32F4xx_HAL\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal.c
-
-
- $PROJ_DIR$\..\libraries\STM32F4xx_HAL\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_cec.c
-
-
- $PROJ_DIR$\..\libraries\STM32F4xx_HAL\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_cortex.c
-
-
- $PROJ_DIR$\..\libraries\STM32F4xx_HAL\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_crc.c
-
-
- $PROJ_DIR$\..\libraries\STM32F4xx_HAL\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_cryp.c
+ $PROJ_DIR$\..\libraries\STM32F4xx_HAL\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_uart.c
$PROJ_DIR$\..\libraries\STM32F4xx_HAL\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_cryp_ex.c
+
+ $PROJ_DIR$\..\libraries\STM32F4xx_HAL\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_pwr_ex.c
+
+
+ $PROJ_DIR$\..\libraries\STM32F4xx_HAL\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_rng.c
+
$PROJ_DIR$\..\libraries\STM32F4xx_HAL\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_dma.c
+
+ $PROJ_DIR$\..\libraries\STM32F4xx_HAL\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal.c
+
+
+ $PROJ_DIR$\..\libraries\STM32F4xx_HAL\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_rcc_ex.c
+
+
+ $PROJ_DIR$\..\libraries\STM32F4xx_HAL\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_usart.c
+
+
+ $PROJ_DIR$\..\libraries\STM32F4xx_HAL\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_cec.c
+
+
+ $PROJ_DIR$\..\libraries\STM32F4xx_HAL\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_rcc.c
+
$PROJ_DIR$\..\libraries\STM32F4xx_HAL\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_dma_ex.c
@@ -2372,34 +2246,22 @@
$PROJ_DIR$\..\libraries\STM32F4xx_HAL\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_pwr.c
- $PROJ_DIR$\..\libraries\STM32F4xx_HAL\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_pwr_ex.c
+ $PROJ_DIR$\..\libraries\STM32F4xx_HAL\CMSIS\Device\ST\STM32F4xx\Source\Templates\system_stm32f4xx.c
- $PROJ_DIR$\..\libraries\STM32F4xx_HAL\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_rcc.c
+ $PROJ_DIR$\..\libraries\STM32F4xx_HAL\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_crc.c
- $PROJ_DIR$\..\libraries\STM32F4xx_HAL\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_rcc_ex.c
+ $PROJ_DIR$\..\libraries\STM32F4xx_HAL\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_cortex.c
- $PROJ_DIR$\..\libraries\STM32F4xx_HAL\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_rng.c
+ $PROJ_DIR$\..\libraries\STM32F4xx_HAL\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_cryp.c
$PROJ_DIR$\..\libraries\STM32F4xx_HAL\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_gpio.c
-
- $PROJ_DIR$\..\libraries\STM32F4xx_HAL\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_uart.c
-
-
- $PROJ_DIR$\..\libraries\STM32F4xx_HAL\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_usart.c
-
-
- $PROJ_DIR$\..\libraries\STM32F4xx_HAL\STM32F4xx_HAL_Driver\Src\stm32f4xx_ll_sdmmc.c
-
-
- $PROJ_DIR$\..\libraries\STM32F4xx_HAL\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_sd.c
-
-
- $PROJ_DIR$\..\libraries\STM32F4xx_HAL\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_nor.c
-
+
+
+ utestcases
diff --git a/bsp/stm32/stm32f469-st-disco/project.uvprojx b/bsp/stm32/stm32f469-st-disco/project.uvprojx
index b3619ee515..19895be4be 100644
--- a/bsp/stm32/stm32f469-st-disco/project.uvprojx
+++ b/bsp/stm32/stm32f469-st-disco/project.uvprojx
@@ -335,7 +335,7 @@
USE_HAL_DRIVER, STM32F469xx, __RTTHREAD__, __CLK_TCK=RT_TICK_PER_SECOND
- applications;..\..\..\libcpu\arm\common;..\..\..\libcpu\arm\cortex-m4;..\..\..\components\drivers\include;..\..\..\components\drivers\include;..\..\..\components\drivers\include;..\..\..\components\drivers\include;..\..\..\components\drivers\include;board;board\CubeMX_Config\Inc;board\ports;..\libraries\HAL_Drivers;..\libraries\HAL_Drivers\config;..\..\..\components\dfs\include;..\..\..\components\dfs\filesystems\devfs;..\..\..\components\dfs\filesystems\elmfat;..\..\..\components\finsh;.;..\..\..\include;..\..\..\components\libc\compilers\common;..\..\..\components\libc\compilers\common\nogcc;..\libraries\STM32F4xx_HAL\STM32F4xx_HAL_Driver\Inc;..\libraries\STM32F4xx_HAL\CMSIS\Device\ST\STM32F4xx\Include;..\libraries\STM32F4xx_HAL\CMSIS\Include;..\..\..\examples\utest\testcases\kernel
+ applications;..\..\..\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\compilers\common;..\..\..\components\libc\compilers\common\nogcc;..\libraries\STM32F4xx_HAL\STM32F4xx_HAL_Driver\Inc;..\libraries\STM32F4xx_HAL\CMSIS\Device\ST\STM32F4xx\Include;..\libraries\STM32F4xx_HAL\CMSIS\Include;..\..\..\examples\utest\testcases\kernel
@@ -404,16 +404,16 @@
- div0.c
+ showmem.c
1
- ..\..\..\libcpu\arm\common\div0.c
+ ..\..\..\libcpu\arm\common\showmem.c
- showmem.c
+ div0.c
1
- ..\..\..\libcpu\arm\common\showmem.c
+ ..\..\..\libcpu\arm\common\div0.c
@@ -440,48 +440,6 @@
..\..\..\components\drivers\misc\pin.c
-
-
- mtd_nor.c
- 1
- ..\..\..\components\drivers\mtd\mtd_nor.c
-
-
-
-
- mmc.c
- 1
- ..\..\..\components\drivers\sdio\mmc.c
-
-
-
-
- sd.c
- 1
- ..\..\..\components\drivers\sdio\sd.c
-
-
-
-
- block_dev.c
- 1
- ..\..\..\components\drivers\sdio\block_dev.c
-
-
-
-
- sdio.c
- 1
- ..\..\..\components\drivers\sdio\sdio.c
-
-
-
-
- mmcsd_core.c
- 1
- ..\..\..\components\drivers\sdio\mmcsd_core.c
-
-
serial.c
@@ -489,6 +447,13 @@
..\..\..\components\drivers\serial\serial.c
+
+
+ waitqueue.c
+ 1
+ ..\..\..\components\drivers\src\waitqueue.c
+
+
pipe.c
@@ -503,6 +468,13 @@
..\..\..\components\drivers\src\workqueue.c
+
+
+ ringblk_buf.c
+ 1
+ ..\..\..\components\drivers\src\ringblk_buf.c
+
+
completion.c
@@ -524,20 +496,6 @@
..\..\..\components\drivers\src\dataqueue.c
-
-
- ringblk_buf.c
- 1
- ..\..\..\components\drivers\src\ringblk_buf.c
-
-
-
-
- waitqueue.c
- 1
- ..\..\..\components\drivers\src\waitqueue.c
-
-
Drivers
@@ -584,58 +542,6 @@
-
- Filesystem
-
-
- dfs_fs.c
- 1
- ..\..\..\components\dfs\src\dfs_fs.c
-
-
-
-
- dfs.c
- 1
- ..\..\..\components\dfs\src\dfs.c
-
-
-
-
- dfs_file.c
- 1
- ..\..\..\components\dfs\src\dfs_file.c
-
-
-
-
- devfs.c
- 1
- ..\..\..\components\dfs\filesystems\devfs\devfs.c
-
-
-
-
- ff.c
- 1
- ..\..\..\components\dfs\filesystems\elmfat\ff.c
-
-
-
-
- dfs_elm.c
- 1
- ..\..\..\components\dfs\filesystems\elmfat\dfs_elm.c
-
-
-
-
- ffunicode.c
- 1
- ..\..\..\components\dfs\filesystems\elmfat\ffunicode.c
-
-
-
Finsh
@@ -662,76 +568,6 @@
Kernel
-
-
- timer.c
- 1
- ..\..\..\src\timer.c
-
-
-
-
- mempool.c
- 1
- ..\..\..\src\mempool.c
-
-
-
-
- components.c
- 1
- ..\..\..\src\components.c
-
-
-
-
- scheduler.c
- 1
- ..\..\..\src\scheduler.c
-
-
-
-
- irq.c
- 1
- ..\..\..\src\irq.c
-
-
-
-
- memheap.c
- 1
- ..\..\..\src\memheap.c
-
-
-
-
- thread.c
- 1
- ..\..\..\src\thread.c
-
-
-
-
- idle.c
- 1
- ..\..\..\src\idle.c
-
-
-
-
- device.c
- 1
- ..\..\..\src\device.c
-
-
-
-
- clock.c
- 1
- ..\..\..\src\clock.c
-
-
object.c
@@ -746,6 +582,62 @@
..\..\..\src\kservice.c
+
+
+ clock.c
+ 1
+ ..\..\..\src\clock.c
+
+
+
+
+ memheap.c
+ 1
+ ..\..\..\src\memheap.c
+
+
+
+
+ mempool.c
+ 1
+ ..\..\..\src\mempool.c
+
+
+
+
+ timer.c
+ 1
+ ..\..\..\src\timer.c
+
+
+
+
+ scheduler.c
+ 1
+ ..\..\..\src\scheduler.c
+
+
+
+
+ thread.c
+ 1
+ ..\..\..\src\thread.c
+
+
+
+
+ components.c
+ 1
+ ..\..\..\src\components.c
+
+
+
+
+ device.c
+ 1
+ ..\..\..\src\device.c
+
+
ipc.c
@@ -753,6 +645,20 @@
..\..\..\src\ipc.c
+
+
+ irq.c
+ 1
+ ..\..\..\src\irq.c
+
+
+
+
+ idle.c
+ 1
+ ..\..\..\src\idle.c
+
+
libc
@@ -808,13 +714,6 @@
..\libraries\STM32F4xx_HAL\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal.c
-
-
- stm32f4xx_hal_sd.c
- 1
- ..\libraries\STM32F4xx_HAL\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_sd.c
-
-
stm32f4xx_hal_rcc_ex.c
@@ -843,13 +742,6 @@
..\libraries\STM32F4xx_HAL\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_rcc.c
-
-
- stm32f4xx_ll_sdmmc.c
- 1
- ..\libraries\STM32F4xx_HAL\STM32F4xx_HAL_Driver\Src\stm32f4xx_ll_sdmmc.c
-
-
stm32f4xx_hal_dma_ex.c
@@ -885,13 +777,6 @@
..\libraries\STM32F4xx_HAL\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_cortex.c
-
-
- stm32f4xx_hal_nor.c
- 1
- ..\libraries\STM32F4xx_HAL\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_nor.c
-
-
stm32f4xx_hal_cryp.c
diff --git a/bsp/stm32/stm32f469-st-disco/rtconfig.h b/bsp/stm32/stm32f469-st-disco/rtconfig.h
index 82fa61a18f..a008d32aec 100644
--- a/bsp/stm32/stm32f469-st-disco/rtconfig.h
+++ b/bsp/stm32/stm32f469-st-disco/rtconfig.h
@@ -81,27 +81,6 @@
/* Device virtual file system */
-#define RT_USING_DFS
-#define DFS_USING_WORKDIR
-#define DFS_FILESYSTEMS_MAX 2
-#define DFS_FILESYSTEM_TYPES_MAX 2
-#define DFS_FD_MAX 16
-#define RT_USING_DFS_ELMFAT
-
-/* elm-chan's FatFs, Generic FAT Filesystem Module */
-
-#define RT_DFS_ELM_CODE_PAGE 437
-#define RT_DFS_ELM_WORD_ACCESS
-#define RT_DFS_ELM_USE_LFN_3
-#define RT_DFS_ELM_USE_LFN 3
-#define RT_DFS_ELM_LFN_UNICODE_0
-#define RT_DFS_ELM_LFN_UNICODE 0
-#define RT_DFS_ELM_MAX_LFN 255
-#define RT_DFS_ELM_DRIVES 2
-#define RT_DFS_ELM_MAX_SECTOR_SIZE 512
-#define RT_DFS_ELM_REENTRANT
-#define RT_DFS_ELM_MUTEX_TIMEOUT 3000
-#define RT_USING_DFS_DEVFS
/* Device Drivers */
@@ -112,13 +91,6 @@
#define RT_SERIAL_USING_DMA
#define RT_SERIAL_RB_BUFSZ 64
#define RT_USING_PIN
-#define RT_USING_MTD_NOR
-#define RT_USING_SDIO
-#define RT_SDIO_STACK_SIZE 512
-#define RT_SDIO_THREAD_PRIORITY 15
-#define RT_MMCSD_STACK_SIZE 1024
-#define RT_MMCSD_THREAD_PREORITY 22
-#define RT_MMCSD_MAX_PARTITION 16
/* Using USB */
From 364109708c50f1832f3da95a2d5bceeb84e99e1e Mon Sep 17 00:00:00 2001
From: Meco Man <920369182@qq.com>
Date: Sun, 21 Nov 2021 15:24:09 -0500
Subject: [PATCH 3/3] [stm32l475] update lcd driver
---
.../board/ports/lcd/SConscript | 6 +++---
.../board/ports/lcd/drv_lcd.c | 16 +++++++++++++++-
.../board/ports/lcd/drv_lcd.h | 18 +++++++-----------
.../board/ports/lcd/lcd_qrcode.c | 2 +-
.../board/ports/lcd/lcd_qrcode.h | 2 +-
5 files changed, 27 insertions(+), 17 deletions(-)
diff --git a/bsp/stm32/stm32l475-atk-pandora/board/ports/lcd/SConscript b/bsp/stm32/stm32l475-atk-pandora/board/ports/lcd/SConscript
index 61fd579405..bf4c2fb282 100644
--- a/bsp/stm32/stm32l475-atk-pandora/board/ports/lcd/SConscript
+++ b/bsp/stm32/stm32l475-atk-pandora/board/ports/lcd/SConscript
@@ -2,14 +2,14 @@ from building import *
import os
cwd = GetCurrentDir()
-src = Glob('*.c')
+src = ['drv_lcd.c']
CPPPATH = [cwd]
if GetDepend(['BSP_USING_LCD_QRCODE']):
- src = src + Glob('lcd_qrcode.c')
+ src = src + ['lcd_qrcode.c']
if GetDepend(['BSP_USING_LCD_SAMPLE']):
- src = src + Glob('demo/lcd_sample.c')
+ src = src + ['demo/lcd_sample.c']
group = DefineGroup('Drivers', src, depend = ['BSP_USING_SPI_LCD'], CPPPATH = CPPPATH)
diff --git a/bsp/stm32/stm32l475-atk-pandora/board/ports/lcd/drv_lcd.c b/bsp/stm32/stm32l475-atk-pandora/board/ports/lcd/drv_lcd.c
index d08b9754c7..8df8a79a36 100644
--- a/bsp/stm32/stm32l475-atk-pandora/board/ports/lcd/drv_lcd.c
+++ b/bsp/stm32/stm32l475-atk-pandora/board/ports/lcd/drv_lcd.c
@@ -16,7 +16,9 @@
#include
#include
#include "drv_lcd.h"
+#ifndef BSP_USING_LVGL
#include "drv_lcd_font.h"
+#endif /* BSP_USING_LVGL */
#define DBG_TAG "drv.lcd"
#define DBG_LVL DBG_INFO
@@ -25,9 +27,11 @@
#define LCD_PWR_PIN GET_PIN(B, 7)
#define LCD_DC_PIN GET_PIN(B, 4)
#define LCD_RES_PIN GET_PIN(B, 6)
-#define LCD_CLEAR_SEND_NUMBER 5760 /* 240*240/10 */
+#ifndef BSP_USING_LVGL
+#define LCD_CLEAR_SEND_NUMBER 5760 /* 240*240/10 */
rt_uint16_t BACK_COLOR = WHITE, FORE_COLOR = BLACK;
+#endif /* BSP_USING_LVGL */
static struct rt_spi_device *spi_dev_lcd;
@@ -86,6 +90,7 @@ static rt_err_t lcd_write_data(const rt_uint8_t data)
}
}
+#ifndef BSP_USING_LVGL
static rt_err_t lcd_write_half_word(const rt_uint16_t da)
{
rt_size_t len;
@@ -106,6 +111,7 @@ static rt_err_t lcd_write_half_word(const rt_uint16_t da)
return RT_EOK;
}
}
+#endif /* BSP_USING_LVGL */
static void lcd_gpio_init(void)
{
@@ -214,6 +220,7 @@ static int rt_hw_lcd_init(void)
}
INIT_DEVICE_EXPORT(rt_hw_lcd_init);
+#ifndef BSP_USING_LVGL
/**
* Set background color and foreground color
*
@@ -227,6 +234,7 @@ void lcd_set_color(rt_uint16_t back, rt_uint16_t fore)
BACK_COLOR = back;
FORE_COLOR = fore;
}
+#endif /* BSP_USING_LVGL */
void lcd_display_on(void)
{
@@ -281,6 +289,7 @@ void lcd_address_set(rt_uint16_t x1, rt_uint16_t y1, rt_uint16_t x2, rt_uint16_t
lcd_write_cmd(0x2C);
}
+#ifndef BSP_USING_LVGL
/**
* clear the lcd.
*
@@ -424,6 +433,8 @@ void lcd_fill(rt_uint16_t x_start, rt_uint16_t y_start, rt_uint16_t x_end, rt_ui
}
}
}
+#endif /* BSP_USING_LVGL */
+
/**
* full color array on the lcd.
@@ -446,6 +457,7 @@ void lcd_fill_array(rt_uint16_t x_start, rt_uint16_t y_start, rt_uint16_t x_end,
rt_spi_send(spi_dev_lcd, pcolor, size);
}
+#ifndef BSP_USING_LVGL
/**
* display a line on the lcd.
*
@@ -856,3 +868,5 @@ rt_err_t lcd_show_image(rt_uint16_t x, rt_uint16_t y, rt_uint16_t length, rt_uin
return RT_EOK;
}
+
+#endif /* BSP_USING_LVGL */
diff --git a/bsp/stm32/stm32l475-atk-pandora/board/ports/lcd/drv_lcd.h b/bsp/stm32/stm32l475-atk-pandora/board/ports/lcd/drv_lcd.h
index 225c3f42cb..af76319e87 100644
--- a/bsp/stm32/stm32l475-atk-pandora/board/ports/lcd/drv_lcd.h
+++ b/bsp/stm32/stm32l475-atk-pandora/board/ports/lcd/drv_lcd.h
@@ -5,8 +5,8 @@
*
* Change Logs:
* Date Author Notes
- * 2018-08-14 flybreak the first version
- * 2018-09-18 balanceTWK add sleep mode function
+ * 2018-08-14 flybreak the first version
+ * 2018-09-18 balanceTWK add sleep mode function
*/
#ifndef __DRV_LCD_H__
@@ -14,14 +14,10 @@
#include
-#ifdef PKG_USING_QRCODE
-#include
-#endif
-
#define LCD_W 240
#define LCD_H 240
-//POINT_COLOR
+#ifndef BSP_USING_LVGL
#define WHITE 0xFFFF
#define BLACK 0x0000
#define BLUE 0x001F
@@ -42,25 +38,25 @@
#define GRAY240 0XF79E
extern rt_uint16_t BACK_COLOR, FORE_COLOR;
-
void lcd_clear(rt_uint16_t color);
-void lcd_address_set(rt_uint16_t x1, rt_uint16_t y1, rt_uint16_t x2, rt_uint16_t y2);
void lcd_set_color(rt_uint16_t back, rt_uint16_t fore);
-
void lcd_draw_point(rt_uint16_t x, rt_uint16_t y);
void lcd_draw_point_color(rt_uint16_t x, rt_uint16_t y, rt_uint16_t color);
void lcd_draw_circle(rt_uint16_t x0, rt_uint16_t y0, rt_uint8_t r);
void lcd_draw_line(rt_uint16_t x1, rt_uint16_t y1, rt_uint16_t x2, rt_uint16_t y2);
void lcd_draw_rectangle(rt_uint16_t x1, rt_uint16_t y1, rt_uint16_t x2, rt_uint16_t y2);
void lcd_fill(rt_uint16_t x_start, rt_uint16_t y_start, rt_uint16_t x_end, rt_uint16_t y_end, rt_uint16_t color);
-void lcd_fill_array(rt_uint16_t x_start, rt_uint16_t y_start, rt_uint16_t x_end, rt_uint16_t y_end, void *pcolor);
void lcd_show_num(rt_uint16_t x, rt_uint16_t y, rt_uint32_t num, rt_uint8_t len, rt_uint32_t size);
rt_err_t lcd_show_string(rt_uint16_t x, rt_uint16_t y, rt_uint32_t size, const char *fmt, ...);
rt_err_t lcd_show_image(rt_uint16_t x, rt_uint16_t y, rt_uint16_t length, rt_uint16_t wide, const rt_uint8_t *p);
+#endif /* BSP_USING_LVGL */
void lcd_enter_sleep(void);
void lcd_exit_sleep(void);
void lcd_display_on(void);
void lcd_display_off(void);
+void lcd_address_set(rt_uint16_t x1, rt_uint16_t y1, rt_uint16_t x2, rt_uint16_t y2);
+void lcd_fill_array(rt_uint16_t x_start, rt_uint16_t y_start, rt_uint16_t x_end, rt_uint16_t y_end, void *pcolor);
+
#endif
diff --git a/bsp/stm32/stm32l475-atk-pandora/board/ports/lcd/lcd_qrcode.c b/bsp/stm32/stm32l475-atk-pandora/board/ports/lcd/lcd_qrcode.c
index a03eba27ca..2f58bbe966 100644
--- a/bsp/stm32/stm32l475-atk-pandora/board/ports/lcd/lcd_qrcode.c
+++ b/bsp/stm32/stm32l475-atk-pandora/board/ports/lcd/lcd_qrcode.c
@@ -186,4 +186,4 @@ __exit:
return result;
}
-#endif
+#endif /* BSP_USING_LCD_QRCODE */
diff --git a/bsp/stm32/stm32l475-atk-pandora/board/ports/lcd/lcd_qrcode.h b/bsp/stm32/stm32l475-atk-pandora/board/ports/lcd/lcd_qrcode.h
index f9a5193404..320cbb8aa6 100644
--- a/bsp/stm32/stm32l475-atk-pandora/board/ports/lcd/lcd_qrcode.h
+++ b/bsp/stm32/stm32l475-atk-pandora/board/ports/lcd/lcd_qrcode.h
@@ -3,7 +3,7 @@
#include
-#ifdef PKG_USING_QRCODE
+#ifdef BSP_USING_LCD_QRCODE
#include
rt_err_t lcd_show_qrcode(rt_uint16_t x, rt_uint16_t y, rt_uint8_t version, rt_uint8_t ecc, const char *data, rt_uint8_t enlargement);
#endif