diff --git a/bsp/fm33lc0xx/.config b/bsp/fm33lc026/.config
similarity index 100%
rename from bsp/fm33lc0xx/.config
rename to bsp/fm33lc026/.config
diff --git a/bsp/fm33lc0xx/Kconfig b/bsp/fm33lc026/Kconfig
similarity index 100%
rename from bsp/fm33lc0xx/Kconfig
rename to bsp/fm33lc026/Kconfig
diff --git a/bsp/fm33lc026/README.md b/bsp/fm33lc026/README.md
new file mode 100644
index 0000000000000000000000000000000000000000..0232ef3b7e84773006c849e0e9fe83b75a0d31e0
--- /dev/null
+++ b/bsp/fm33lc026/README.md
@@ -0,0 +1,46 @@
+# FM33LC026 #
+
+## 1. 简介
+
+[FM33LC026](开发者论坛:http://www.fmdevelopers.com.cn/forum.php)是复旦微的MCU,使用 Cortex-M0 内核。该BSP基于FM026开发调试,LC0XX系列通用,重新选择型号即可,可能需要改变部分引脚定义。
+FM33LC0xxx系列低功耗MCU,基于ARM Cortex-M0内核,集成大容量嵌入式闪存,具备丰富的模拟和数字外设,并具有优异的低功耗特性。FM33LC0xxx系列包含三个子系列,分别为支持无晶振USB FS device的FM33LC0xxU系列,和不支持USB的FM33LC0xxN系列,以及FM33LC0x4NR系列。
+主要资源如下:
+
+| 硬件 | 描述 |
+| -- | -- |
+|CPU| Cortex-M0|
+|主频| 64MHz |
+|SRAM| 24KB |
+|Flash| 128KB |
+
+## 2. 编译说明
+
+只适配了MDK5,使用MDK5编译。
+
+| IDE/编译器 | 已测试版本 |
+| -- | -- |
+| MDK5 | MDK5.27 |
+
+## 3. 烧写及执行
+
+下载程序:使用 J-Link 工具。
+
+### 3.1 配置和仿真
+
+工程已经默认使能了RT-Thread UART驱动。若想进一步配置工程请
+使用ENV工具。
+
+## 4. 驱动支持情况及计划
+
+| 驱动 | 支持情况 | 备注 |
+| ------ | ---- | :------: |
+| UART | 支持 | USART0/1/4/5 |
+
+## 5. 联系人信息
+
+维护人:
+
+- [jqj96](https://github.com/jqj96)
+
+## 6. 参考
+
diff --git a/bsp/fm33lc0xx/SConscript b/bsp/fm33lc026/SConscript
similarity index 100%
rename from bsp/fm33lc0xx/SConscript
rename to bsp/fm33lc026/SConscript
diff --git a/bsp/fm33lc0xx/SConstruct b/bsp/fm33lc026/SConstruct
similarity index 100%
rename from bsp/fm33lc0xx/SConstruct
rename to bsp/fm33lc026/SConstruct
diff --git a/bsp/fm33lc0xx/applications/SConscript b/bsp/fm33lc026/applications/SConscript
similarity index 100%
rename from bsp/fm33lc0xx/applications/SConscript
rename to bsp/fm33lc026/applications/SConscript
diff --git a/bsp/fm33lc0xx/applications/main.c b/bsp/fm33lc026/applications/main.c
similarity index 100%
rename from bsp/fm33lc0xx/applications/main.c
rename to bsp/fm33lc026/applications/main.c
diff --git a/bsp/fm33lc0xx/applications/main.h b/bsp/fm33lc026/applications/main.h
similarity index 100%
rename from bsp/fm33lc0xx/applications/main.h
rename to bsp/fm33lc026/applications/main.h
diff --git a/bsp/fm33lc0xx/board/Kconfig b/bsp/fm33lc026/board/Kconfig
similarity index 100%
rename from bsp/fm33lc0xx/board/Kconfig
rename to bsp/fm33lc026/board/Kconfig
diff --git a/bsp/fm33lc0xx/board/SConscript b/bsp/fm33lc026/board/SConscript
similarity index 100%
rename from bsp/fm33lc0xx/board/SConscript
rename to bsp/fm33lc026/board/SConscript
diff --git a/bsp/fm33lc0xx/board/board.c b/bsp/fm33lc026/board/board.c
similarity index 100%
rename from bsp/fm33lc0xx/board/board.c
rename to bsp/fm33lc026/board/board.c
diff --git a/bsp/fm33lc0xx/board/board.h b/bsp/fm33lc026/board/board.h
similarity index 100%
rename from bsp/fm33lc0xx/board/board.h
rename to bsp/fm33lc026/board/board.h
diff --git a/bsp/fm33lc0xx/libraries/FM/FM33xx/Include/core_cm0plus.h b/bsp/fm33lc026/libraries/FM/FM33xx/Include/core_cm0plus.h
similarity index 100%
rename from bsp/fm33lc0xx/libraries/FM/FM33xx/Include/core_cm0plus.h
rename to bsp/fm33lc026/libraries/FM/FM33xx/Include/core_cm0plus.h
diff --git a/bsp/fm33lc0xx/libraries/FM/FM33xx/Include/core_cmFunc.h b/bsp/fm33lc026/libraries/FM/FM33xx/Include/core_cmFunc.h
similarity index 100%
rename from bsp/fm33lc0xx/libraries/FM/FM33xx/Include/core_cmFunc.h
rename to bsp/fm33lc026/libraries/FM/FM33xx/Include/core_cmFunc.h
diff --git a/bsp/fm33lc0xx/libraries/FM/FM33xx/Include/core_cmInstr.h b/bsp/fm33lc026/libraries/FM/FM33xx/Include/core_cmInstr.h
similarity index 100%
rename from bsp/fm33lc0xx/libraries/FM/FM33xx/Include/core_cmInstr.h
rename to bsp/fm33lc026/libraries/FM/FM33xx/Include/core_cmInstr.h
diff --git a/bsp/fm33lc0xx/libraries/FM/FM33xx/Include/fm33_assert.h b/bsp/fm33lc026/libraries/FM/FM33xx/Include/fm33_assert.h
similarity index 100%
rename from bsp/fm33lc0xx/libraries/FM/FM33xx/Include/fm33_assert.h
rename to bsp/fm33lc026/libraries/FM/FM33xx/Include/fm33_assert.h
diff --git a/bsp/fm33lc0xx/libraries/FM/FM33xx/Include/fm33lc0xx.h b/bsp/fm33lc026/libraries/FM/FM33xx/Include/fm33lc0xx.h
similarity index 100%
rename from bsp/fm33lc0xx/libraries/FM/FM33xx/Include/fm33lc0xx.h
rename to bsp/fm33lc026/libraries/FM/FM33xx/Include/fm33lc0xx.h
diff --git a/bsp/fm33lc0xx/libraries/FM/FM33xx/Include/fm33lg0xx.h b/bsp/fm33lc026/libraries/FM/FM33xx/Include/fm33lg0xx.h
similarity index 100%
rename from bsp/fm33lc0xx/libraries/FM/FM33xx/Include/fm33lg0xx.h
rename to bsp/fm33lc026/libraries/FM/FM33xx/Include/fm33lg0xx.h
diff --git a/bsp/fm33lc0xx/libraries/FM/FM33xx/Include/fm33xx.h b/bsp/fm33lc026/libraries/FM/FM33xx/Include/fm33xx.h
similarity index 100%
rename from bsp/fm33lc0xx/libraries/FM/FM33xx/Include/fm33xx.h
rename to bsp/fm33lc026/libraries/FM/FM33xx/Include/fm33xx.h
diff --git a/bsp/fm33lc0xx/libraries/FM/FM33xx/Include/system_fm33lc0xx.h b/bsp/fm33lc026/libraries/FM/FM33xx/Include/system_fm33lc0xx.h
similarity index 100%
rename from bsp/fm33lc0xx/libraries/FM/FM33xx/Include/system_fm33lc0xx.h
rename to bsp/fm33lc026/libraries/FM/FM33xx/Include/system_fm33lc0xx.h
diff --git a/bsp/fm33lc0xx/libraries/FM/FM33xx/Include/system_fm33lg0xx.h b/bsp/fm33lc026/libraries/FM/FM33xx/Include/system_fm33lg0xx.h
similarity index 100%
rename from bsp/fm33lc0xx/libraries/FM/FM33xx/Include/system_fm33lg0xx.h
rename to bsp/fm33lc026/libraries/FM/FM33xx/Include/system_fm33lg0xx.h
diff --git a/bsp/fm33lc0xx/libraries/FM/FM33xx/Source/Templates/ARM/startup_fm33lc0xx.s b/bsp/fm33lc026/libraries/FM/FM33xx/Source/Templates/ARM/startup_fm33lc0xx.s
similarity index 100%
rename from bsp/fm33lc0xx/libraries/FM/FM33xx/Source/Templates/ARM/startup_fm33lc0xx.s
rename to bsp/fm33lc026/libraries/FM/FM33xx/Source/Templates/ARM/startup_fm33lc0xx.s
diff --git a/bsp/fm33lc0xx/libraries/FM/FM33xx/Source/Templates/ARM/startup_fm33lg0xx.s b/bsp/fm33lc026/libraries/FM/FM33xx/Source/Templates/ARM/startup_fm33lg0xx.s
similarity index 100%
rename from bsp/fm33lc0xx/libraries/FM/FM33xx/Source/Templates/ARM/startup_fm33lg0xx.s
rename to bsp/fm33lc026/libraries/FM/FM33xx/Source/Templates/ARM/startup_fm33lg0xx.s
diff --git a/bsp/fm33lc0xx/libraries/FM/FM33xx/Source/Templates/gcc/linker/fm33lc01x_flash.ld b/bsp/fm33lc026/libraries/FM/FM33xx/Source/Templates/gcc/linker/fm33lc01x_flash.ld
similarity index 100%
rename from bsp/fm33lc0xx/libraries/FM/FM33xx/Source/Templates/gcc/linker/fm33lc01x_flash.ld
rename to bsp/fm33lc026/libraries/FM/FM33xx/Source/Templates/gcc/linker/fm33lc01x_flash.ld
diff --git a/bsp/fm33lc0xx/libraries/FM/FM33xx/Source/Templates/gcc/linker/fm33lc02x_flash.ld b/bsp/fm33lc026/libraries/FM/FM33xx/Source/Templates/gcc/linker/fm33lc02x_flash.ld
similarity index 100%
rename from bsp/fm33lc0xx/libraries/FM/FM33xx/Source/Templates/gcc/linker/fm33lc02x_flash.ld
rename to bsp/fm33lc026/libraries/FM/FM33xx/Source/Templates/gcc/linker/fm33lc02x_flash.ld
diff --git a/bsp/fm33lc0xx/libraries/FM/FM33xx/Source/Templates/gcc/linker/fm33lc04x_flash.ld b/bsp/fm33lc026/libraries/FM/FM33xx/Source/Templates/gcc/linker/fm33lc04x_flash.ld
similarity index 100%
rename from bsp/fm33lc0xx/libraries/FM/FM33xx/Source/Templates/gcc/linker/fm33lc04x_flash.ld
rename to bsp/fm33lc026/libraries/FM/FM33xx/Source/Templates/gcc/linker/fm33lc04x_flash.ld
diff --git a/bsp/fm33lc0xx/libraries/FM/FM33xx/Source/Templates/gcc/startup_fm33lc0xx.s b/bsp/fm33lc026/libraries/FM/FM33xx/Source/Templates/gcc/startup_fm33lc0xx.s
similarity index 100%
rename from bsp/fm33lc0xx/libraries/FM/FM33xx/Source/Templates/gcc/startup_fm33lc0xx.s
rename to bsp/fm33lc026/libraries/FM/FM33xx/Source/Templates/gcc/startup_fm33lc0xx.s
diff --git a/bsp/fm33lc0xx/libraries/FM/FM33xx/Source/Templates/iar/startup_fm33lc0xx.s b/bsp/fm33lc026/libraries/FM/FM33xx/Source/Templates/iar/startup_fm33lc0xx.s
similarity index 100%
rename from bsp/fm33lc0xx/libraries/FM/FM33xx/Source/Templates/iar/startup_fm33lc0xx.s
rename to bsp/fm33lc026/libraries/FM/FM33xx/Source/Templates/iar/startup_fm33lc0xx.s
diff --git a/bsp/fm33lc0xx/libraries/FM/FM33xx/Source/Templates/iar/startup_fm33lg0xx.s b/bsp/fm33lc026/libraries/FM/FM33xx/Source/Templates/iar/startup_fm33lg0xx.s
similarity index 100%
rename from bsp/fm33lc0xx/libraries/FM/FM33xx/Source/Templates/iar/startup_fm33lg0xx.s
rename to bsp/fm33lc026/libraries/FM/FM33xx/Source/Templates/iar/startup_fm33lg0xx.s
diff --git a/bsp/fm33lc0xx/libraries/FM33LC0xx_FL_Driver/CMSIS/Include/core_cm0plus.h b/bsp/fm33lc026/libraries/FM33LC0xx_FL_Driver/CMSIS/Include/core_cm0plus.h
similarity index 100%
rename from bsp/fm33lc0xx/libraries/FM33LC0xx_FL_Driver/CMSIS/Include/core_cm0plus.h
rename to bsp/fm33lc026/libraries/FM33LC0xx_FL_Driver/CMSIS/Include/core_cm0plus.h
diff --git a/bsp/fm33lc0xx/libraries/FM33LC0xx_FL_Driver/CMSIS/Include/core_cmFunc.h b/bsp/fm33lc026/libraries/FM33LC0xx_FL_Driver/CMSIS/Include/core_cmFunc.h
similarity index 100%
rename from bsp/fm33lc0xx/libraries/FM33LC0xx_FL_Driver/CMSIS/Include/core_cmFunc.h
rename to bsp/fm33lc026/libraries/FM33LC0xx_FL_Driver/CMSIS/Include/core_cmFunc.h
diff --git a/bsp/fm33lc0xx/libraries/FM33LC0xx_FL_Driver/CMSIS/Include/core_cmInstr.h b/bsp/fm33lc026/libraries/FM33LC0xx_FL_Driver/CMSIS/Include/core_cmInstr.h
similarity index 100%
rename from bsp/fm33lc0xx/libraries/FM33LC0xx_FL_Driver/CMSIS/Include/core_cmInstr.h
rename to bsp/fm33lc026/libraries/FM33LC0xx_FL_Driver/CMSIS/Include/core_cmInstr.h
diff --git a/bsp/fm33lc0xx/libraries/FM33LC0xx_FL_Driver/CMSIS/Include/fm33_assert.h b/bsp/fm33lc026/libraries/FM33LC0xx_FL_Driver/CMSIS/Include/fm33_assert.h
similarity index 100%
rename from bsp/fm33lc0xx/libraries/FM33LC0xx_FL_Driver/CMSIS/Include/fm33_assert.h
rename to bsp/fm33lc026/libraries/FM33LC0xx_FL_Driver/CMSIS/Include/fm33_assert.h
diff --git a/bsp/fm33lc0xx/libraries/FM33LC0xx_FL_Driver/CMSIS/Include/fm33lc0xx.h b/bsp/fm33lc026/libraries/FM33LC0xx_FL_Driver/CMSIS/Include/fm33lc0xx.h
similarity index 100%
rename from bsp/fm33lc0xx/libraries/FM33LC0xx_FL_Driver/CMSIS/Include/fm33lc0xx.h
rename to bsp/fm33lc026/libraries/FM33LC0xx_FL_Driver/CMSIS/Include/fm33lc0xx.h
diff --git a/bsp/fm33lc0xx/libraries/FM33LC0xx_FL_Driver/CMSIS/Include/fm33lg0xx.h b/bsp/fm33lc026/libraries/FM33LC0xx_FL_Driver/CMSIS/Include/fm33lg0xx.h
similarity index 100%
rename from bsp/fm33lc0xx/libraries/FM33LC0xx_FL_Driver/CMSIS/Include/fm33lg0xx.h
rename to bsp/fm33lc026/libraries/FM33LC0xx_FL_Driver/CMSIS/Include/fm33lg0xx.h
diff --git a/bsp/fm33lc0xx/libraries/FM33LC0xx_FL_Driver/CMSIS/Include/fm33xx.h b/bsp/fm33lc026/libraries/FM33LC0xx_FL_Driver/CMSIS/Include/fm33xx.h
similarity index 100%
rename from bsp/fm33lc0xx/libraries/FM33LC0xx_FL_Driver/CMSIS/Include/fm33xx.h
rename to bsp/fm33lc026/libraries/FM33LC0xx_FL_Driver/CMSIS/Include/fm33xx.h
diff --git a/bsp/fm33lc0xx/libraries/FM33LC0xx_FL_Driver/CMSIS/Include/system_fm33lc0xx.h b/bsp/fm33lc026/libraries/FM33LC0xx_FL_Driver/CMSIS/Include/system_fm33lc0xx.h
similarity index 100%
rename from bsp/fm33lc0xx/libraries/FM33LC0xx_FL_Driver/CMSIS/Include/system_fm33lc0xx.h
rename to bsp/fm33lc026/libraries/FM33LC0xx_FL_Driver/CMSIS/Include/system_fm33lc0xx.h
diff --git a/bsp/fm33lc0xx/libraries/FM33LC0xx_FL_Driver/CMSIS/Include/system_fm33lg0xx.h b/bsp/fm33lc026/libraries/FM33LC0xx_FL_Driver/CMSIS/Include/system_fm33lg0xx.h
similarity index 100%
rename from bsp/fm33lc0xx/libraries/FM33LC0xx_FL_Driver/CMSIS/Include/system_fm33lg0xx.h
rename to bsp/fm33lc026/libraries/FM33LC0xx_FL_Driver/CMSIS/Include/system_fm33lg0xx.h
diff --git a/bsp/fm33lc0xx/libraries/FM33LC0xx_FL_Driver/CMSIS/system_fm33lc0xx.c b/bsp/fm33lc026/libraries/FM33LC0xx_FL_Driver/CMSIS/system_fm33lc0xx.c
similarity index 100%
rename from bsp/fm33lc0xx/libraries/FM33LC0xx_FL_Driver/CMSIS/system_fm33lc0xx.c
rename to bsp/fm33lc026/libraries/FM33LC0xx_FL_Driver/CMSIS/system_fm33lc0xx.c
diff --git a/bsp/fm33lc0xx/libraries/FM33LC0xx_FL_Driver/CMSIS/system_fm33lg0xx.c b/bsp/fm33lc026/libraries/FM33LC0xx_FL_Driver/CMSIS/system_fm33lg0xx.c
similarity index 100%
rename from bsp/fm33lc0xx/libraries/FM33LC0xx_FL_Driver/CMSIS/system_fm33lg0xx.c
rename to bsp/fm33lc026/libraries/FM33LC0xx_FL_Driver/CMSIS/system_fm33lg0xx.c
diff --git a/bsp/fm33lc0xx/libraries/FM33LC0xx_FL_Driver/Inc/fm33lc0xx_fl.h b/bsp/fm33lc026/libraries/FM33LC0xx_FL_Driver/Inc/fm33lc0xx_fl.h
similarity index 100%
rename from bsp/fm33lc0xx/libraries/FM33LC0xx_FL_Driver/Inc/fm33lc0xx_fl.h
rename to bsp/fm33lc026/libraries/FM33LC0xx_FL_Driver/Inc/fm33lc0xx_fl.h
diff --git a/bsp/fm33lc0xx/libraries/FM33LC0xx_FL_Driver/Inc/fm33lc0xx_fl_adc.h b/bsp/fm33lc026/libraries/FM33LC0xx_FL_Driver/Inc/fm33lc0xx_fl_adc.h
similarity index 100%
rename from bsp/fm33lc0xx/libraries/FM33LC0xx_FL_Driver/Inc/fm33lc0xx_fl_adc.h
rename to bsp/fm33lc026/libraries/FM33LC0xx_FL_Driver/Inc/fm33lc0xx_fl_adc.h
diff --git a/bsp/fm33lc0xx/libraries/FM33LC0xx_FL_Driver/Inc/fm33lc0xx_fl_aes.h b/bsp/fm33lc026/libraries/FM33LC0xx_FL_Driver/Inc/fm33lc0xx_fl_aes.h
similarity index 100%
rename from bsp/fm33lc0xx/libraries/FM33LC0xx_FL_Driver/Inc/fm33lc0xx_fl_aes.h
rename to bsp/fm33lc026/libraries/FM33LC0xx_FL_Driver/Inc/fm33lc0xx_fl_aes.h
diff --git a/bsp/fm33lc0xx/libraries/FM33LC0xx_FL_Driver/Inc/fm33lc0xx_fl_atim.h b/bsp/fm33lc026/libraries/FM33LC0xx_FL_Driver/Inc/fm33lc0xx_fl_atim.h
similarity index 100%
rename from bsp/fm33lc0xx/libraries/FM33LC0xx_FL_Driver/Inc/fm33lc0xx_fl_atim.h
rename to bsp/fm33lc026/libraries/FM33LC0xx_FL_Driver/Inc/fm33lc0xx_fl_atim.h
diff --git a/bsp/fm33lc0xx/libraries/FM33LC0xx_FL_Driver/Inc/fm33lc0xx_fl_bstim32.h b/bsp/fm33lc026/libraries/FM33LC0xx_FL_Driver/Inc/fm33lc0xx_fl_bstim32.h
similarity index 100%
rename from bsp/fm33lc0xx/libraries/FM33LC0xx_FL_Driver/Inc/fm33lc0xx_fl_bstim32.h
rename to bsp/fm33lc026/libraries/FM33LC0xx_FL_Driver/Inc/fm33lc0xx_fl_bstim32.h
diff --git a/bsp/fm33lc0xx/libraries/FM33LC0xx_FL_Driver/Inc/fm33lc0xx_fl_comp.h b/bsp/fm33lc026/libraries/FM33LC0xx_FL_Driver/Inc/fm33lc0xx_fl_comp.h
similarity index 100%
rename from bsp/fm33lc0xx/libraries/FM33LC0xx_FL_Driver/Inc/fm33lc0xx_fl_comp.h
rename to bsp/fm33lc026/libraries/FM33LC0xx_FL_Driver/Inc/fm33lc0xx_fl_comp.h
diff --git a/bsp/fm33lc0xx/libraries/FM33LC0xx_FL_Driver/Inc/fm33lc0xx_fl_crc.h b/bsp/fm33lc026/libraries/FM33LC0xx_FL_Driver/Inc/fm33lc0xx_fl_crc.h
similarity index 100%
rename from bsp/fm33lc0xx/libraries/FM33LC0xx_FL_Driver/Inc/fm33lc0xx_fl_crc.h
rename to bsp/fm33lc026/libraries/FM33LC0xx_FL_Driver/Inc/fm33lc0xx_fl_crc.h
diff --git a/bsp/fm33lc0xx/libraries/FM33LC0xx_FL_Driver/Inc/fm33lc0xx_fl_divas.h b/bsp/fm33lc026/libraries/FM33LC0xx_FL_Driver/Inc/fm33lc0xx_fl_divas.h
similarity index 100%
rename from bsp/fm33lc0xx/libraries/FM33LC0xx_FL_Driver/Inc/fm33lc0xx_fl_divas.h
rename to bsp/fm33lc026/libraries/FM33LC0xx_FL_Driver/Inc/fm33lc0xx_fl_divas.h
diff --git a/bsp/fm33lc0xx/libraries/FM33LC0xx_FL_Driver/Inc/fm33lc0xx_fl_dma.h b/bsp/fm33lc026/libraries/FM33LC0xx_FL_Driver/Inc/fm33lc0xx_fl_dma.h
similarity index 100%
rename from bsp/fm33lc0xx/libraries/FM33LC0xx_FL_Driver/Inc/fm33lc0xx_fl_dma.h
rename to bsp/fm33lc026/libraries/FM33LC0xx_FL_Driver/Inc/fm33lc0xx_fl_dma.h
diff --git a/bsp/fm33lc0xx/libraries/FM33LC0xx_FL_Driver/Inc/fm33lc0xx_fl_exti.h b/bsp/fm33lc026/libraries/FM33LC0xx_FL_Driver/Inc/fm33lc0xx_fl_exti.h
similarity index 100%
rename from bsp/fm33lc0xx/libraries/FM33LC0xx_FL_Driver/Inc/fm33lc0xx_fl_exti.h
rename to bsp/fm33lc026/libraries/FM33LC0xx_FL_Driver/Inc/fm33lc0xx_fl_exti.h
diff --git a/bsp/fm33lc0xx/libraries/FM33LC0xx_FL_Driver/Inc/fm33lc0xx_fl_flash.h b/bsp/fm33lc026/libraries/FM33LC0xx_FL_Driver/Inc/fm33lc0xx_fl_flash.h
similarity index 100%
rename from bsp/fm33lc0xx/libraries/FM33LC0xx_FL_Driver/Inc/fm33lc0xx_fl_flash.h
rename to bsp/fm33lc026/libraries/FM33LC0xx_FL_Driver/Inc/fm33lc0xx_fl_flash.h
diff --git a/bsp/fm33lc0xx/libraries/FM33LC0xx_FL_Driver/Inc/fm33lc0xx_fl_gpio.h b/bsp/fm33lc026/libraries/FM33LC0xx_FL_Driver/Inc/fm33lc0xx_fl_gpio.h
similarity index 100%
rename from bsp/fm33lc0xx/libraries/FM33LC0xx_FL_Driver/Inc/fm33lc0xx_fl_gpio.h
rename to bsp/fm33lc026/libraries/FM33LC0xx_FL_Driver/Inc/fm33lc0xx_fl_gpio.h
diff --git a/bsp/fm33lc0xx/libraries/FM33LC0xx_FL_Driver/Inc/fm33lc0xx_fl_gptim.h b/bsp/fm33lc026/libraries/FM33LC0xx_FL_Driver/Inc/fm33lc0xx_fl_gptim.h
similarity index 100%
rename from bsp/fm33lc0xx/libraries/FM33LC0xx_FL_Driver/Inc/fm33lc0xx_fl_gptim.h
rename to bsp/fm33lc026/libraries/FM33LC0xx_FL_Driver/Inc/fm33lc0xx_fl_gptim.h
diff --git a/bsp/fm33lc0xx/libraries/FM33LC0xx_FL_Driver/Inc/fm33lc0xx_fl_i2c.h b/bsp/fm33lc026/libraries/FM33LC0xx_FL_Driver/Inc/fm33lc0xx_fl_i2c.h
similarity index 100%
rename from bsp/fm33lc0xx/libraries/FM33LC0xx_FL_Driver/Inc/fm33lc0xx_fl_i2c.h
rename to bsp/fm33lc026/libraries/FM33LC0xx_FL_Driver/Inc/fm33lc0xx_fl_i2c.h
diff --git a/bsp/fm33lc0xx/libraries/FM33LC0xx_FL_Driver/Inc/fm33lc0xx_fl_iwdt.h b/bsp/fm33lc026/libraries/FM33LC0xx_FL_Driver/Inc/fm33lc0xx_fl_iwdt.h
similarity index 100%
rename from bsp/fm33lc0xx/libraries/FM33LC0xx_FL_Driver/Inc/fm33lc0xx_fl_iwdt.h
rename to bsp/fm33lc026/libraries/FM33LC0xx_FL_Driver/Inc/fm33lc0xx_fl_iwdt.h
diff --git a/bsp/fm33lc0xx/libraries/FM33LC0xx_FL_Driver/Inc/fm33lc0xx_fl_lcd.h b/bsp/fm33lc026/libraries/FM33LC0xx_FL_Driver/Inc/fm33lc0xx_fl_lcd.h
similarity index 100%
rename from bsp/fm33lc0xx/libraries/FM33LC0xx_FL_Driver/Inc/fm33lc0xx_fl_lcd.h
rename to bsp/fm33lc026/libraries/FM33LC0xx_FL_Driver/Inc/fm33lc0xx_fl_lcd.h
diff --git a/bsp/fm33lc0xx/libraries/FM33LC0xx_FL_Driver/Inc/fm33lc0xx_fl_lptim32.h b/bsp/fm33lc026/libraries/FM33LC0xx_FL_Driver/Inc/fm33lc0xx_fl_lptim32.h
similarity index 100%
rename from bsp/fm33lc0xx/libraries/FM33LC0xx_FL_Driver/Inc/fm33lc0xx_fl_lptim32.h
rename to bsp/fm33lc026/libraries/FM33LC0xx_FL_Driver/Inc/fm33lc0xx_fl_lptim32.h
diff --git a/bsp/fm33lc0xx/libraries/FM33LC0xx_FL_Driver/Inc/fm33lc0xx_fl_lpuart.h b/bsp/fm33lc026/libraries/FM33LC0xx_FL_Driver/Inc/fm33lc0xx_fl_lpuart.h
similarity index 100%
rename from bsp/fm33lc0xx/libraries/FM33LC0xx_FL_Driver/Inc/fm33lc0xx_fl_lpuart.h
rename to bsp/fm33lc026/libraries/FM33LC0xx_FL_Driver/Inc/fm33lc0xx_fl_lpuart.h
diff --git a/bsp/fm33lc0xx/libraries/FM33LC0xx_FL_Driver/Inc/fm33lc0xx_fl_opa.h b/bsp/fm33lc026/libraries/FM33LC0xx_FL_Driver/Inc/fm33lc0xx_fl_opa.h
similarity index 100%
rename from bsp/fm33lc0xx/libraries/FM33LC0xx_FL_Driver/Inc/fm33lc0xx_fl_opa.h
rename to bsp/fm33lc026/libraries/FM33LC0xx_FL_Driver/Inc/fm33lc0xx_fl_opa.h
diff --git a/bsp/fm33lc0xx/libraries/FM33LC0xx_FL_Driver/Inc/fm33lc0xx_fl_pmu.h b/bsp/fm33lc026/libraries/FM33LC0xx_FL_Driver/Inc/fm33lc0xx_fl_pmu.h
similarity index 100%
rename from bsp/fm33lc0xx/libraries/FM33LC0xx_FL_Driver/Inc/fm33lc0xx_fl_pmu.h
rename to bsp/fm33lc026/libraries/FM33LC0xx_FL_Driver/Inc/fm33lc0xx_fl_pmu.h
diff --git a/bsp/fm33lc0xx/libraries/FM33LC0xx_FL_Driver/Inc/fm33lc0xx_fl_rcc.h b/bsp/fm33lc026/libraries/FM33LC0xx_FL_Driver/Inc/fm33lc0xx_fl_rcc.h
similarity index 100%
rename from bsp/fm33lc0xx/libraries/FM33LC0xx_FL_Driver/Inc/fm33lc0xx_fl_rcc.h
rename to bsp/fm33lc026/libraries/FM33LC0xx_FL_Driver/Inc/fm33lc0xx_fl_rcc.h
diff --git a/bsp/fm33lc0xx/libraries/FM33LC0xx_FL_Driver/Inc/fm33lc0xx_fl_rmu.h b/bsp/fm33lc026/libraries/FM33LC0xx_FL_Driver/Inc/fm33lc0xx_fl_rmu.h
similarity index 100%
rename from bsp/fm33lc0xx/libraries/FM33LC0xx_FL_Driver/Inc/fm33lc0xx_fl_rmu.h
rename to bsp/fm33lc026/libraries/FM33LC0xx_FL_Driver/Inc/fm33lc0xx_fl_rmu.h
diff --git a/bsp/fm33lc0xx/libraries/FM33LC0xx_FL_Driver/Inc/fm33lc0xx_fl_rng.h b/bsp/fm33lc026/libraries/FM33LC0xx_FL_Driver/Inc/fm33lc0xx_fl_rng.h
similarity index 100%
rename from bsp/fm33lc0xx/libraries/FM33LC0xx_FL_Driver/Inc/fm33lc0xx_fl_rng.h
rename to bsp/fm33lc026/libraries/FM33LC0xx_FL_Driver/Inc/fm33lc0xx_fl_rng.h
diff --git a/bsp/fm33lc0xx/libraries/FM33LC0xx_FL_Driver/Inc/fm33lc0xx_fl_rtc.h b/bsp/fm33lc026/libraries/FM33LC0xx_FL_Driver/Inc/fm33lc0xx_fl_rtc.h
similarity index 100%
rename from bsp/fm33lc0xx/libraries/FM33LC0xx_FL_Driver/Inc/fm33lc0xx_fl_rtc.h
rename to bsp/fm33lc026/libraries/FM33LC0xx_FL_Driver/Inc/fm33lc0xx_fl_rtc.h
diff --git a/bsp/fm33lc0xx/libraries/FM33LC0xx_FL_Driver/Inc/fm33lc0xx_fl_spi.h b/bsp/fm33lc026/libraries/FM33LC0xx_FL_Driver/Inc/fm33lc0xx_fl_spi.h
similarity index 100%
rename from bsp/fm33lc0xx/libraries/FM33LC0xx_FL_Driver/Inc/fm33lc0xx_fl_spi.h
rename to bsp/fm33lc026/libraries/FM33LC0xx_FL_Driver/Inc/fm33lc0xx_fl_spi.h
diff --git a/bsp/fm33lc0xx/libraries/FM33LC0xx_FL_Driver/Inc/fm33lc0xx_fl_svd.h b/bsp/fm33lc026/libraries/FM33LC0xx_FL_Driver/Inc/fm33lc0xx_fl_svd.h
similarity index 100%
rename from bsp/fm33lc0xx/libraries/FM33LC0xx_FL_Driver/Inc/fm33lc0xx_fl_svd.h
rename to bsp/fm33lc026/libraries/FM33LC0xx_FL_Driver/Inc/fm33lc0xx_fl_svd.h
diff --git a/bsp/fm33lc0xx/libraries/FM33LC0xx_FL_Driver/Inc/fm33lc0xx_fl_u7816.h b/bsp/fm33lc026/libraries/FM33LC0xx_FL_Driver/Inc/fm33lc0xx_fl_u7816.h
similarity index 100%
rename from bsp/fm33lc0xx/libraries/FM33LC0xx_FL_Driver/Inc/fm33lc0xx_fl_u7816.h
rename to bsp/fm33lc026/libraries/FM33LC0xx_FL_Driver/Inc/fm33lc0xx_fl_u7816.h
diff --git a/bsp/fm33lc0xx/libraries/FM33LC0xx_FL_Driver/Inc/fm33lc0xx_fl_uart.h b/bsp/fm33lc026/libraries/FM33LC0xx_FL_Driver/Inc/fm33lc0xx_fl_uart.h
similarity index 100%
rename from bsp/fm33lc0xx/libraries/FM33LC0xx_FL_Driver/Inc/fm33lc0xx_fl_uart.h
rename to bsp/fm33lc026/libraries/FM33LC0xx_FL_Driver/Inc/fm33lc0xx_fl_uart.h
diff --git a/bsp/fm33lc0xx/libraries/FM33LC0xx_FL_Driver/Inc/fm33lc0xx_fl_vref.h b/bsp/fm33lc026/libraries/FM33LC0xx_FL_Driver/Inc/fm33lc0xx_fl_vref.h
similarity index 100%
rename from bsp/fm33lc0xx/libraries/FM33LC0xx_FL_Driver/Inc/fm33lc0xx_fl_vref.h
rename to bsp/fm33lc026/libraries/FM33LC0xx_FL_Driver/Inc/fm33lc0xx_fl_vref.h
diff --git a/bsp/fm33lc0xx/libraries/FM33LC0xx_FL_Driver/Inc/fm33lc0xx_fl_wwdt.h b/bsp/fm33lc026/libraries/FM33LC0xx_FL_Driver/Inc/fm33lc0xx_fl_wwdt.h
similarity index 100%
rename from bsp/fm33lc0xx/libraries/FM33LC0xx_FL_Driver/Inc/fm33lc0xx_fl_wwdt.h
rename to bsp/fm33lc026/libraries/FM33LC0xx_FL_Driver/Inc/fm33lc0xx_fl_wwdt.h
diff --git a/bsp/fm33lc0xx/libraries/FM33LC0xx_FL_Driver/SConscript b/bsp/fm33lc026/libraries/FM33LC0xx_FL_Driver/SConscript
similarity index 100%
rename from bsp/fm33lc0xx/libraries/FM33LC0xx_FL_Driver/SConscript
rename to bsp/fm33lc026/libraries/FM33LC0xx_FL_Driver/SConscript
diff --git a/bsp/fm33lc0xx/libraries/FM33LC0xx_FL_Driver/Src/fm33lc0xx_fl.c b/bsp/fm33lc026/libraries/FM33LC0xx_FL_Driver/Src/fm33lc0xx_fl.c
similarity index 100%
rename from bsp/fm33lc0xx/libraries/FM33LC0xx_FL_Driver/Src/fm33lc0xx_fl.c
rename to bsp/fm33lc026/libraries/FM33LC0xx_FL_Driver/Src/fm33lc0xx_fl.c
diff --git a/bsp/fm33lc0xx/libraries/FM33LC0xx_FL_Driver/Src/fm33lc0xx_fl_adc.c b/bsp/fm33lc026/libraries/FM33LC0xx_FL_Driver/Src/fm33lc0xx_fl_adc.c
similarity index 100%
rename from bsp/fm33lc0xx/libraries/FM33LC0xx_FL_Driver/Src/fm33lc0xx_fl_adc.c
rename to bsp/fm33lc026/libraries/FM33LC0xx_FL_Driver/Src/fm33lc0xx_fl_adc.c
diff --git a/bsp/fm33lc0xx/libraries/FM33LC0xx_FL_Driver/Src/fm33lc0xx_fl_aes.c b/bsp/fm33lc026/libraries/FM33LC0xx_FL_Driver/Src/fm33lc0xx_fl_aes.c
similarity index 100%
rename from bsp/fm33lc0xx/libraries/FM33LC0xx_FL_Driver/Src/fm33lc0xx_fl_aes.c
rename to bsp/fm33lc026/libraries/FM33LC0xx_FL_Driver/Src/fm33lc0xx_fl_aes.c
diff --git a/bsp/fm33lc0xx/libraries/FM33LC0xx_FL_Driver/Src/fm33lc0xx_fl_atim.c b/bsp/fm33lc026/libraries/FM33LC0xx_FL_Driver/Src/fm33lc0xx_fl_atim.c
similarity index 100%
rename from bsp/fm33lc0xx/libraries/FM33LC0xx_FL_Driver/Src/fm33lc0xx_fl_atim.c
rename to bsp/fm33lc026/libraries/FM33LC0xx_FL_Driver/Src/fm33lc0xx_fl_atim.c
diff --git a/bsp/fm33lc0xx/libraries/FM33LC0xx_FL_Driver/Src/fm33lc0xx_fl_bstim32.c b/bsp/fm33lc026/libraries/FM33LC0xx_FL_Driver/Src/fm33lc0xx_fl_bstim32.c
similarity index 100%
rename from bsp/fm33lc0xx/libraries/FM33LC0xx_FL_Driver/Src/fm33lc0xx_fl_bstim32.c
rename to bsp/fm33lc026/libraries/FM33LC0xx_FL_Driver/Src/fm33lc0xx_fl_bstim32.c
diff --git a/bsp/fm33lc0xx/libraries/FM33LC0xx_FL_Driver/Src/fm33lc0xx_fl_comp.c b/bsp/fm33lc026/libraries/FM33LC0xx_FL_Driver/Src/fm33lc0xx_fl_comp.c
similarity index 100%
rename from bsp/fm33lc0xx/libraries/FM33LC0xx_FL_Driver/Src/fm33lc0xx_fl_comp.c
rename to bsp/fm33lc026/libraries/FM33LC0xx_FL_Driver/Src/fm33lc0xx_fl_comp.c
diff --git a/bsp/fm33lc0xx/libraries/FM33LC0xx_FL_Driver/Src/fm33lc0xx_fl_crc.c b/bsp/fm33lc026/libraries/FM33LC0xx_FL_Driver/Src/fm33lc0xx_fl_crc.c
similarity index 100%
rename from bsp/fm33lc0xx/libraries/FM33LC0xx_FL_Driver/Src/fm33lc0xx_fl_crc.c
rename to bsp/fm33lc026/libraries/FM33LC0xx_FL_Driver/Src/fm33lc0xx_fl_crc.c
diff --git a/bsp/fm33lc0xx/libraries/FM33LC0xx_FL_Driver/Src/fm33lc0xx_fl_divas.c b/bsp/fm33lc026/libraries/FM33LC0xx_FL_Driver/Src/fm33lc0xx_fl_divas.c
similarity index 100%
rename from bsp/fm33lc0xx/libraries/FM33LC0xx_FL_Driver/Src/fm33lc0xx_fl_divas.c
rename to bsp/fm33lc026/libraries/FM33LC0xx_FL_Driver/Src/fm33lc0xx_fl_divas.c
diff --git a/bsp/fm33lc0xx/libraries/FM33LC0xx_FL_Driver/Src/fm33lc0xx_fl_dma.c b/bsp/fm33lc026/libraries/FM33LC0xx_FL_Driver/Src/fm33lc0xx_fl_dma.c
similarity index 100%
rename from bsp/fm33lc0xx/libraries/FM33LC0xx_FL_Driver/Src/fm33lc0xx_fl_dma.c
rename to bsp/fm33lc026/libraries/FM33LC0xx_FL_Driver/Src/fm33lc0xx_fl_dma.c
diff --git a/bsp/fm33lc0xx/libraries/FM33LC0xx_FL_Driver/Src/fm33lc0xx_fl_exti.c b/bsp/fm33lc026/libraries/FM33LC0xx_FL_Driver/Src/fm33lc0xx_fl_exti.c
similarity index 100%
rename from bsp/fm33lc0xx/libraries/FM33LC0xx_FL_Driver/Src/fm33lc0xx_fl_exti.c
rename to bsp/fm33lc026/libraries/FM33LC0xx_FL_Driver/Src/fm33lc0xx_fl_exti.c
diff --git a/bsp/fm33lc0xx/libraries/FM33LC0xx_FL_Driver/Src/fm33lc0xx_fl_flash.c b/bsp/fm33lc026/libraries/FM33LC0xx_FL_Driver/Src/fm33lc0xx_fl_flash.c
similarity index 100%
rename from bsp/fm33lc0xx/libraries/FM33LC0xx_FL_Driver/Src/fm33lc0xx_fl_flash.c
rename to bsp/fm33lc026/libraries/FM33LC0xx_FL_Driver/Src/fm33lc0xx_fl_flash.c
diff --git a/bsp/fm33lc0xx/libraries/FM33LC0xx_FL_Driver/Src/fm33lc0xx_fl_gpio.c b/bsp/fm33lc026/libraries/FM33LC0xx_FL_Driver/Src/fm33lc0xx_fl_gpio.c
similarity index 100%
rename from bsp/fm33lc0xx/libraries/FM33LC0xx_FL_Driver/Src/fm33lc0xx_fl_gpio.c
rename to bsp/fm33lc026/libraries/FM33LC0xx_FL_Driver/Src/fm33lc0xx_fl_gpio.c
diff --git a/bsp/fm33lc0xx/libraries/FM33LC0xx_FL_Driver/Src/fm33lc0xx_fl_gptim.c b/bsp/fm33lc026/libraries/FM33LC0xx_FL_Driver/Src/fm33lc0xx_fl_gptim.c
similarity index 100%
rename from bsp/fm33lc0xx/libraries/FM33LC0xx_FL_Driver/Src/fm33lc0xx_fl_gptim.c
rename to bsp/fm33lc026/libraries/FM33LC0xx_FL_Driver/Src/fm33lc0xx_fl_gptim.c
diff --git a/bsp/fm33lc0xx/libraries/FM33LC0xx_FL_Driver/Src/fm33lc0xx_fl_i2c.c b/bsp/fm33lc026/libraries/FM33LC0xx_FL_Driver/Src/fm33lc0xx_fl_i2c.c
similarity index 100%
rename from bsp/fm33lc0xx/libraries/FM33LC0xx_FL_Driver/Src/fm33lc0xx_fl_i2c.c
rename to bsp/fm33lc026/libraries/FM33LC0xx_FL_Driver/Src/fm33lc0xx_fl_i2c.c
diff --git a/bsp/fm33lc0xx/libraries/FM33LC0xx_FL_Driver/Src/fm33lc0xx_fl_iwdt.c b/bsp/fm33lc026/libraries/FM33LC0xx_FL_Driver/Src/fm33lc0xx_fl_iwdt.c
similarity index 100%
rename from bsp/fm33lc0xx/libraries/FM33LC0xx_FL_Driver/Src/fm33lc0xx_fl_iwdt.c
rename to bsp/fm33lc026/libraries/FM33LC0xx_FL_Driver/Src/fm33lc0xx_fl_iwdt.c
diff --git a/bsp/fm33lc0xx/libraries/FM33LC0xx_FL_Driver/Src/fm33lc0xx_fl_lcd.c b/bsp/fm33lc026/libraries/FM33LC0xx_FL_Driver/Src/fm33lc0xx_fl_lcd.c
similarity index 100%
rename from bsp/fm33lc0xx/libraries/FM33LC0xx_FL_Driver/Src/fm33lc0xx_fl_lcd.c
rename to bsp/fm33lc026/libraries/FM33LC0xx_FL_Driver/Src/fm33lc0xx_fl_lcd.c
diff --git a/bsp/fm33lc0xx/libraries/FM33LC0xx_FL_Driver/Src/fm33lc0xx_fl_lptim32.c b/bsp/fm33lc026/libraries/FM33LC0xx_FL_Driver/Src/fm33lc0xx_fl_lptim32.c
similarity index 100%
rename from bsp/fm33lc0xx/libraries/FM33LC0xx_FL_Driver/Src/fm33lc0xx_fl_lptim32.c
rename to bsp/fm33lc026/libraries/FM33LC0xx_FL_Driver/Src/fm33lc0xx_fl_lptim32.c
diff --git a/bsp/fm33lc0xx/libraries/FM33LC0xx_FL_Driver/Src/fm33lc0xx_fl_lpuart.c b/bsp/fm33lc026/libraries/FM33LC0xx_FL_Driver/Src/fm33lc0xx_fl_lpuart.c
similarity index 100%
rename from bsp/fm33lc0xx/libraries/FM33LC0xx_FL_Driver/Src/fm33lc0xx_fl_lpuart.c
rename to bsp/fm33lc026/libraries/FM33LC0xx_FL_Driver/Src/fm33lc0xx_fl_lpuart.c
diff --git a/bsp/fm33lc0xx/libraries/FM33LC0xx_FL_Driver/Src/fm33lc0xx_fl_opa.c b/bsp/fm33lc026/libraries/FM33LC0xx_FL_Driver/Src/fm33lc0xx_fl_opa.c
similarity index 100%
rename from bsp/fm33lc0xx/libraries/FM33LC0xx_FL_Driver/Src/fm33lc0xx_fl_opa.c
rename to bsp/fm33lc026/libraries/FM33LC0xx_FL_Driver/Src/fm33lc0xx_fl_opa.c
diff --git a/bsp/fm33lc0xx/libraries/FM33LC0xx_FL_Driver/Src/fm33lc0xx_fl_pmu.c b/bsp/fm33lc026/libraries/FM33LC0xx_FL_Driver/Src/fm33lc0xx_fl_pmu.c
similarity index 100%
rename from bsp/fm33lc0xx/libraries/FM33LC0xx_FL_Driver/Src/fm33lc0xx_fl_pmu.c
rename to bsp/fm33lc026/libraries/FM33LC0xx_FL_Driver/Src/fm33lc0xx_fl_pmu.c
diff --git a/bsp/fm33lc0xx/libraries/FM33LC0xx_FL_Driver/Src/fm33lc0xx_fl_rcc.c b/bsp/fm33lc026/libraries/FM33LC0xx_FL_Driver/Src/fm33lc0xx_fl_rcc.c
similarity index 100%
rename from bsp/fm33lc0xx/libraries/FM33LC0xx_FL_Driver/Src/fm33lc0xx_fl_rcc.c
rename to bsp/fm33lc026/libraries/FM33LC0xx_FL_Driver/Src/fm33lc0xx_fl_rcc.c
diff --git a/bsp/fm33lc0xx/libraries/FM33LC0xx_FL_Driver/Src/fm33lc0xx_fl_rng.c b/bsp/fm33lc026/libraries/FM33LC0xx_FL_Driver/Src/fm33lc0xx_fl_rng.c
similarity index 100%
rename from bsp/fm33lc0xx/libraries/FM33LC0xx_FL_Driver/Src/fm33lc0xx_fl_rng.c
rename to bsp/fm33lc026/libraries/FM33LC0xx_FL_Driver/Src/fm33lc0xx_fl_rng.c
diff --git a/bsp/fm33lc0xx/libraries/FM33LC0xx_FL_Driver/Src/fm33lc0xx_fl_rtc.c b/bsp/fm33lc026/libraries/FM33LC0xx_FL_Driver/Src/fm33lc0xx_fl_rtc.c
similarity index 100%
rename from bsp/fm33lc0xx/libraries/FM33LC0xx_FL_Driver/Src/fm33lc0xx_fl_rtc.c
rename to bsp/fm33lc026/libraries/FM33LC0xx_FL_Driver/Src/fm33lc0xx_fl_rtc.c
diff --git a/bsp/fm33lc0xx/libraries/FM33LC0xx_FL_Driver/Src/fm33lc0xx_fl_spi.c b/bsp/fm33lc026/libraries/FM33LC0xx_FL_Driver/Src/fm33lc0xx_fl_spi.c
similarity index 100%
rename from bsp/fm33lc0xx/libraries/FM33LC0xx_FL_Driver/Src/fm33lc0xx_fl_spi.c
rename to bsp/fm33lc026/libraries/FM33LC0xx_FL_Driver/Src/fm33lc0xx_fl_spi.c
diff --git a/bsp/fm33lc0xx/libraries/FM33LC0xx_FL_Driver/Src/fm33lc0xx_fl_svd.c b/bsp/fm33lc026/libraries/FM33LC0xx_FL_Driver/Src/fm33lc0xx_fl_svd.c
similarity index 100%
rename from bsp/fm33lc0xx/libraries/FM33LC0xx_FL_Driver/Src/fm33lc0xx_fl_svd.c
rename to bsp/fm33lc026/libraries/FM33LC0xx_FL_Driver/Src/fm33lc0xx_fl_svd.c
diff --git a/bsp/fm33lc0xx/libraries/FM33LC0xx_FL_Driver/Src/fm33lc0xx_fl_u7816.c b/bsp/fm33lc026/libraries/FM33LC0xx_FL_Driver/Src/fm33lc0xx_fl_u7816.c
similarity index 100%
rename from bsp/fm33lc0xx/libraries/FM33LC0xx_FL_Driver/Src/fm33lc0xx_fl_u7816.c
rename to bsp/fm33lc026/libraries/FM33LC0xx_FL_Driver/Src/fm33lc0xx_fl_u7816.c
diff --git a/bsp/fm33lc0xx/libraries/FM33LC0xx_FL_Driver/Src/fm33lc0xx_fl_uart.c b/bsp/fm33lc026/libraries/FM33LC0xx_FL_Driver/Src/fm33lc0xx_fl_uart.c
similarity index 100%
rename from bsp/fm33lc0xx/libraries/FM33LC0xx_FL_Driver/Src/fm33lc0xx_fl_uart.c
rename to bsp/fm33lc026/libraries/FM33LC0xx_FL_Driver/Src/fm33lc0xx_fl_uart.c
diff --git a/bsp/fm33lc0xx/libraries/FM33LC0xx_FL_Driver/Src/fm33lc0xx_fl_wwdt.c b/bsp/fm33lc026/libraries/FM33LC0xx_FL_Driver/Src/fm33lc0xx_fl_wwdt.c
similarity index 100%
rename from bsp/fm33lc0xx/libraries/FM33LC0xx_FL_Driver/Src/fm33lc0xx_fl_wwdt.c
rename to bsp/fm33lc026/libraries/FM33LC0xx_FL_Driver/Src/fm33lc0xx_fl_wwdt.c
diff --git a/bsp/fm33lc0xx/libraries/HAL_Drivers/Kconfig b/bsp/fm33lc026/libraries/HAL_Drivers/Kconfig
similarity index 100%
rename from bsp/fm33lc0xx/libraries/HAL_Drivers/Kconfig
rename to bsp/fm33lc026/libraries/HAL_Drivers/Kconfig
diff --git a/bsp/fm33lc0xx/libraries/HAL_Drivers/SConscript b/bsp/fm33lc026/libraries/HAL_Drivers/SConscript
similarity index 100%
rename from bsp/fm33lc0xx/libraries/HAL_Drivers/SConscript
rename to bsp/fm33lc026/libraries/HAL_Drivers/SConscript
diff --git a/bsp/fm33lc0xx/libraries/HAL_Drivers/config/adc_config.h b/bsp/fm33lc026/libraries/HAL_Drivers/config/adc_config.h
similarity index 100%
rename from bsp/fm33lc0xx/libraries/HAL_Drivers/config/adc_config.h
rename to bsp/fm33lc026/libraries/HAL_Drivers/config/adc_config.h
diff --git a/bsp/fm33lc0xx/libraries/HAL_Drivers/config/dma_config.h b/bsp/fm33lc026/libraries/HAL_Drivers/config/dma_config.h
similarity index 100%
rename from bsp/fm33lc0xx/libraries/HAL_Drivers/config/dma_config.h
rename to bsp/fm33lc026/libraries/HAL_Drivers/config/dma_config.h
diff --git a/bsp/fm33lc0xx/libraries/HAL_Drivers/config/pwm_config.h b/bsp/fm33lc026/libraries/HAL_Drivers/config/pwm_config.h
similarity index 100%
rename from bsp/fm33lc0xx/libraries/HAL_Drivers/config/pwm_config.h
rename to bsp/fm33lc026/libraries/HAL_Drivers/config/pwm_config.h
diff --git a/bsp/fm33lc0xx/libraries/HAL_Drivers/config/spi_config.h b/bsp/fm33lc026/libraries/HAL_Drivers/config/spi_config.h
similarity index 100%
rename from bsp/fm33lc0xx/libraries/HAL_Drivers/config/spi_config.h
rename to bsp/fm33lc026/libraries/HAL_Drivers/config/spi_config.h
diff --git a/bsp/fm33lc0xx/libraries/HAL_Drivers/config/tim_config.h b/bsp/fm33lc026/libraries/HAL_Drivers/config/tim_config.h
similarity index 100%
rename from bsp/fm33lc0xx/libraries/HAL_Drivers/config/tim_config.h
rename to bsp/fm33lc026/libraries/HAL_Drivers/config/tim_config.h
diff --git a/bsp/fm33lc0xx/libraries/HAL_Drivers/config/uart_config.h b/bsp/fm33lc026/libraries/HAL_Drivers/config/uart_config.h
similarity index 100%
rename from bsp/fm33lc0xx/libraries/HAL_Drivers/config/uart_config.h
rename to bsp/fm33lc026/libraries/HAL_Drivers/config/uart_config.h
diff --git a/bsp/fm33lc0xx/libraries/HAL_Drivers/drv_adc.c b/bsp/fm33lc026/libraries/HAL_Drivers/drv_adc.c
similarity index 100%
rename from bsp/fm33lc0xx/libraries/HAL_Drivers/drv_adc.c
rename to bsp/fm33lc026/libraries/HAL_Drivers/drv_adc.c
diff --git a/bsp/fm33lc0xx/libraries/HAL_Drivers/drv_can.c b/bsp/fm33lc026/libraries/HAL_Drivers/drv_can.c
similarity index 100%
rename from bsp/fm33lc0xx/libraries/HAL_Drivers/drv_can.c
rename to bsp/fm33lc026/libraries/HAL_Drivers/drv_can.c
diff --git a/bsp/fm33lc0xx/libraries/HAL_Drivers/drv_can.h b/bsp/fm33lc026/libraries/HAL_Drivers/drv_can.h
similarity index 100%
rename from bsp/fm33lc0xx/libraries/HAL_Drivers/drv_can.h
rename to bsp/fm33lc026/libraries/HAL_Drivers/drv_can.h
diff --git a/bsp/fm33lc0xx/libraries/HAL_Drivers/drv_common.c b/bsp/fm33lc026/libraries/HAL_Drivers/drv_common.c
similarity index 100%
rename from bsp/fm33lc0xx/libraries/HAL_Drivers/drv_common.c
rename to bsp/fm33lc026/libraries/HAL_Drivers/drv_common.c
diff --git a/bsp/fm33lc0xx/libraries/HAL_Drivers/drv_common.h b/bsp/fm33lc026/libraries/HAL_Drivers/drv_common.h
similarity index 100%
rename from bsp/fm33lc0xx/libraries/HAL_Drivers/drv_common.h
rename to bsp/fm33lc026/libraries/HAL_Drivers/drv_common.h
diff --git a/bsp/fm33lc0xx/libraries/HAL_Drivers/drv_config.h b/bsp/fm33lc026/libraries/HAL_Drivers/drv_config.h
similarity index 100%
rename from bsp/fm33lc0xx/libraries/HAL_Drivers/drv_config.h
rename to bsp/fm33lc026/libraries/HAL_Drivers/drv_config.h
diff --git a/bsp/fm33lc0xx/libraries/HAL_Drivers/drv_crypto.c b/bsp/fm33lc026/libraries/HAL_Drivers/drv_crypto.c
similarity index 100%
rename from bsp/fm33lc0xx/libraries/HAL_Drivers/drv_crypto.c
rename to bsp/fm33lc026/libraries/HAL_Drivers/drv_crypto.c
diff --git a/bsp/fm33lc0xx/libraries/HAL_Drivers/drv_crypto.h b/bsp/fm33lc026/libraries/HAL_Drivers/drv_crypto.h
similarity index 100%
rename from bsp/fm33lc0xx/libraries/HAL_Drivers/drv_crypto.h
rename to bsp/fm33lc026/libraries/HAL_Drivers/drv_crypto.h
diff --git a/bsp/fm33lc0xx/libraries/HAL_Drivers/drv_dac.c b/bsp/fm33lc026/libraries/HAL_Drivers/drv_dac.c
similarity index 100%
rename from bsp/fm33lc0xx/libraries/HAL_Drivers/drv_dac.c
rename to bsp/fm33lc026/libraries/HAL_Drivers/drv_dac.c
diff --git a/bsp/fm33lc0xx/libraries/HAL_Drivers/drv_dma.h b/bsp/fm33lc026/libraries/HAL_Drivers/drv_dma.h
similarity index 100%
rename from bsp/fm33lc0xx/libraries/HAL_Drivers/drv_dma.h
rename to bsp/fm33lc026/libraries/HAL_Drivers/drv_dma.h
diff --git a/bsp/fm33lc0xx/libraries/HAL_Drivers/drv_eth.c b/bsp/fm33lc026/libraries/HAL_Drivers/drv_eth.c
similarity index 100%
rename from bsp/fm33lc0xx/libraries/HAL_Drivers/drv_eth.c
rename to bsp/fm33lc026/libraries/HAL_Drivers/drv_eth.c
diff --git a/bsp/fm33lc0xx/libraries/HAL_Drivers/drv_eth.h b/bsp/fm33lc026/libraries/HAL_Drivers/drv_eth.h
similarity index 100%
rename from bsp/fm33lc0xx/libraries/HAL_Drivers/drv_eth.h
rename to bsp/fm33lc026/libraries/HAL_Drivers/drv_eth.h
diff --git a/bsp/fm33lc0xx/libraries/HAL_Drivers/drv_flash/drv_flash_f0.c b/bsp/fm33lc026/libraries/HAL_Drivers/drv_flash.c
similarity index 100%
rename from bsp/fm33lc0xx/libraries/HAL_Drivers/drv_flash/drv_flash_f0.c
rename to bsp/fm33lc026/libraries/HAL_Drivers/drv_flash.c
diff --git a/bsp/fm33lc0xx/libraries/HAL_Drivers/drv_flash/drv_flash.h b/bsp/fm33lc026/libraries/HAL_Drivers/drv_flash.h
similarity index 100%
rename from bsp/fm33lc0xx/libraries/HAL_Drivers/drv_flash/drv_flash.h
rename to bsp/fm33lc026/libraries/HAL_Drivers/drv_flash.h
diff --git a/bsp/fm33lc0xx/libraries/HAL_Drivers/drv_gpio.c b/bsp/fm33lc026/libraries/HAL_Drivers/drv_gpio.c
similarity index 100%
rename from bsp/fm33lc0xx/libraries/HAL_Drivers/drv_gpio.c
rename to bsp/fm33lc026/libraries/HAL_Drivers/drv_gpio.c
diff --git a/bsp/fm33lc0xx/libraries/HAL_Drivers/drv_gpio.h b/bsp/fm33lc026/libraries/HAL_Drivers/drv_gpio.h
similarity index 100%
rename from bsp/fm33lc0xx/libraries/HAL_Drivers/drv_gpio.h
rename to bsp/fm33lc026/libraries/HAL_Drivers/drv_gpio.h
diff --git a/bsp/fm33lc0xx/libraries/HAL_Drivers/drv_hwtimer.c b/bsp/fm33lc026/libraries/HAL_Drivers/drv_hwtimer.c
similarity index 100%
rename from bsp/fm33lc0xx/libraries/HAL_Drivers/drv_hwtimer.c
rename to bsp/fm33lc026/libraries/HAL_Drivers/drv_hwtimer.c
diff --git a/bsp/fm33lc0xx/libraries/HAL_Drivers/drv_lcd.c b/bsp/fm33lc026/libraries/HAL_Drivers/drv_lcd.c
similarity index 100%
rename from bsp/fm33lc0xx/libraries/HAL_Drivers/drv_lcd.c
rename to bsp/fm33lc026/libraries/HAL_Drivers/drv_lcd.c
diff --git a/bsp/fm33lc0xx/libraries/HAL_Drivers/drv_lcd_mipi.c b/bsp/fm33lc026/libraries/HAL_Drivers/drv_lcd_mipi.c
similarity index 100%
rename from bsp/fm33lc0xx/libraries/HAL_Drivers/drv_lcd_mipi.c
rename to bsp/fm33lc026/libraries/HAL_Drivers/drv_lcd_mipi.c
diff --git a/bsp/fm33lc0xx/libraries/HAL_Drivers/drv_log.h b/bsp/fm33lc026/libraries/HAL_Drivers/drv_log.h
similarity index 100%
rename from bsp/fm33lc0xx/libraries/HAL_Drivers/drv_log.h
rename to bsp/fm33lc026/libraries/HAL_Drivers/drv_log.h
diff --git a/bsp/fm33lc0xx/libraries/HAL_Drivers/drv_lptim.c b/bsp/fm33lc026/libraries/HAL_Drivers/drv_lptim.c
similarity index 100%
rename from bsp/fm33lc0xx/libraries/HAL_Drivers/drv_lptim.c
rename to bsp/fm33lc026/libraries/HAL_Drivers/drv_lptim.c
diff --git a/bsp/fm33lc0xx/libraries/HAL_Drivers/drv_lptim.h b/bsp/fm33lc026/libraries/HAL_Drivers/drv_lptim.h
similarity index 100%
rename from bsp/fm33lc0xx/libraries/HAL_Drivers/drv_lptim.h
rename to bsp/fm33lc026/libraries/HAL_Drivers/drv_lptim.h
diff --git a/bsp/fm33lc0xx/libraries/HAL_Drivers/drv_pm.c b/bsp/fm33lc026/libraries/HAL_Drivers/drv_pm.c
similarity index 100%
rename from bsp/fm33lc0xx/libraries/HAL_Drivers/drv_pm.c
rename to bsp/fm33lc026/libraries/HAL_Drivers/drv_pm.c
diff --git a/bsp/fm33lc0xx/libraries/HAL_Drivers/drv_pulse_encoder.c b/bsp/fm33lc026/libraries/HAL_Drivers/drv_pulse_encoder.c
similarity index 100%
rename from bsp/fm33lc0xx/libraries/HAL_Drivers/drv_pulse_encoder.c
rename to bsp/fm33lc026/libraries/HAL_Drivers/drv_pulse_encoder.c
diff --git a/bsp/fm33lc0xx/libraries/HAL_Drivers/drv_pwm.c b/bsp/fm33lc026/libraries/HAL_Drivers/drv_pwm.c
similarity index 100%
rename from bsp/fm33lc0xx/libraries/HAL_Drivers/drv_pwm.c
rename to bsp/fm33lc026/libraries/HAL_Drivers/drv_pwm.c
diff --git a/bsp/fm33lc0xx/libraries/HAL_Drivers/drv_qspi.c b/bsp/fm33lc026/libraries/HAL_Drivers/drv_qspi.c
similarity index 100%
rename from bsp/fm33lc0xx/libraries/HAL_Drivers/drv_qspi.c
rename to bsp/fm33lc026/libraries/HAL_Drivers/drv_qspi.c
diff --git a/bsp/fm33lc0xx/libraries/HAL_Drivers/drv_qspi.h b/bsp/fm33lc026/libraries/HAL_Drivers/drv_qspi.h
similarity index 100%
rename from bsp/fm33lc0xx/libraries/HAL_Drivers/drv_qspi.h
rename to bsp/fm33lc026/libraries/HAL_Drivers/drv_qspi.h
diff --git a/bsp/fm33lc0xx/libraries/HAL_Drivers/drv_rtc.c b/bsp/fm33lc026/libraries/HAL_Drivers/drv_rtc.c
similarity index 100%
rename from bsp/fm33lc0xx/libraries/HAL_Drivers/drv_rtc.c
rename to bsp/fm33lc026/libraries/HAL_Drivers/drv_rtc.c
diff --git a/bsp/fm33lc0xx/libraries/HAL_Drivers/drv_sdio.c b/bsp/fm33lc026/libraries/HAL_Drivers/drv_sdio.c
similarity index 100%
rename from bsp/fm33lc0xx/libraries/HAL_Drivers/drv_sdio.c
rename to bsp/fm33lc026/libraries/HAL_Drivers/drv_sdio.c
diff --git a/bsp/fm33lc0xx/libraries/HAL_Drivers/drv_sdio.h b/bsp/fm33lc026/libraries/HAL_Drivers/drv_sdio.h
similarity index 100%
rename from bsp/fm33lc0xx/libraries/HAL_Drivers/drv_sdio.h
rename to bsp/fm33lc026/libraries/HAL_Drivers/drv_sdio.h
diff --git a/bsp/fm33lc0xx/libraries/HAL_Drivers/drv_sdram.c b/bsp/fm33lc026/libraries/HAL_Drivers/drv_sdram.c
similarity index 100%
rename from bsp/fm33lc0xx/libraries/HAL_Drivers/drv_sdram.c
rename to bsp/fm33lc026/libraries/HAL_Drivers/drv_sdram.c
diff --git a/bsp/fm33lc0xx/libraries/HAL_Drivers/drv_soft_i2c.c b/bsp/fm33lc026/libraries/HAL_Drivers/drv_soft_i2c.c
similarity index 100%
rename from bsp/fm33lc0xx/libraries/HAL_Drivers/drv_soft_i2c.c
rename to bsp/fm33lc026/libraries/HAL_Drivers/drv_soft_i2c.c
diff --git a/bsp/fm33lc0xx/libraries/HAL_Drivers/drv_soft_i2c.h b/bsp/fm33lc026/libraries/HAL_Drivers/drv_soft_i2c.h
similarity index 100%
rename from bsp/fm33lc0xx/libraries/HAL_Drivers/drv_soft_i2c.h
rename to bsp/fm33lc026/libraries/HAL_Drivers/drv_soft_i2c.h
diff --git a/bsp/fm33lc0xx/libraries/HAL_Drivers/drv_spi.c b/bsp/fm33lc026/libraries/HAL_Drivers/drv_spi.c
similarity index 100%
rename from bsp/fm33lc0xx/libraries/HAL_Drivers/drv_spi.c
rename to bsp/fm33lc026/libraries/HAL_Drivers/drv_spi.c
diff --git a/bsp/fm33lc0xx/libraries/HAL_Drivers/drv_spi.h b/bsp/fm33lc026/libraries/HAL_Drivers/drv_spi.h
similarity index 100%
rename from bsp/fm33lc0xx/libraries/HAL_Drivers/drv_spi.h
rename to bsp/fm33lc026/libraries/HAL_Drivers/drv_spi.h
diff --git a/bsp/fm33lc0xx/libraries/HAL_Drivers/drv_usart.c b/bsp/fm33lc026/libraries/HAL_Drivers/drv_usart.c
similarity index 100%
rename from bsp/fm33lc0xx/libraries/HAL_Drivers/drv_usart.c
rename to bsp/fm33lc026/libraries/HAL_Drivers/drv_usart.c
diff --git a/bsp/fm33lc0xx/libraries/HAL_Drivers/drv_usart.h b/bsp/fm33lc026/libraries/HAL_Drivers/drv_usart.h
similarity index 100%
rename from bsp/fm33lc0xx/libraries/HAL_Drivers/drv_usart.h
rename to bsp/fm33lc026/libraries/HAL_Drivers/drv_usart.h
diff --git a/bsp/fm33lc0xx/libraries/HAL_Drivers/drv_usbd.c b/bsp/fm33lc026/libraries/HAL_Drivers/drv_usbd.c
similarity index 100%
rename from bsp/fm33lc0xx/libraries/HAL_Drivers/drv_usbd.c
rename to bsp/fm33lc026/libraries/HAL_Drivers/drv_usbd.c
diff --git a/bsp/fm33lc0xx/libraries/HAL_Drivers/drv_usbh.c b/bsp/fm33lc026/libraries/HAL_Drivers/drv_usbh.c
similarity index 100%
rename from bsp/fm33lc0xx/libraries/HAL_Drivers/drv_usbh.c
rename to bsp/fm33lc026/libraries/HAL_Drivers/drv_usbh.c
diff --git a/bsp/fm33lc0xx/libraries/HAL_Drivers/drv_usbh.h b/bsp/fm33lc026/libraries/HAL_Drivers/drv_usbh.h
similarity index 100%
rename from bsp/fm33lc0xx/libraries/HAL_Drivers/drv_usbh.h
rename to bsp/fm33lc026/libraries/HAL_Drivers/drv_usbh.h
diff --git a/bsp/fm33lc0xx/libraries/HAL_Drivers/drv_wdt.c b/bsp/fm33lc026/libraries/HAL_Drivers/drv_wdt.c
similarity index 100%
rename from bsp/fm33lc0xx/libraries/HAL_Drivers/drv_wdt.c
rename to bsp/fm33lc026/libraries/HAL_Drivers/drv_wdt.c
diff --git a/bsp/fm33lc0xx/libraries/Kconfig b/bsp/fm33lc026/libraries/Kconfig
similarity index 100%
rename from bsp/fm33lc0xx/libraries/Kconfig
rename to bsp/fm33lc026/libraries/Kconfig
diff --git a/bsp/fm33lc0xx/project.uvprojx b/bsp/fm33lc026/project.uvprojx
similarity index 100%
rename from bsp/fm33lc0xx/project.uvprojx
rename to bsp/fm33lc026/project.uvprojx
index 908316ac9072b79098324b9560106517088eb4b0..b7af258db9ea7603f183d0bfb55479aee17939f2 100644
--- a/bsp/fm33lc0xx/project.uvprojx
+++ b/bsp/fm33lc026/project.uvprojx
@@ -391,11 +391,6 @@
CPU
-
- div0.c
- 1
- ..\..\libcpu\arm\common\div0.c
-
showmem.c
1
@@ -406,6 +401,11 @@
1
..\..\libcpu\arm\common\backtrace.c
+
+ div0.c
+ 1
+ ..\..\libcpu\arm\common\div0.c
+
context_rvds.S
2
@@ -427,14 +427,14 @@
..\..\components\drivers\serial\serial.c
- ringbuffer.c
+ pipe.c
1
- ..\..\components\drivers\src\ringbuffer.c
+ ..\..\components\drivers\src\pipe.c
- ringblk_buf.c
+ workqueue.c
1
- ..\..\components\drivers\src\ringblk_buf.c
+ ..\..\components\drivers\src\workqueue.c
waitqueue.c
@@ -442,24 +442,24 @@
..\..\components\drivers\src\waitqueue.c
- workqueue.c
+ ringblk_buf.c
1
- ..\..\components\drivers\src\workqueue.c
+ ..\..\components\drivers\src\ringblk_buf.c
- completion.c
+ dataqueue.c
1
- ..\..\components\drivers\src\completion.c
+ ..\..\components\drivers\src\dataqueue.c
- pipe.c
+ completion.c
1
- ..\..\components\drivers\src\pipe.c
+ ..\..\components\drivers\src\completion.c
- dataqueue.c
+ ringbuffer.c
1
- ..\..\components\drivers\src\dataqueue.c
+ ..\..\components\drivers\src\ringbuffer.c
@@ -506,11 +506,6 @@
1
..\..\components\finsh\cmd.c
-
- msh.c
- 1
- ..\..\components\finsh\msh.c
-
finsh_vm.c
1
@@ -521,6 +516,11 @@
1
..\..\components\finsh\shell.c
+
+ finsh_token.c
+ 1
+ ..\..\components\finsh\finsh_token.c
+
finsh_var.c
1
@@ -547,9 +547,9 @@
..\..\components\finsh\finsh_error.c
- finsh_token.c
+ msh.c
1
- ..\..\components\finsh\finsh_token.c
+ ..\..\components\finsh\msh.c
finsh_init.c
@@ -602,9 +602,19 @@
Kernel
- components.c
+ thread.c
1
- ..\..\src\components.c
+ ..\..\src\thread.c
+
+
+ kservice.c
+ 1
+ ..\..\src\kservice.c
+
+
+ clock.c
+ 1
+ ..\..\src\clock.c
mempool.c
@@ -612,14 +622,14 @@
..\..\src\mempool.c
- timer.c
+ ipc.c
1
- ..\..\src\timer.c
+ ..\..\src\ipc.c
- kservice.c
+ timer.c
1
- ..\..\src\kservice.c
+ ..\..\src\timer.c
idle.c
@@ -632,14 +642,14 @@
..\..\src\object.c
- thread.c
+ components.c
1
- ..\..\src\thread.c
+ ..\..\src\components.c
- ipc.c
+ scheduler.c
1
- ..\..\src\ipc.c
+ ..\..\src\scheduler.c
irq.c
@@ -651,16 +661,6 @@
1
..\..\src\mem.c
-
- clock.c
- 1
- ..\..\src\clock.c
-
-
- scheduler.c
- 1
- ..\..\src\scheduler.c
-
device.c
1
diff --git a/bsp/fm33lc0xx/rtconfig.h b/bsp/fm33lc026/rtconfig.h
similarity index 100%
rename from bsp/fm33lc0xx/rtconfig.h
rename to bsp/fm33lc026/rtconfig.h
diff --git a/bsp/fm33lc0xx/rtconfig.py b/bsp/fm33lc026/rtconfig.py
similarity index 100%
rename from bsp/fm33lc0xx/rtconfig.py
rename to bsp/fm33lc026/rtconfig.py
diff --git a/bsp/fm33lc0xx/template.uvprojx b/bsp/fm33lc026/template.uvprojx
similarity index 100%
rename from bsp/fm33lc0xx/template.uvprojx
rename to bsp/fm33lc026/template.uvprojx
diff --git a/bsp/fm33lc0xx/DebugConfig/rt-thread_STM32F072RBTx.dbgconf b/bsp/fm33lc0xx/DebugConfig/rt-thread_STM32F072RBTx.dbgconf
deleted file mode 100644
index 09130a367385dc32b16f6295a6b02572c869bbb4..0000000000000000000000000000000000000000
--- a/bsp/fm33lc0xx/DebugConfig/rt-thread_STM32F072RBTx.dbgconf
+++ /dev/null
@@ -1,40 +0,0 @@
-// File: STM32F0x1_0x2_0x8.dbgconf
-// Version: 1.0.0
-// Note: refer to STM32F0x1/STM32F0x2/STM32F0x8 Reference manual (RM0091)
-// refer to STM32F031x4/x6, STM32F051x4/x6/x8, STM32F071x8/xB datasheets
-// STM32F091xB/xC, STM32F042x4/x6, STM32F072x8/xB, STM32F038x6 datasheets
-// STM32F048x6, STM32F058x8, STM32F078xB, STM32F098xC datasheets
-
-// <<< Use Configuration Wizard in Context Menu >>>
-
-// Debug MCU configuration register (DBGMCU_CR)
-// DBG_STANDBY Debug standby mode
-// DBG_STOP Debug stop mode
-//
-DbgMCU_CR = 0x00000006;
-
-// Debug MCU APB1 freeze register (DBGMCU_APB1_FZ)
-// Reserved bits must be kept at reset value
-// DBG_CAN_STOP CAN stopped when core is halted
-// DBG_I2C1_TIMEOUT I2C1 SMBUS timeout mode stopped when core is halted
-// DBG_IWDG_STOP Independent watchdog stopped when core is halted
-// DBG_WWDG_STOP Window watchdog stopped when core is halted
-// DBG_RTC_STOP RTC stopped when core is halted
-// DBG_TIM14_STOP TIM14 counter stopped when core is halted
-// DBG_TIM7_STOP TIM7 counter stopped when core is halted
-// DBG_TIM6_STOP TIM6 counter stopped when core is halted
-// DBG_TIM3_STOP TIM3 counter stopped when core is halted
-// DBG_TIM2_STOP TIM2 counter stopped when core is halted
-//
-DbgMCU_APB1_Fz = 0x00000000;
-
-// Debug MCU APB2 freeze register (DBGMCU_APB2_FZ)
-// Reserved bits must be kept at reset value
-// DBG_TIM17_STOP TIM17 counter stopped when core is halted
-// DBG_TIM16_STOP TIM16 counter stopped when core is halted
-// DBG_TIM15_STOP TIM15 counter stopped when core is halted
-// DBG_TIM1_STOP TIM1 counter stopped when core is halted
-//
-DbgMCU_APB2_Fz = 0x00000000;
-
-// <<< end of configuration section >>>
diff --git a/bsp/fm33lc0xx/libraries/HAL_Drivers/drv_flash/drv_flash_f1.c b/bsp/fm33lc0xx/libraries/HAL_Drivers/drv_flash/drv_flash_f1.c
deleted file mode 100644
index 01f706cd8fcc60600cac20163895fd2c37859a78..0000000000000000000000000000000000000000
--- a/bsp/fm33lc0xx/libraries/HAL_Drivers/drv_flash/drv_flash_f1.c
+++ /dev/null
@@ -1,273 +0,0 @@
-/*
- * Copyright (c) 2006-2018, RT-Thread Development Team
- *
- * SPDX-License-Identifier: Apache-2.0
- *
- * Change Logs:
- * Date Author Notes
- * 2018-12-5 SummerGift first version
- * 2020-03-05 redoc support stm32f103vg
- *
- */
-
-#include "board.h"
-
-#ifdef BSP_USING_ON_CHIP_FLASH
-#include "drv_config.h"
-#include "drv_flash.h"
-
-#if defined(PKG_USING_FAL)
-#include "fal.h"
-#endif
-
-//#define DRV_DEBUG
-#define LOG_TAG "drv.flash"
-#include
-
-/**
- * @brief Gets the page of a given address
- * @param Addr: Address of the FLASH Memory
- * @retval The page of a given address
- */
-static uint32_t GetPage(uint32_t addr)
-{
- uint32_t page = 0;
- page = RT_ALIGN_DOWN(addr, FLASH_PAGE_SIZE);
- return page;
-}
-
-/**
- * Read data from flash.
- * @note This operation's units is word.
- *
- * @param addr flash address
- * @param buf buffer to store read data
- * @param size read bytes size
- *
- * @return result
- */
-int stm32_flash_read(rt_uint32_t addr, rt_uint8_t *buf, size_t size)
-{
- size_t i;
-
- if ((addr + size) > STM32_FLASH_END_ADDRESS)
- {
- LOG_E("read outrange flash size! addr is (0x%p)", (void *)(addr + size));
- return -RT_EINVAL;
- }
-
- for (i = 0; i < size; i++, buf++, addr++)
- {
- *buf = *(rt_uint8_t *) addr;
- }
-
- return size;
-}
-
-/**
- * Write data to flash.
- * @note This operation's units is word.
- * @note This operation must after erase. @see flash_erase.
- *
- * @param addr flash address
- * @param buf the write data buffer
- * @param size write bytes size
- *
- * @return result
- */
-int stm32_flash_write(rt_uint32_t addr, const rt_uint8_t *buf, size_t size)
-{
- rt_err_t result = RT_EOK;
- rt_uint32_t end_addr = addr + size;
-
- if (addr % 4 != 0)
- {
- LOG_E("write addr must be 4-byte alignment");
- return -RT_EINVAL;
- }
-
- if ((end_addr) > STM32_FLASH_END_ADDRESS)
- {
- LOG_E("write outrange flash size! addr is (0x%p)", (void *)(addr + size));
- return -RT_EINVAL;
- }
-
- HAL_FLASH_Unlock();
-
- while (addr < end_addr)
- {
- if (HAL_FLASH_Program(FLASH_TYPEPROGRAM_WORD, addr, *((rt_uint32_t *)buf)) == HAL_OK)
- {
- if (*(rt_uint32_t *)addr != *(rt_uint32_t *)buf)
- {
- result = -RT_ERROR;
- break;
- }
- addr += 4;
- buf += 4;
- }
- else
- {
- result = -RT_ERROR;
- break;
- }
- }
-
- HAL_FLASH_Lock();
-
- if (result != RT_EOK)
- {
- return result;
- }
-
- return size;
-}
-
-/**
- * Erase data on flash with bank.
- * @note This operation is irreversible.
- * @note This operation's units is different which on many chips.
- *
- * @param bank flash bank
- * @param addr flash address
- * @param size erase bytes size
- *
- * @return result
- */
-int stm32_flash_erase_bank(uint32_t bank, rt_uint32_t addr, size_t size)
-{
- rt_err_t result = RT_EOK;
- uint32_t PAGEError = 0;
-
- /*Variable used for Erase procedure*/
- FLASH_EraseInitTypeDef EraseInitStruct;
-
- if ((addr + size) > STM32_FLASH_END_ADDRESS)
- {
- LOG_E("ERROR: erase outrange flash size! addr is (0x%p)\n", (void *)(addr + size));
- return -RT_EINVAL;
- }
-
- HAL_FLASH_Unlock();
-
- /* Fill EraseInit structure*/
- EraseInitStruct.TypeErase = FLASH_TYPEERASE_PAGES;
- EraseInitStruct.PageAddress = GetPage(addr);
- EraseInitStruct.NbPages = (size + FLASH_PAGE_SIZE - 1) / FLASH_PAGE_SIZE;
- EraseInitStruct.Banks = bank;
-
- if (HAL_FLASHEx_Erase(&EraseInitStruct, &PAGEError) != HAL_OK)
- {
- result = -RT_ERROR;
- goto __exit;
- }
-
-__exit:
- HAL_FLASH_Lock();
-
- if (result != RT_EOK)
- {
- return result;
- }
-
- LOG_D("erase done: addr (0x%p), size %d", (void *)addr, size);
- return size;
-}
-
-/**
- * Erase data on flash .
- * @note This operation is irreversible.
- * @note This operation's units is different which on many chips.
- *
- * @param addr flash address
- * @param size erase bytes size
- *
- * @return result
- */
-int stm32_flash_erase(rt_uint32_t addr, size_t size)
-{
-#if defined(FLASH_BANK2_END)
- rt_err_t result = RT_EOK;
- rt_uint32_t addr_bank1 = 0;
- rt_uint32_t size_bank1 = 0;
- rt_uint32_t addr_bank2 = 0;
- rt_uint32_t size_bank2 = 0;
-
- if((addr + size) <= FLASH_BANK1_END)
- {
- addr_bank1 = addr;
- size_bank1 = size;
- size_bank2 = 0;
- }
- else if(addr > FLASH_BANK1_END)
- {
- size_bank1 = 0;
- addr_bank2 = addr;
- size_bank2 = size;
- }
- else
- {
- addr_bank1 = addr;
- size_bank1 = FLASH_BANK1_END + 1 - addr_bank1;
- addr_bank2 = FLASH_BANK1_END + 1;
- size_bank2 = addr + size - (FLASH_BANK1_END + 1);
- }
-
- if(size_bank1)
- {
- LOG_D("bank1: addr (0x%p), size %d", (void *)addr_bank1, size_bank1);
- if(size_bank1 != stm32_flash_erase_bank(FLASH_BANK_1, addr_bank1, size_bank1))
- {
- result = -RT_ERROR;
- goto __exit;
- }
- }
-
- if(size_bank2)
- {
- LOG_D("bank2: addr (0x%p), size %d", (void *)addr_bank2, size_bank2);
- if(size_bank2 != stm32_flash_erase_bank(FLASH_BANK_2, addr_bank2, size_bank2))
- {
- result = -RT_ERROR;
- goto __exit;
- }
- }
-
-__exit:
- if(result != RT_EOK)
- {
- return result;
- }
-
- return size_bank1 + size_bank2;
-#else
- return stm32_flash_erase_bank(FLASH_BANK_1, addr, size);
-#endif
-}
-
-
-#if defined(PKG_USING_FAL)
-
-static int fal_flash_read(long offset, rt_uint8_t *buf, size_t size);
-static int fal_flash_write(long offset, const rt_uint8_t *buf, size_t size);
-static int fal_flash_erase(long offset, size_t size);
-
-const struct fal_flash_dev stm32_onchip_flash = { "onchip_flash", STM32_FLASH_START_ADRESS, STM32_FLASH_SIZE, FLASH_PAGE_SIZE, {NULL, fal_flash_read, fal_flash_write, fal_flash_erase} };
-
-static int fal_flash_read(long offset, rt_uint8_t *buf, size_t size)
-{
- return stm32_flash_read(stm32_onchip_flash.addr + offset, buf, size);
-}
-
-static int fal_flash_write(long offset, const rt_uint8_t *buf, size_t size)
-{
- return stm32_flash_write(stm32_onchip_flash.addr + offset, buf, size);
-}
-
-static int fal_flash_erase(long offset, size_t size)
-{
- return stm32_flash_erase(stm32_onchip_flash.addr + offset, size);
-}
-
-#endif
-#endif /* BSP_USING_ON_CHIP_FLASH */
diff --git a/bsp/fm33lc0xx/libraries/HAL_Drivers/drv_flash/drv_flash_f2.c b/bsp/fm33lc0xx/libraries/HAL_Drivers/drv_flash/drv_flash_f2.c
deleted file mode 100644
index b3ddf1ae6c6ca7e86e8d9b34d29ec6470c8fef50..0000000000000000000000000000000000000000
--- a/bsp/fm33lc0xx/libraries/HAL_Drivers/drv_flash/drv_flash_f2.c
+++ /dev/null
@@ -1,312 +0,0 @@
-/*
- * Copyright (c) 2006-2018, RT-Thread Development Team
- *
- * SPDX-License-Identifier: Apache-2.0
- *
- * Change Logs:
- * Date Author Notes
- * 2018-12-5 SummerGift first version
- */
-
-#include "board.h"
-
-#ifdef BSP_USING_ON_CHIP_FLASH
-#include "drv_config.h"
-#include "drv_flash.h"
-
-#if defined(PKG_USING_FAL)
-#include "fal.h"
-#endif
-
-//#define DRV_DEBUG
-#define LOG_TAG "drv.flash"
-#include
-
-/* Base address of the Flash sectors Bank 1 */
-#define ADDR_FLASH_SECTOR_0 ((uint32_t)0x08000000) /* Base @ of Sector 0, 16 Kbytes */
-#define ADDR_FLASH_SECTOR_1 ((uint32_t)0x08004000) /* Base @ of Sector 1, 16 Kbytes */
-#define ADDR_FLASH_SECTOR_2 ((uint32_t)0x08008000) /* Base @ of Sector 2, 16 Kbytes */
-#define ADDR_FLASH_SECTOR_3 ((uint32_t)0x0800C000) /* Base @ of Sector 3, 16 Kbytes */
-#define ADDR_FLASH_SECTOR_4 ((uint32_t)0x08010000) /* Base @ of Sector 4, 64 Kbytes */
-#define ADDR_FLASH_SECTOR_5 ((uint32_t)0x08020000) /* Base @ of Sector 5, 128 Kbytes */
-#define ADDR_FLASH_SECTOR_6 ((uint32_t)0x08040000) /* Base @ of Sector 6, 128 Kbytes */
-#define ADDR_FLASH_SECTOR_7 ((uint32_t)0x08060000) /* Base @ of Sector 7, 128 Kbytes */
-#define ADDR_FLASH_SECTOR_8 ((uint32_t)0x08080000) /* Base @ of Sector 8, 128 Kbytes */
-#define ADDR_FLASH_SECTOR_9 ((uint32_t)0x080A0000) /* Base @ of Sector 9, 128 Kbytes */
-#define ADDR_FLASH_SECTOR_10 ((uint32_t)0x080C0000) /* Base @ of Sector 10, 128 Kbytes */
-#define ADDR_FLASH_SECTOR_11 ((uint32_t)0x080E0000) /* Base @ of Sector 11, 128 Kbytes */
-
-
-/**
- * @brief Gets the sector of a given address
- * @param None
- * @retval The sector of a given address
- */
-static rt_uint32_t GetSector(rt_uint32_t Address)
-{
- rt_uint32_t sector = 0;
-
- if((Address < ADDR_FLASH_SECTOR_1) && (Address >= ADDR_FLASH_SECTOR_0))
- {
- sector = FLASH_SECTOR_0;
- }
- else if((Address < ADDR_FLASH_SECTOR_2) && (Address >= ADDR_FLASH_SECTOR_1))
- {
- sector = FLASH_SECTOR_1;
- }
- else if((Address < ADDR_FLASH_SECTOR_3) && (Address >= ADDR_FLASH_SECTOR_2))
- {
- sector = FLASH_SECTOR_2;
- }
- else if((Address < ADDR_FLASH_SECTOR_4) && (Address >= ADDR_FLASH_SECTOR_3))
- {
- sector = FLASH_SECTOR_3;
- }
- else if((Address < ADDR_FLASH_SECTOR_5) && (Address >= ADDR_FLASH_SECTOR_4))
- {
- sector = FLASH_SECTOR_4;
- }
- else if((Address < ADDR_FLASH_SECTOR_6) && (Address >= ADDR_FLASH_SECTOR_5))
- {
- sector = FLASH_SECTOR_5;
- }
- else if((Address < ADDR_FLASH_SECTOR_7) && (Address >= ADDR_FLASH_SECTOR_6))
- {
- sector = FLASH_SECTOR_6;
- }
- else if((Address < ADDR_FLASH_SECTOR_8) && (Address >= ADDR_FLASH_SECTOR_7))
- {
- sector = FLASH_SECTOR_7;
- }
-#if defined(FLASH_SECTOR_8)
- else if((Address < ADDR_FLASH_SECTOR_9) && (Address >= ADDR_FLASH_SECTOR_8))
- {
- sector = FLASH_SECTOR_8;
- }
-#endif
-#if defined(FLASH_SECTOR_9)
- else if((Address < ADDR_FLASH_SECTOR_10) && (Address >= ADDR_FLASH_SECTOR_9))
- {
- sector = FLASH_SECTOR_9;
- }
-#endif
-#if defined(FLASH_SECTOR_10)
- else if((Address < ADDR_FLASH_SECTOR_11) && (Address >= ADDR_FLASH_SECTOR_10))
- {
- sector = FLASH_SECTOR_10;
- }
-#endif
-#if defined(FLASH_SECTOR_11)
- else /* (Address < FLASH_END_ADDR) && (Address >= ADDR_FLASH_SECTOR_11) */
- {
- sector = FLASH_SECTOR_11;
- }
-#endif
-
- return sector;
-}
-
-/**
- * Read data from flash.
- * @note This operation's units is word.
- *
- * @param addr flash address
- * @param buf buffer to store read data
- * @param size read bytes size
- *
- * @return result
- */
-int stm32_flash_read(rt_uint32_t addr, rt_uint8_t *buf, size_t size)
-{
- size_t i;
-
- if ((addr + size) > STM32_FLASH_END_ADDRESS)
- {
- LOG_E("read outrange flash size! addr is (0x%p)", (void*)(addr + size));
- return -1;
- }
-
- for (i = 0; i < size; i++, buf++, addr++)
- {
- *buf = *(rt_uint8_t *) addr;
- }
-
- return size;
-}
-
-/**
- * Write data to flash.
- * @note This operation's units is word.
- * @note This operation must after erase. @see flash_erase.
- *
- * @param addr flash address
- * @param buf the write data buffer
- * @param size write bytes size
- *
- * @return result
- */
-int stm32_flash_write(rt_uint32_t addr, const rt_uint8_t *buf, size_t size)
-{
- rt_err_t result = RT_EOK;
- rt_uint32_t end_addr = addr + size;
-
- if ((end_addr) > STM32_FLASH_END_ADDRESS)
- {
- LOG_E("write outrange flash size! addr is (0x%p)", (void*)(addr + size));
- return -RT_EINVAL;
- }
-
- if (size < 1)
- {
- return -RT_EINVAL;
- }
-
- HAL_FLASH_Unlock();
-
- __HAL_FLASH_CLEAR_FLAG(FLASH_FLAG_EOP | FLASH_FLAG_OPERR | FLASH_FLAG_WRPERR | FLASH_FLAG_PGAERR | FLASH_FLAG_PGPERR | FLASH_FLAG_PGSERR);
-
- for (size_t i = 0; i < size; i++, addr++, buf++)
- {
- /* write data to flash */
- if (HAL_FLASH_Program(FLASH_TYPEPROGRAM_BYTE, addr, (rt_uint64_t)(*buf)) == HAL_OK)
- {
- if (*(rt_uint8_t *)addr != *buf)
- {
- result = -RT_ERROR;
- break;
- }
- }
- else
- {
- result = -RT_ERROR;
- break;
- }
- }
-
- HAL_FLASH_Lock();
-
- if (result != RT_EOK)
- {
- return result;
- }
-
- return size;
-}
-
-/**
- * Erase data on flash.
- * @note This operation is irreversible.
- * @note This operation's units is different which on many chips.
- *
- * @param addr flash address
- * @param size erase bytes size
- *
- * @return result
- */
-int stm32_flash_erase(rt_uint32_t addr, size_t size)
-{
- rt_err_t result = RT_EOK;
- rt_uint32_t FirstSector = 0, NbOfSectors = 0;
- rt_uint32_t SECTORError = 0;
-
- if ((addr + size) > STM32_FLASH_END_ADDRESS)
- {
- LOG_E("ERROR: erase outrange flash size! addr is (0x%p)\n", (void*)(addr + size));
- return -RT_EINVAL;
- }
-
- /*Variable used for Erase procedure*/
- FLASH_EraseInitTypeDef EraseInitStruct;
-
- /* Unlock the Flash to enable the flash control register access */
- HAL_FLASH_Unlock();
-
- __HAL_FLASH_CLEAR_FLAG(FLASH_FLAG_EOP | FLASH_FLAG_OPERR | FLASH_FLAG_WRPERR | FLASH_FLAG_PGAERR | FLASH_FLAG_PGPERR | FLASH_FLAG_PGSERR);
-
- /* Get the 1st sector to erase */
- FirstSector = GetSector(addr);
- /* Get the number of sector to erase from 1st sector*/
- NbOfSectors = GetSector(addr + size - 1) - FirstSector + 1;
- /* Fill EraseInit structure*/
- EraseInitStruct.TypeErase = FLASH_TYPEERASE_SECTORS;
- EraseInitStruct.VoltageRange = FLASH_VOLTAGE_RANGE_3;
- EraseInitStruct.Sector = FirstSector;
- EraseInitStruct.NbSectors = NbOfSectors;
-
- if (HAL_FLASHEx_Erase(&EraseInitStruct, (uint32_t *)&SECTORError) != HAL_OK)
- {
- result = -RT_ERROR;
- goto __exit;
- }
-
-__exit:
- HAL_FLASH_Lock();
-
- if (result != RT_EOK)
- {
- return result;
- }
-
- LOG_D("erase done: addr (0x%p), size %d", (void*)addr, size);
- return result;
-}
-
-#if defined(PKG_USING_FAL)
-
-static int fal_flash_read_16k(long offset, rt_uint8_t *buf, size_t size);
-static int fal_flash_read_64k(long offset, rt_uint8_t *buf, size_t size);
-static int fal_flash_read_128k(long offset, rt_uint8_t *buf, size_t size);
-
-static int fal_flash_write_16k(long offset, const rt_uint8_t *buf, size_t size);
-static int fal_flash_write_64k(long offset, const rt_uint8_t *buf, size_t size);
-static int fal_flash_write_128k(long offset, const rt_uint8_t *buf, size_t size);
-
-static int fal_flash_erase_16k(long offset, size_t size);
-static int fal_flash_erase_64k(long offset, size_t size);
-static int fal_flash_erase_128k(long offset, size_t size);
-
-const struct fal_flash_dev stm32_onchip_flash_16k = { "onchip_flash_16k", STM32_FLASH_START_ADRESS_16K, FLASH_SIZE_GRANULARITY_16K, (16 * 1024), {NULL, fal_flash_read_16k, fal_flash_write_16k, fal_flash_erase_16k} };
-const struct fal_flash_dev stm32_onchip_flash_64k = { "onchip_flash_64k", STM32_FLASH_START_ADRESS_64K, FLASH_SIZE_GRANULARITY_64K, (64 * 1024), {NULL, fal_flash_read_64k, fal_flash_write_64k, fal_flash_erase_64k} };
-const struct fal_flash_dev stm32_onchip_flash_128k = { "onchip_flash_128k", STM32_FLASH_START_ADRESS_128K, FLASH_SIZE_GRANULARITY_128K, (128 * 1024), {NULL, fal_flash_read_128k, fal_flash_write_128k, fal_flash_erase_128k} };
-
-static int fal_flash_read_16k(long offset, rt_uint8_t *buf, size_t size)
-{
- return stm32_flash_read(stm32_onchip_flash_16k.addr + offset, buf, size);
-}
-static int fal_flash_read_64k(long offset, rt_uint8_t *buf, size_t size)
-{
- return stm32_flash_read(stm32_onchip_flash_64k.addr + offset, buf, size);
-}
-static int fal_flash_read_128k(long offset, rt_uint8_t *buf, size_t size)
-{
- return stm32_flash_read(stm32_onchip_flash_128k.addr + offset, buf, size);
-}
-
-static int fal_flash_write_16k(long offset, const rt_uint8_t *buf, size_t size)
-{
- return stm32_flash_write(stm32_onchip_flash_16k.addr + offset, buf, size);
-}
-static int fal_flash_write_64k(long offset, const rt_uint8_t *buf, size_t size)
-{
- return stm32_flash_write(stm32_onchip_flash_64k.addr + offset, buf, size);
-}
-static int fal_flash_write_128k(long offset, const rt_uint8_t *buf, size_t size)
-{
- return stm32_flash_write(stm32_onchip_flash_128k.addr + offset, buf, size);
-}
-
-static int fal_flash_erase_16k(long offset, size_t size)
-{
- return stm32_flash_erase(stm32_onchip_flash_16k.addr + offset, size);
-}
-static int fal_flash_erase_64k(long offset, size_t size)
-{
- return stm32_flash_erase(stm32_onchip_flash_64k.addr + offset, size);
-}
-static int fal_flash_erase_128k(long offset, size_t size)
-{
- return stm32_flash_erase(stm32_onchip_flash_128k.addr + offset, size);
-}
-
-#endif
-#endif /* BSP_USING_ON_CHIP_FLASH */
diff --git a/bsp/fm33lc0xx/libraries/HAL_Drivers/drv_flash/drv_flash_f4.c b/bsp/fm33lc0xx/libraries/HAL_Drivers/drv_flash/drv_flash_f4.c
deleted file mode 100644
index a9ed886c328a80440c31489f143166628aa11080..0000000000000000000000000000000000000000
--- a/bsp/fm33lc0xx/libraries/HAL_Drivers/drv_flash/drv_flash_f4.c
+++ /dev/null
@@ -1,420 +0,0 @@
-/*
- * Copyright (c) 2006-2018, RT-Thread Development Team
- *
- * SPDX-License-Identifier: Apache-2.0
- *
- * Change Logs:
- * Date Author Notes
- * 2018-12-5 SummerGift first version
- */
-
-#include "board.h"
-
-#ifdef BSP_USING_ON_CHIP_FLASH
-#include "drv_config.h"
-#include "drv_flash.h"
-
-#if defined(PKG_USING_FAL)
-#include "fal.h"
-#endif
-
-//#define DRV_DEBUG
-#define LOG_TAG "drv.flash"
-#include
-
-/* Base address of the Flash sectors Bank 1 */
-#define ADDR_FLASH_SECTOR_0 ((uint32_t)0x08000000) /* Base @ of Sector 0, 16 Kbytes */
-#define ADDR_FLASH_SECTOR_1 ((uint32_t)0x08004000) /* Base @ of Sector 1, 16 Kbytes */
-#define ADDR_FLASH_SECTOR_2 ((uint32_t)0x08008000) /* Base @ of Sector 2, 16 Kbytes */
-#define ADDR_FLASH_SECTOR_3 ((uint32_t)0x0800C000) /* Base @ of Sector 3, 16 Kbytes */
-#define ADDR_FLASH_SECTOR_4 ((uint32_t)0x08010000) /* Base @ of Sector 4, 64 Kbytes */
-#define ADDR_FLASH_SECTOR_5 ((uint32_t)0x08020000) /* Base @ of Sector 5, 128 Kbytes */
-#define ADDR_FLASH_SECTOR_6 ((uint32_t)0x08040000) /* Base @ of Sector 6, 128 Kbytes */
-#define ADDR_FLASH_SECTOR_7 ((uint32_t)0x08060000) /* Base @ of Sector 7, 128 Kbytes */
-#define ADDR_FLASH_SECTOR_8 ((uint32_t)0x08080000) /* Base @ of Sector 8, 128 Kbytes */
-#define ADDR_FLASH_SECTOR_9 ((uint32_t)0x080A0000) /* Base @ of Sector 9, 128 Kbytes */
-#define ADDR_FLASH_SECTOR_10 ((uint32_t)0x080C0000) /* Base @ of Sector 10, 128 Kbytes */
-#define ADDR_FLASH_SECTOR_11 ((uint32_t)0x080E0000) /* Base @ of Sector 11, 128 Kbytes */
-
-/* Base address of the Flash sectors Bank 2 */
-#define ADDR_FLASH_SECTOR_12 ((uint32_t)0x08100000) /* Base @ of Sector 0, 16 Kbytes */
-#define ADDR_FLASH_SECTOR_13 ((uint32_t)0x08104000) /* Base @ of Sector 1, 16 Kbytes */
-#define ADDR_FLASH_SECTOR_14 ((uint32_t)0x08108000) /* Base @ of Sector 2, 16 Kbytes */
-#define ADDR_FLASH_SECTOR_15 ((uint32_t)0x0810C000) /* Base @ of Sector 3, 16 Kbytes */
-#define ADDR_FLASH_SECTOR_16 ((uint32_t)0x08110000) /* Base @ of Sector 4, 64 Kbytes */
-#define ADDR_FLASH_SECTOR_17 ((uint32_t)0x08120000) /* Base @ of Sector 5, 128 Kbytes */
-#define ADDR_FLASH_SECTOR_18 ((uint32_t)0x08140000) /* Base @ of Sector 6, 128 Kbytes */
-#define ADDR_FLASH_SECTOR_19 ((uint32_t)0x08160000) /* Base @ of Sector 7, 128 Kbytes */
-#define ADDR_FLASH_SECTOR_20 ((uint32_t)0x08180000) /* Base @ of Sector 8, 128 Kbytes */
-#define ADDR_FLASH_SECTOR_21 ((uint32_t)0x081A0000) /* Base @ of Sector 9, 128 Kbytes */
-#define ADDR_FLASH_SECTOR_22 ((uint32_t)0x081C0000) /* Base @ of Sector 10, 128 Kbytes */
-#define ADDR_FLASH_SECTOR_23 ((uint32_t)0x081E0000) /* Base @ of Sector 11, 128 Kbytes */
-
-/**
- * @brief Gets the sector of a given address
- * @param None
- * @retval The sector of a given address
- */
-static rt_uint32_t GetSector(rt_uint32_t Address)
-{
- rt_uint32_t sector = 0;
-
- if((Address < ADDR_FLASH_SECTOR_1) && (Address >= ADDR_FLASH_SECTOR_0))
- {
- sector = FLASH_SECTOR_0;
- }
- else if((Address < ADDR_FLASH_SECTOR_2) && (Address >= ADDR_FLASH_SECTOR_1))
- {
- sector = FLASH_SECTOR_1;
- }
- else if((Address < ADDR_FLASH_SECTOR_3) && (Address >= ADDR_FLASH_SECTOR_2))
- {
- sector = FLASH_SECTOR_2;
- }
- else if((Address < ADDR_FLASH_SECTOR_4) && (Address >= ADDR_FLASH_SECTOR_3))
- {
- sector = FLASH_SECTOR_3;
- }
- else if((Address < ADDR_FLASH_SECTOR_5) && (Address >= ADDR_FLASH_SECTOR_4))
- {
- sector = FLASH_SECTOR_4;
- }
- else if((Address < ADDR_FLASH_SECTOR_6) && (Address >= ADDR_FLASH_SECTOR_5))
- {
- sector = FLASH_SECTOR_5;
- }
- else if((Address < ADDR_FLASH_SECTOR_7) && (Address >= ADDR_FLASH_SECTOR_6))
- {
- sector = FLASH_SECTOR_6;
- }
- else if((Address < ADDR_FLASH_SECTOR_8) && (Address >= ADDR_FLASH_SECTOR_7))
- {
- sector = FLASH_SECTOR_7;
- }
-#if defined(FLASH_SECTOR_8)
- else if((Address < ADDR_FLASH_SECTOR_9) && (Address >= ADDR_FLASH_SECTOR_8))
- {
- sector = FLASH_SECTOR_8;
- }
-#endif
-#if defined(FLASH_SECTOR_9)
- else if((Address < ADDR_FLASH_SECTOR_10) && (Address >= ADDR_FLASH_SECTOR_9))
- {
- sector = FLASH_SECTOR_9;
- }
-#endif
-#if defined(FLASH_SECTOR_10)
- else if((Address < ADDR_FLASH_SECTOR_11) && (Address >= ADDR_FLASH_SECTOR_10))
- {
- sector = FLASH_SECTOR_10;
- }
-#endif
-#if defined(FLASH_SECTOR_11)
- else if((Address < ADDR_FLASH_SECTOR_12) && (Address >= ADDR_FLASH_SECTOR_11))
- {
- sector = FLASH_SECTOR_11;
- }
-#endif
-#if defined(STM32F427xx) || defined(STM32F437xx) || defined(STM32F429xx)|| defined(STM32F439xx) || defined(STM32F469xx) || defined(STM32F479xx)
- else if((Address < ADDR_FLASH_SECTOR_13) && (Address >= ADDR_FLASH_SECTOR_12))
- {
- sector = FLASH_SECTOR_12;
- }
- else if((Address < ADDR_FLASH_SECTOR_14) && (Address >= ADDR_FLASH_SECTOR_13))
- {
- sector = FLASH_SECTOR_13;
- }
- else if((Address < ADDR_FLASH_SECTOR_15) && (Address >= ADDR_FLASH_SECTOR_14))
- {
- sector = FLASH_SECTOR_14;
- }
- else if((Address < ADDR_FLASH_SECTOR_16) && (Address >= ADDR_FLASH_SECTOR_15))
- {
- sector = FLASH_SECTOR_15;
- }
- else if((Address < ADDR_FLASH_SECTOR_17) && (Address >= ADDR_FLASH_SECTOR_16))
- {
- sector = FLASH_SECTOR_16;
- }
- else if((Address < ADDR_FLASH_SECTOR_18) && (Address >= ADDR_FLASH_SECTOR_17))
- {
- sector = FLASH_SECTOR_17;
- }
- else if((Address < ADDR_FLASH_SECTOR_19) && (Address >= ADDR_FLASH_SECTOR_18))
- {
- sector = FLASH_SECTOR_18;
- }
- else if((Address < ADDR_FLASH_SECTOR_20) && (Address >= ADDR_FLASH_SECTOR_19))
- {
- sector = FLASH_SECTOR_19;
- }
- else if((Address < ADDR_FLASH_SECTOR_21) && (Address >= ADDR_FLASH_SECTOR_20))
- {
- sector = FLASH_SECTOR_20;
- }
- else if((Address < ADDR_FLASH_SECTOR_22) && (Address >= ADDR_FLASH_SECTOR_21))
- {
- sector = FLASH_SECTOR_21;
- }
- else if((Address < ADDR_FLASH_SECTOR_23) && (Address >= ADDR_FLASH_SECTOR_22))
- {
- sector = FLASH_SECTOR_22;
- }
- else /* (Address < FLASH_END_ADDR) && (Address >= ADDR_FLASH_SECTOR_23) */
- {
- sector = FLASH_SECTOR_23;
- }
-#endif
- return sector;
-}
-
-/**
- * Read data from flash.
- * @note This operation's units is word.
- *
- * @param addr flash address
- * @param buf buffer to store read data
- * @param size read bytes size
- *
- * @return result
- */
-int stm32_flash_read(rt_uint32_t addr, rt_uint8_t *buf, size_t size)
-{
- size_t i;
-
- if ((addr + size) > STM32_FLASH_END_ADDRESS)
- {
- LOG_E("read outrange flash size! addr is (0x%p)", (void*)(addr + size));
- return -1;
- }
-
- for (i = 0; i < size; i++, buf++, addr++)
- {
- *buf = *(rt_uint8_t *) addr;
- }
-
- return size;
-}
-
-/**
- * Write data to flash.
- * @note This operation's units is word.
- * @note This operation must after erase. @see flash_erase.
- *
- * @param addr flash address
- * @param buf the write data buffer
- * @param size write bytes size
- *
- * @return result
- */
-int stm32_flash_write(rt_uint32_t addr, const rt_uint8_t *buf, size_t size)
-{
- rt_err_t result = RT_EOK;
- rt_uint32_t end_addr = addr + size;
- rt_uint32_t written_size = 0;
- rt_uint32_t write_size = 0;
-
- if ((end_addr) > STM32_FLASH_END_ADDRESS)
- {
- LOG_E("write outrange flash size! addr is (0x%p)", (void*)(addr + size));
- return -RT_EINVAL;
- }
-
- if (size < 1)
- {
- return -RT_EINVAL;
- }
-
- HAL_FLASH_Unlock();
-
- __HAL_FLASH_CLEAR_FLAG(FLASH_FLAG_EOP | FLASH_FLAG_OPERR | FLASH_FLAG_WRPERR | FLASH_FLAG_PGAERR | FLASH_FLAG_PGPERR | FLASH_FLAG_PGSERR);
-
- while (written_size < size)
- {
- if (((addr + written_size) % 4 == 0) && (size - written_size >= 4))
- {
- if (HAL_FLASH_Program(FLASH_TYPEPROGRAM_WORD, addr + written_size, *((rt_uint32_t *)(buf + written_size))) == HAL_OK)
- {
- if (*(rt_uint32_t *)(addr + written_size) != *(rt_uint32_t *)(buf + written_size))
- {
- result = -RT_ERROR;
- break;
- }
- }
- else
- {
- result = -RT_ERROR;
- break;
- }
- write_size = 4;
- }
- else if (((addr + written_size) % 2 == 0) && (size - written_size >= 2))
- {
- if (HAL_FLASH_Program(FLASH_TYPEPROGRAM_HALFWORD, addr + written_size, *((rt_uint16_t *)(buf + written_size))) == HAL_OK)
- {
- if (*(rt_uint16_t *)(addr + written_size) != *(rt_uint16_t *)(buf + written_size))
- {
- result = -RT_ERROR;
- break;
- }
- }
- else
- {
- result = -RT_ERROR;
- break;
- }
- write_size = 2;
- }
- else
- {
- if (HAL_FLASH_Program(FLASH_TYPEPROGRAM_BYTE, addr + written_size, *((rt_uint8_t *)(buf + written_size))) == HAL_OK)
- {
- if (*(rt_uint8_t *)(addr + written_size) != *(rt_uint8_t *)(buf + written_size))
- {
- result = -RT_ERROR;
- break;
- }
- }
- else
- {
- result = -RT_ERROR;
- break;
- }
- write_size = 1;
- }
-
- written_size += write_size;
- }
-
- HAL_FLASH_Lock();
-
- if (result != RT_EOK)
- {
- return result;
- }
-
- return size;
-}
-
-/**
- * Erase data on flash.
- * @note This operation is irreversible.
- * @note This operation's units is different which on many chips.
- *
- * @param addr flash address
- * @param size erase bytes size
- *
- * @return result
- */
-int stm32_flash_erase(rt_uint32_t addr, size_t size)
-{
- rt_err_t result = RT_EOK;
- rt_uint32_t FirstSector = 0, NbOfSectors = 0;
- rt_uint32_t SECTORError = 0;
-
- if ((addr + size) > STM32_FLASH_END_ADDRESS)
- {
- LOG_E("ERROR: erase outrange flash size! addr is (0x%p)\n", (void*)(addr + size));
- return -RT_EINVAL;
- }
-
- if (size < 1)
- {
- return -RT_EINVAL;
- }
-
- /*Variable used for Erase procedure*/
- FLASH_EraseInitTypeDef EraseInitStruct;
-
- /* Unlock the Flash to enable the flash control register access */
- HAL_FLASH_Unlock();
-
- __HAL_FLASH_CLEAR_FLAG(FLASH_FLAG_EOP | FLASH_FLAG_OPERR | FLASH_FLAG_WRPERR | FLASH_FLAG_PGAERR | FLASH_FLAG_PGPERR | FLASH_FLAG_PGSERR);
-
- /* Get the 1st sector to erase */
- FirstSector = GetSector(addr);
- /* Get the number of sector to erase from 1st sector*/
- NbOfSectors = GetSector(addr + size - 1) - FirstSector + 1;
- /* Fill EraseInit structure*/
- EraseInitStruct.TypeErase = FLASH_TYPEERASE_SECTORS;
- EraseInitStruct.VoltageRange = FLASH_VOLTAGE_RANGE_3;
- EraseInitStruct.Sector = FirstSector;
- EraseInitStruct.NbSectors = NbOfSectors;
-
- if (HAL_FLASHEx_Erase(&EraseInitStruct, (uint32_t *)&SECTORError) != HAL_OK)
- {
- result = -RT_ERROR;
- goto __exit;
- }
-
-__exit:
- HAL_FLASH_Lock();
-
- if (result != RT_EOK)
- {
- return result;
- }
-
- LOG_D("erase done: addr (0x%p), size %d", (void*)addr, size);
- return size;
-}
-
-#if defined(PKG_USING_FAL)
-
-static int fal_flash_read_16k(long offset, rt_uint8_t *buf, size_t size);
-static int fal_flash_read_64k(long offset, rt_uint8_t *buf, size_t size);
-static int fal_flash_read_128k(long offset, rt_uint8_t *buf, size_t size);
-
-static int fal_flash_write_16k(long offset, const rt_uint8_t *buf, size_t size);
-static int fal_flash_write_64k(long offset, const rt_uint8_t *buf, size_t size);
-static int fal_flash_write_128k(long offset, const rt_uint8_t *buf, size_t size);
-
-static int fal_flash_erase_16k(long offset, size_t size);
-static int fal_flash_erase_64k(long offset, size_t size);
-static int fal_flash_erase_128k(long offset, size_t size);
-
-const struct fal_flash_dev stm32_onchip_flash_16k = { "onchip_flash_16k", STM32_FLASH_START_ADRESS_16K, FLASH_SIZE_GRANULARITY_16K, (16 * 1024), {NULL, fal_flash_read_16k, fal_flash_write_16k, fal_flash_erase_16k} };
-const struct fal_flash_dev stm32_onchip_flash_64k = { "onchip_flash_64k", STM32_FLASH_START_ADRESS_64K, FLASH_SIZE_GRANULARITY_64K, (64 * 1024), {NULL, fal_flash_read_64k, fal_flash_write_64k, fal_flash_erase_64k} };
-const struct fal_flash_dev stm32_onchip_flash_128k = { "onchip_flash_128k", STM32_FLASH_START_ADRESS_128K, FLASH_SIZE_GRANULARITY_128K, (128 * 1024), {NULL, fal_flash_read_128k, fal_flash_write_128k, fal_flash_erase_128k} };
-
-static int fal_flash_read_16k(long offset, rt_uint8_t *buf, size_t size)
-{
- return stm32_flash_read(stm32_onchip_flash_16k.addr + offset, buf, size);
-}
-static int fal_flash_read_64k(long offset, rt_uint8_t *buf, size_t size)
-{
- return stm32_flash_read(stm32_onchip_flash_64k.addr + offset, buf, size);
-}
-static int fal_flash_read_128k(long offset, rt_uint8_t *buf, size_t size)
-{
- return stm32_flash_read(stm32_onchip_flash_128k.addr + offset, buf, size);
-}
-
-static int fal_flash_write_16k(long offset, const rt_uint8_t *buf, size_t size)
-{
- return stm32_flash_write(stm32_onchip_flash_16k.addr + offset, buf, size);
-}
-static int fal_flash_write_64k(long offset, const rt_uint8_t *buf, size_t size)
-{
- return stm32_flash_write(stm32_onchip_flash_64k.addr + offset, buf, size);
-}
-static int fal_flash_write_128k(long offset, const rt_uint8_t *buf, size_t size)
-{
- return stm32_flash_write(stm32_onchip_flash_128k.addr + offset, buf, size);
-}
-
-static int fal_flash_erase_16k(long offset, size_t size)
-{
- return stm32_flash_erase(stm32_onchip_flash_16k.addr + offset, size);
-}
-static int fal_flash_erase_64k(long offset, size_t size)
-{
- return stm32_flash_erase(stm32_onchip_flash_64k.addr + offset, size);
-}
-static int fal_flash_erase_128k(long offset, size_t size)
-{
- return stm32_flash_erase(stm32_onchip_flash_128k.addr + offset, size);
-}
-
-#endif
-#endif /* BSP_USING_ON_CHIP_FLASH */
diff --git a/bsp/fm33lc0xx/libraries/HAL_Drivers/drv_flash/drv_flash_f7.c b/bsp/fm33lc0xx/libraries/HAL_Drivers/drv_flash/drv_flash_f7.c
deleted file mode 100644
index 276c9ba0b945010c44840d55647615926e3fdf41..0000000000000000000000000000000000000000
--- a/bsp/fm33lc0xx/libraries/HAL_Drivers/drv_flash/drv_flash_f7.c
+++ /dev/null
@@ -1,374 +0,0 @@
-/*
- * Copyright (c) 2006-2018, RT-Thread Development Team
- *
- * SPDX-License-Identifier: Apache-2.0
- *
- * Change Logs:
- * Date Author Notes
- * 2018-12-5 SummerGift first version
- * 2019-3-2 jinsheng add Macro judgment
- * 2020-1-6 duminmin support single bank mode
- */
-
-#include "board.h"
-
-#ifdef BSP_USING_ON_CHIP_FLASH
-#include "drv_config.h"
-#include "drv_flash.h"
-
-#if defined(PKG_USING_FAL)
-#include "fal.h"
-#endif
-
-//#define DRV_DEBUG
-#define LOG_TAG "drv.flash"
-#include
-#define ADDR_FLASH_SECTOR_0 ((rt_uint32_t)0x08000000) /* Base address of Sector 0, 32 Kbytes */
-#define ADDR_FLASH_SECTOR_1 ((rt_uint32_t)0x08008000) /* Base address of Sector 1, 32 Kbytes */
-#define ADDR_FLASH_SECTOR_2 ((rt_uint32_t)0x08010000) /* Base address of Sector 2, 32 Kbytes */
-#define ADDR_FLASH_SECTOR_3 ((rt_uint32_t)0x08018000) /* Base address of Sector 3, 32 Kbytes */
-#define ADDR_FLASH_SECTOR_4 ((rt_uint32_t)0x08020000) /* Base address of Sector 4, 128 Kbytes */
-#define ADDR_FLASH_SECTOR_5 ((rt_uint32_t)0x08040000) /* Base address of Sector 5, 256 Kbytes */
-#define ADDR_FLASH_SECTOR_6 ((rt_uint32_t)0x08080000) /* Base address of Sector 6, 256 Kbytes */
-#define ADDR_FLASH_SECTOR_7 ((rt_uint32_t)0x080C0000) /* Base address of Sector 7, 256 Kbytes */
-#define ADDR_FLASH_SECTOR_8 ((rt_uint32_t)0x08100000) /* Base address of Sector 8, 256 Kbytes */
-#define ADDR_FLASH_SECTOR_9 ((rt_uint32_t)0x08140000) /* Base address of Sector 9, 256 Kbytes */
-#define ADDR_FLASH_SECTOR_10 ((rt_uint32_t)0x08180000) /* Base address of Sector 10, 256 Kbytes */
-#define ADDR_FLASH_SECTOR_11 ((rt_uint32_t)0x081C0000) /* Base address of Sector 11, 256 Kbytes */
-/**
- * @brief Gets the sector of a given address
- * @param None
- * @retval The sector of a given address
- */
-static rt_uint32_t GetSector(rt_uint32_t Address)
-{
- uint32_t sector = 0;
-
-#if defined (FLASH_OPTCR_nDBANK)
- FLASH_OBProgramInitTypeDef OBInit;
- uint32_t nbank = 0;
-
- //get duel bank ability:nDBANK(Bit29)
- HAL_FLASHEx_OBGetConfig(&OBInit);
- nbank = ((OBInit.USERConfig & 0x20000000U) >> 29);
- //1:single bank mode
- if (1 == nbank)
- {
- if ((Address < ADDR_FLASH_SECTOR_1) && (Address >= ADDR_FLASH_SECTOR_0))
- {
- sector = FLASH_SECTOR_0;
- }
- else if ((Address < ADDR_FLASH_SECTOR_2) && (Address >= ADDR_FLASH_SECTOR_1))
- {
- sector = FLASH_SECTOR_1;
- }
- else if ((Address < ADDR_FLASH_SECTOR_3) && (Address >= ADDR_FLASH_SECTOR_2))
- {
- sector = FLASH_SECTOR_2;
- }
- else if ((Address < ADDR_FLASH_SECTOR_4) && (Address >= ADDR_FLASH_SECTOR_3))
- {
- sector = FLASH_SECTOR_3;
- }
- else if ((Address < ADDR_FLASH_SECTOR_5) && (Address >= ADDR_FLASH_SECTOR_4))
- {
- sector = FLASH_SECTOR_4;
- }
- else if ((Address < ADDR_FLASH_SECTOR_6) && (Address >= ADDR_FLASH_SECTOR_5))
- {
- sector = FLASH_SECTOR_5;
- }
- else if ((Address < ADDR_FLASH_SECTOR_7) && (Address >= ADDR_FLASH_SECTOR_6))
- {
- sector = FLASH_SECTOR_6;
- }
- else if ((Address < ADDR_FLASH_SECTOR_8) && (Address >= ADDR_FLASH_SECTOR_7))
- {
- sector = FLASH_SECTOR_7;
- }
- else if ((Address < ADDR_FLASH_SECTOR_9) && (Address >= ADDR_FLASH_SECTOR_8))
- {
- sector = FLASH_SECTOR_8;
- }
- else if ((Address < ADDR_FLASH_SECTOR_10) && (Address >= ADDR_FLASH_SECTOR_9))
- {
- sector = FLASH_SECTOR_9;
- }
- else if ((Address < ADDR_FLASH_SECTOR_11) && (Address >= ADDR_FLASH_SECTOR_10))
- {
- sector = FLASH_SECTOR_10;
- }
- else
- {
- sector = FLASH_SECTOR_11;
- }
- }
- else //0:dual bank mode
- {
- LOG_E("rtthread doesn't support duel bank mode yet!");
- RT_ASSERT(0);
- }
-#else //no dual bank ability
- if ((Address < ADDR_FLASH_SECTOR_1) && (Address >= ADDR_FLASH_SECTOR_0))
- {
- sector = FLASH_SECTOR_0;
- }
- else if ((Address < ADDR_FLASH_SECTOR_2) && (Address >= ADDR_FLASH_SECTOR_1))
- {
- sector = FLASH_SECTOR_1;
- }
- else if ((Address < ADDR_FLASH_SECTOR_3) && (Address >= ADDR_FLASH_SECTOR_2))
- {
- sector = FLASH_SECTOR_2;
- }
- else if ((Address < ADDR_FLASH_SECTOR_4) && (Address >= ADDR_FLASH_SECTOR_3))
- {
- sector = FLASH_SECTOR_3;
- }
- else if ((Address < ADDR_FLASH_SECTOR_5) && (Address >= ADDR_FLASH_SECTOR_4))
- {
- sector = FLASH_SECTOR_4;
- }
- else if ((Address < ADDR_FLASH_SECTOR_6) && (Address >= ADDR_FLASH_SECTOR_5))
- {
- sector = FLASH_SECTOR_5;
- }
- else if ((Address < ADDR_FLASH_SECTOR_7) && (Address >= ADDR_FLASH_SECTOR_6))
- {
- sector = FLASH_SECTOR_6;
- }
- else if ((Address < ADDR_FLASH_SECTOR_8) && (Address >= ADDR_FLASH_SECTOR_7))
- {
- sector = FLASH_SECTOR_7;
- }
- else if ((Address < ADDR_FLASH_SECTOR_9) && (Address >= ADDR_FLASH_SECTOR_8))
- {
- sector = FLASH_SECTOR_8;
- }
- else if ((Address < ADDR_FLASH_SECTOR_10) && (Address >= ADDR_FLASH_SECTOR_9))
- {
- sector = FLASH_SECTOR_9;
- }
- else if ((Address < ADDR_FLASH_SECTOR_11) && (Address >= ADDR_FLASH_SECTOR_10))
- {
- sector = FLASH_SECTOR_10;
- }
- else
- {
- sector = FLASH_SECTOR_11;
- }
-#endif
- return sector;
-}
-
-
-/**
- * Read data from flash.
- * @note This operation's units is word.
- *
- * @param addr flash address
- * @param buf buffer to store read data
- * @param size read bytes size
- *
- * @return result
- */
-int stm32_flash_read(rt_uint32_t addr, rt_uint8_t *buf, size_t size)
-{
- size_t i;
-
- if ((addr + size) > STM32_FLASH_END_ADDRESS)
- {
- LOG_E("read outrange flash size! addr is (0x%p)", (void *)(addr + size));
- return -1;
- }
-
- for (i = 0; i < size; i++, buf++, addr++)
- {
- *buf = *(rt_uint8_t *) addr;
- }
-
- return size;
-}
-
-/**
- * Write data to flash.
- * @note This operation's units is word.
- * @note This operation must after erase. @see flash_erase.
- *
- * @param addr flash address
- * @param buf the write data buffer
- * @param size write bytes size
- *
- * @return result
- */
-int stm32_flash_write(rt_uint32_t addr, const rt_uint8_t *buf, size_t size)
-{
- rt_err_t result = RT_EOK;
- rt_uint32_t end_addr = addr + size;
-
- if ((end_addr) > STM32_FLASH_END_ADDRESS)
- {
- LOG_E("write outrange flash size! addr is (0x%p)", (void *)(addr + size));
- return -RT_EINVAL;
- }
-
- if (size < 1)
- {
- return -RT_EINVAL;
- }
-
- /* Unlock the Flash to enable the flash control register access */
- HAL_FLASH_Unlock();
- __HAL_FLASH_CLEAR_FLAG(FLASH_FLAG_EOP | FLASH_FLAG_OPERR | FLASH_FLAG_WRPERR | FLASH_FLAG_PGAERR | FLASH_FLAG_PGPERR | FLASH_FLAG_ERSERR);
-
- for (size_t i = 0; i < size; i++, addr++, buf++)
- {
- /* write data to flash */
- if (HAL_FLASH_Program(FLASH_TYPEPROGRAM_BYTE, addr, (rt_uint64_t)(*buf)) == HAL_OK)
- {
- if (*(rt_uint8_t *)addr != *buf)
- {
- result = -RT_ERROR;
- break;
- }
- }
- else
- {
- result = -RT_ERROR;
- break;
- }
- }
-
- HAL_FLASH_Lock();
-
- if (result != RT_EOK)
- {
- return result;
- }
-
- return size;
-}
-
-/**
- * Erase data on flash.
- * @note This operation is irreversible.
- * @note This operation's units is different which on many chips.
- *
- * @param addr flash address
- * @param size erase bytes size
- *
- * @return result
- */
-int stm32_flash_erase(rt_uint32_t addr, size_t size)
-{
- rt_err_t result = RT_EOK;
- rt_uint32_t FirstSector = 0, NbOfSectors = 0;
- rt_uint32_t SECTORError = 0;
-
- if ((addr + size) > STM32_FLASH_END_ADDRESS)
- {
- LOG_E("ERROR: erase outrange flash size! addr is (0x%p)\n", (void *)(addr + size));
- return -RT_EINVAL;
- }
-
- /*Variable used for Erase procedure*/
- FLASH_EraseInitTypeDef EraseInitStruct;
-
- /* Unlock the Flash to enable the flash control register access */
- HAL_FLASH_Unlock();
-
- /* Get the 1st sector to erase */
- FirstSector = GetSector(addr);
- /* Get the number of sector to erase from 1st sector*/
- NbOfSectors = GetSector(addr + size) - FirstSector + 1;
- /* Fill EraseInit structure*/
- EraseInitStruct.TypeErase = FLASH_TYPEERASE_SECTORS;
- EraseInitStruct.VoltageRange = FLASH_VOLTAGE_RANGE_3;
- EraseInitStruct.Sector = FirstSector;
- EraseInitStruct.NbSectors = NbOfSectors;
-
- if (HAL_FLASHEx_Erase(&EraseInitStruct, &SECTORError) != HAL_OK)
- {
- result = -RT_ERROR;
- goto __exit;
- }
-
-__exit:
-
- HAL_FLASH_Lock();
-
- if (result != RT_EOK)
- {
- return result;
- }
-
- LOG_D("erase done: addr (0x%p), size %d", (void *)addr, size);
- return size;
-}
-
-#if defined(PKG_USING_FAL)
-#define FLASH_SIZE_GRANULARITY_32K (4 * 32 * 1024)
-#define FLASH_SIZE_GRANULARITY_128K (128 * 1024)
-#define FLASH_SIZE_GRANULARITY_256K (7 * 256 *1024)
-
-#define STM32_FLASH_START_ADRESS_32K (STM32_FLASH_START_ADRESS)
-#define STM32_FLASH_START_ADRESS_128K (STM32_FLASH_START_ADRESS_32K + FLASH_SIZE_GRANULARITY_32K)
-#define STM32_FLASH_START_ADRESS_256K (STM32_FLASH_START_ADRESS_128K + FLASH_SIZE_GRANULARITY_128K)
-
-static int fal_flash_read_32k(long offset, rt_uint8_t *buf, size_t size);
-static int fal_flash_read_128k(long offset, rt_uint8_t *buf, size_t size);
-static int fal_flash_read_256k(long offset, rt_uint8_t *buf, size_t size);
-
-static int fal_flash_write_32k(long offset, const rt_uint8_t *buf, size_t size);
-static int fal_flash_write_128k(long offset, const rt_uint8_t *buf, size_t size);
-static int fal_flash_write_256k(long offset, const rt_uint8_t *buf, size_t size);
-
-static int fal_flash_erase_32k(long offset, size_t size);
-static int fal_flash_erase_128k(long offset, size_t size);
-static int fal_flash_erase_256k(long offset, size_t size);
-
-const struct fal_flash_dev stm32_onchip_flash_32k = { "onchip_flash_32k", STM32_FLASH_START_ADRESS_32K, FLASH_SIZE_GRANULARITY_32K, (32 * 1024), {NULL, fal_flash_read_32k, fal_flash_write_32k, fal_flash_erase_32k} };
-const struct fal_flash_dev stm32_onchip_flash_128k = { "onchip_flash_128k", STM32_FLASH_START_ADRESS_128K, FLASH_SIZE_GRANULARITY_128K, (128 * 1024), {NULL, fal_flash_read_128k, fal_flash_write_128k, fal_flash_erase_128k} };
-const struct fal_flash_dev stm32_onchip_flash_256k = { "onchip_flash_256k", STM32_FLASH_START_ADRESS_256K, FLASH_SIZE_GRANULARITY_256K, (256 * 1024), {NULL, fal_flash_read_256k, fal_flash_write_256k, fal_flash_erase_256k} };
-
-static int fal_flash_read_32k(long offset, rt_uint8_t *buf, size_t size)
-{
- return stm32_flash_read(stm32_onchip_flash_32k.addr + offset, buf, size);
-}
-static int fal_flash_read_128k(long offset, rt_uint8_t *buf, size_t size)
-{
- return stm32_flash_read(stm32_onchip_flash_128k.addr + offset, buf, size);
-}
-static int fal_flash_read_256k(long offset, rt_uint8_t *buf, size_t size)
-{
- return stm32_flash_read(stm32_onchip_flash_256k.addr + offset, buf, size);
-}
-
-static int fal_flash_write_32k(long offset, const rt_uint8_t *buf, size_t size)
-{
- return stm32_flash_write(stm32_onchip_flash_32k.addr + offset, buf, size);
-}
-static int fal_flash_write_128k(long offset, const rt_uint8_t *buf, size_t size)
-{
- return stm32_flash_write(stm32_onchip_flash_128k.addr + offset, buf, size);
-}
-static int fal_flash_write_256k(long offset, const rt_uint8_t *buf, size_t size)
-{
- return stm32_flash_write(stm32_onchip_flash_256k.addr + offset, buf, size);
-}
-
-static int fal_flash_erase_32k(long offset, size_t size)
-{
- return stm32_flash_erase(stm32_onchip_flash_32k.addr + offset, size);
-}
-static int fal_flash_erase_128k(long offset, size_t size)
-{
- return stm32_flash_erase(stm32_onchip_flash_128k.addr + offset, size);
-}
-static int fal_flash_erase_256k(long offset, size_t size)
-{
- return stm32_flash_erase(stm32_onchip_flash_256k.addr + offset, size);
-}
-
-#endif
-#endif /* BSP_USING_ON_CHIP_FLASH */
diff --git a/bsp/fm33lc0xx/libraries/HAL_Drivers/drv_flash/drv_flash_g0.c b/bsp/fm33lc0xx/libraries/HAL_Drivers/drv_flash/drv_flash_g0.c
deleted file mode 100644
index c5eefb94972bb0214498d1d546d72454e949a420..0000000000000000000000000000000000000000
--- a/bsp/fm33lc0xx/libraries/HAL_Drivers/drv_flash/drv_flash_g0.c
+++ /dev/null
@@ -1,230 +0,0 @@
-/*
- * Copyright (c) 2006-2018, RT-Thread Development Team
- *
- * SPDX-License-Identifier: Apache-2.0
- *
- * Change Logs:
- * Date Author Notes
- * 2020-06-27 NU-LL first version
- */
-
-#include "board.h"
-
-#ifdef BSP_USING_ON_CHIP_FLASH
-#include "drv_config.h"
-#include "drv_flash.h"
-
-#if defined(PKG_USING_FAL)
-#include "fal.h"
-#endif
-
-// #define DRV_DEBUG
-#define LOG_TAG "drv.flash"
-#include
-
-/**
- * @brief Gets the page of a given address
- * @param Addr: Address of the FLASH Memory
- * @retval The page of a given address
- */
-static uint32_t GetPage(uint32_t addr)
-{
- uint32_t page = 0;
- page = RT_ALIGN_DOWN(addr-STM32_FLASH_START_ADRESS, FLASH_PAGE_SIZE)/FLASH_PAGE_SIZE;
- return page;
-}
-
-/**
- * Read data from flash.
- * @note This operation's units is word.
- *
- * @param addr flash address
- * @param buf buffer to store read data
- * @param size read bytes size
- *
- * @return result
- */
-int stm32_flash_read(rt_uint32_t addr, rt_uint8_t *buf, size_t size)
-{
- size_t i;
-
- if ((addr + size) > STM32_FLASH_END_ADDRESS)
- {
- LOG_E("read outrange flash size! addr is (0x%p)", (void *)(addr + size));
- return -RT_EINVAL;
- }
-
- for (i = 0; i < size; i++, buf++, addr++)
- {
- *buf = *(rt_uint8_t *) addr;
- }
-
- return size;
-}
-
-/**
- * Write data to flash.
- * @note This operation's units is word.
- * @note This operation must after erase. @see flash_erase.
- *
- * @param addr flash address
- * @param buf the write data buffer
- * @param size write bytes size
- *
- * @return result
- */
-int stm32_flash_write(rt_uint32_t addr, const uint8_t *buf, size_t size)
-{
- size_t i, j;
- rt_err_t result = 0;
- rt_uint64_t write_data = 0, temp_data = 0;
-
- if ((addr + size) > STM32_FLASH_END_ADDRESS)
- {
- LOG_E("ERROR: write outrange flash size! addr is (0x%p)\n", (void*)(addr + size));
- return -RT_EINVAL;
- }
-
- if(addr % 8 != 0)
- {
- LOG_E("write addr must be 8-byte alignment");
- return -RT_EINVAL;
- }
-
- HAL_FLASH_Unlock();
-
- __HAL_FLASH_CLEAR_FLAG(FLASH_FLAG_EOP | FLASH_FLAG_OPERR | FLASH_FLAG_WRPERR | FLASH_FLAG_PGAERR | FLASH_FLAG_PGSERR);
-
- if (size < 1)
- {
- return -RT_ERROR;
- }
-
- for (i = 0; i < size;)
- {
- if ((size - i) < 8)
- {
- for (j = 0; (size - i) > 0; i++, j++)
- {
- temp_data = *buf;
- write_data = (write_data) | (temp_data << 8 * j);
- buf ++;
- }
- }
- else
- {
- for (j = 0; j < 8; j++, i++)
- {
- temp_data = *buf;
- write_data = (write_data) | (temp_data << 8 * j);
- buf ++;
- }
- }
-
- /* write data */
- if (HAL_FLASH_Program(FLASH_TYPEPROGRAM_DOUBLEWORD, addr, write_data) == HAL_OK)
- {
- /* Check the written value */
- if (*(uint64_t*)addr != write_data)
- {
- LOG_E("ERROR: write data != read data\n");
- result = -RT_ERROR;
- goto __exit;
- }
- }
- else
- {
- result = -RT_ERROR;
- goto __exit;
- }
-
- temp_data = 0;
- write_data = 0;
-
- addr += 8;
- }
-
-__exit:
- HAL_FLASH_Lock();
- if (result != 0)
- {
- return result;
- }
-
- return size;
-}
-
-/**
- * Erase data on flash.
- * @note This operation is irreversible.
- * @note This operation's units is different which on many chips.
- *
- * @param addr flash address
- * @param size erase bytes size
- *
- * @return result
- */
-int stm32_flash_erase(rt_uint32_t addr, size_t size)
-{
- rt_err_t result = RT_EOK;
- uint32_t PAGEError = 0;
-
- /*Variable used for Erase procedure*/
- FLASH_EraseInitTypeDef EraseInitStruct;
-
- if ((addr + size) > STM32_FLASH_END_ADDRESS)
- {
- LOG_E("ERROR: erase outrange flash size! addr is (0x%p)\n", (void *)(addr + size));
- return -RT_EINVAL;
- }
-
- HAL_FLASH_Unlock();
-
- /* Fill EraseInit structure*/
- EraseInitStruct.TypeErase = FLASH_TYPEERASE_PAGES;
- EraseInitStruct.Page = GetPage(addr);
- EraseInitStruct.NbPages = (size + FLASH_PAGE_SIZE - 1) / FLASH_PAGE_SIZE;
-
- if (HAL_FLASHEx_Erase(&EraseInitStruct, &PAGEError) != HAL_OK)
- {
- result = -RT_ERROR;
- goto __exit;
- }
-
-__exit:
- HAL_FLASH_Lock();
-
- if (result != RT_EOK)
- {
- return result;
- }
-
- LOG_D("erase done: addr (0x%p), size %d", (void *)addr, size);
- return size;
-}
-
-#if defined(PKG_USING_FAL)
-
-static int fal_flash_read(long offset, rt_uint8_t *buf, size_t size);
-static int fal_flash_write(long offset, const rt_uint8_t *buf, size_t size);
-static int fal_flash_erase(long offset, size_t size);
-
-const struct fal_flash_dev stm32_onchip_flash = { "onchip_flash", STM32_FLASH_START_ADRESS, STM32_FLASH_SIZE, FLASH_PAGE_SIZE, {NULL, fal_flash_read, fal_flash_write, fal_flash_erase} };
-
-static int fal_flash_read(long offset, rt_uint8_t *buf, size_t size)
-{
- return stm32_flash_read(stm32_onchip_flash.addr + offset, buf, size);
-}
-
-static int fal_flash_write(long offset, const rt_uint8_t *buf, size_t size)
-{
- return stm32_flash_write(stm32_onchip_flash.addr + offset, buf, size);
-}
-
-static int fal_flash_erase(long offset, size_t size)
-{
- return stm32_flash_erase(stm32_onchip_flash.addr + offset, size);
-}
-
-#endif
-#endif /* BSP_USING_ON_CHIP_FLASH */
diff --git a/bsp/fm33lc0xx/libraries/HAL_Drivers/drv_flash/drv_flash_h7.c b/bsp/fm33lc0xx/libraries/HAL_Drivers/drv_flash/drv_flash_h7.c
deleted file mode 100644
index da42bb92b6cfed3e21e9a91a4daeccdefca245b3..0000000000000000000000000000000000000000
--- a/bsp/fm33lc0xx/libraries/HAL_Drivers/drv_flash/drv_flash_h7.c
+++ /dev/null
@@ -1,301 +0,0 @@
-/*
- * Copyright (c) 2006-2018, RT-Thread Development Team
- *
- * SPDX-License-Identifier: Apache-2.0
- *
- * Change Logs:
- * Date Author Notes
- * 2018-12-5 SummerGift first version
- * 2019-3-2 jinsheng add Macro judgment
- * 2020-1-6 duminmin support single bank mode
- * 2020-5-17 yufanyufan77 support support H7
- */
-
-#include "board.h"
-
-#ifdef BSP_USING_ON_CHIP_FLASH
-#include "drv_config.h"
-#include "drv_flash.h"
-
-#if defined(PKG_USING_FAL)
-#include "fal.h"
-#endif
-
-//#define DRV_DEBUG
-#define LOG_TAG "drv.flash"
-#include
-#define ADDR_FLASH_SECTOR_0 ((rt_uint32_t)0x08000000) /* Base address of Sector 0, 128 Kbytes */
-#define ADDR_FLASH_SECTOR_1 ((rt_uint32_t)0x08020000) /* Base address of Sector 1, 128 Kbytes */
-#define ADDR_FLASH_SECTOR_2 ((rt_uint32_t)0x08040000) /* Base address of Sector 2, 128 Kbytes */
-#define ADDR_FLASH_SECTOR_3 ((rt_uint32_t)0x08060000) /* Base address of Sector 3, 128 Kbytes */
-#define ADDR_FLASH_SECTOR_4 ((rt_uint32_t)0x08080000) /* Base address of Sector 4, 128 Kbytes */
-#define ADDR_FLASH_SECTOR_5 ((rt_uint32_t)0x080A0000) /* Base address of Sector 5, 128 Kbytes */
-#define ADDR_FLASH_SECTOR_6 ((rt_uint32_t)0x080C0000) /* Base address of Sector 6, 128 Kbytes */
-#define ADDR_FLASH_SECTOR_7 ((rt_uint32_t)0x080E0000) /* Base address of Sector 7, 128 Kbytes */
-#define ADDR_FLASH_SECTOR_8 ((rt_uint32_t)0x08100000) /* Base address of Sector 8, 128 Kbytes */
-
-#define FLASH_SECTOR_0 0U /* Sector Number 0 */
-#define FLASH_SECTOR_1 1U /* Sector Number 1 */
-#define FLASH_SECTOR_2 2U /* Sector Number 2 */
-#define FLASH_SECTOR_3 3U /* Sector Number 3 */
-#define FLASH_SECTOR_4 4U /* Sector Number 4 */
-#define FLASH_SECTOR_5 5U /* Sector Number 5 */
-#define FLASH_SECTOR_6 6U /* Sector Number 6 */
-#define FLASH_SECTOR_7 7U /* Sector Number 7 */
-/**
- * @brief Gets the sector of a given address
- * @param addr flash address
- * @param flash bank
- * @param flash sector
- * @retval The sector of a given address
- */
-static void GetSector(rt_uint32_t Address,uint32_t* bank,uint32_t* sector)
-{
-#if defined (FLASH_OPTCR_nDBANK)
- FLASH_OBProgramInitTypeDef OBInit;
- uint32_t nbank = 0;
-
- /* get duel bank ability:nDBANK(Bit29) */
- HAL_FLASHEx_OBGetConfig(&OBInit);
- nbank = ((OBInit.USERConfig & 0x20000000U) >> 29);
- /* 1:single bank mode */
- if (1 == nbank)
- {
- if ((Address < ADDR_FLASH_SECTOR_1) && (Address >= ADDR_FLASH_SECTOR_0))
- {
- sector = FLASH_SECTOR_0;
- }
- else if ((Address < ADDR_FLASH_SECTOR_2) && (Address >= ADDR_FLASH_SECTOR_1))
- {
- sector = FLASH_SECTOR_1;
- }
- else if ((Address < ADDR_FLASH_SECTOR_3) && (Address >= ADDR_FLASH_SECTOR_2))
- {
- sector = FLASH_SECTOR_2;
- }
- else if ((Address < ADDR_FLASH_SECTOR_4) && (Address >= ADDR_FLASH_SECTOR_3))
- {
- sector = FLASH_SECTOR_3;
- }
- else if ((Address < ADDR_FLASH_SECTOR_5) && (Address >= ADDR_FLASH_SECTOR_4))
- {
- sector = FLASH_SECTOR_4;
- }
- else if ((Address < ADDR_FLASH_SECTOR_6) && (Address >= ADDR_FLASH_SECTOR_5))
- {
- sector = FLASH_SECTOR_5;
- }
- else if ((Address < ADDR_FLASH_SECTOR_7) && (Address >= ADDR_FLASH_SECTOR_6))
- {
- sector = FLASH_SECTOR_6;
- }
- else if ((Address < ADDR_FLASH_SECTOR_8) && (Address >= ADDR_FLASH_SECTOR_7))
- {
- sector = FLASH_SECTOR_7;
- }
- else if ((Address < ADDR_FLASH_SECTOR_9) && (Address >= ADDR_FLASH_SECTOR_8))
- {
- sector = FLASH_SECTOR_8;
- }
- else if ((Address < ADDR_FLASH_SECTOR_10) && (Address >= ADDR_FLASH_SECTOR_9))
- {
- sector = FLASH_SECTOR_9;
- }
- else if ((Address < ADDR_FLASH_SECTOR_11) && (Address >= ADDR_FLASH_SECTOR_10))
- {
- sector = FLASH_SECTOR_10;
- }
- else
- {
- sector = FLASH_SECTOR_11;
- }
- }
- else /* 0:dual bank mode */
- {
- LOG_E("rtthread doesn't support duel bank mode yet!");
- RT_ASSERT(0);
- }
-#else /* no dual bank ability */
- *sector = (Address&0xffffff)/FLASH_SIZE_GRANULARITY_128K;
- if(*sector>7)
- {
- *bank = FLASH_BANK_1;
- *sector = *sector/2;
- }
- else
- {
- *bank = FLASH_BANK_2;
- }
-#endif
-}
-
-/**
- * Read data from flash.
- * @note This operation's units is word.
- *
- * @param addr flash address
- * @param buf buffer to store read data
- * @param size read bytes size
- *
- * @return result
- */
-int stm32_flash_read(rt_uint32_t addr, rt_uint8_t *buf, size_t size)
-{
- size_t i;
-
- if ((addr + size) > STM32_FLASH_END_ADDRESS)
- {
- LOG_E("read outrange flash size! addr is (0x%p)", (void *)(addr + size));
- return -1;
- }
-
- for (i = 0; i < size; i++, buf++, addr++)
- {
- *buf = *(rt_uint8_t *) addr;
- }
-
- return size;
-}
-
-/**
- * Write data to flash.
- * @note This operation's units is word.
- * @note This operation must after erase. @see flash_erase.
- *
- * @param addr flash address
- * @param buf the write data buffer
- * @param size write bytes size
- *
- * @return result
- */
-int stm32_flash_write(rt_uint32_t addr, const rt_uint8_t *buf, size_t size)
-{
- rt_err_t result = RT_EOK;
- rt_uint32_t end_addr = addr + size;
- rt_uint32_t bank = addr/ADDR_FLASH_SECTOR_8;;
-
- if ((end_addr) > STM32_FLASH_END_ADDRESS)
- {
- LOG_E("write outrange flash size! addr is (0x%p)", (void *)(addr + size));
- return -RT_EINVAL;
- }
-
- if (size < 1)
- {
- return -RT_EINVAL;
- }
-
- /* Unlock the Flash to enable the flash control register access */
- HAL_FLASH_Unlock();
- __HAL_FLASH_CLEAR_FLAG(FLASH_FLAG_EOP | FLASH_FLAG_OPERR | FLASH_FLAG_WRPERR );
-
- for (size_t i = 0; i < size/32; i++, addr+=32, buf+=32)
- {
- /* write data to flash */
- if (HAL_FLASH_Program(FLASH_TYPEPROGRAM_FLASHWORD, addr, (uint64_t)((uint32_t)buf)) == HAL_OK)
- {
- if (*(rt_uint8_t *)addr != *buf)
- {
- result = -RT_ERROR;
- break;
- }
- }
- else
- {
- result = -RT_ERROR;
- break;
- }
- }
-
- HAL_FLASH_Lock();
-
- if (result != RT_EOK)
- {
- return result;
- }
-
- return size;
-}
-
-/**
- * Erase data on flash.
- * @note This operation is irreversible.
- * @note This operation's units is different which on many chips.
- *
- * @param addr flash address
- * @param size erase bytes size
- *
- * @return result
- */
-int stm32_flash_erase(rt_uint32_t addr, size_t size)
-{
- rt_err_t result = RT_EOK;
- rt_uint32_t FirstSector = 0, NbOfSectors = 0;
- rt_uint32_t SECTORError = 0;
- rt_uint32_t bank = 0;
-
- if ((addr + size) > STM32_FLASH_END_ADDRESS)
- {
- LOG_E("ERROR: erase outrange flash size! addr is (0x%p)\n", (void *)(addr + size));
- return -RT_EINVAL;
- }
-
- /*Variable used for Erase procedure*/
- FLASH_EraseInitTypeDef EraseInitStruct;
-
- /* Unlock the Flash to enable the flash control register access */
- HAL_FLASH_Unlock();
-
- /* Get the 1st sector to erase */
- GetSector(addr,&bank,&FirstSector);
- /* Get the number of sector to erase from 1st sector */
- GetSector(addr + size,0,&NbOfSectors);
- NbOfSectors = NbOfSectors - FirstSector + 1;
- /* Fill EraseInit structure */
- EraseInitStruct.TypeErase = FLASH_TYPEERASE_SECTORS;
- EraseInitStruct.VoltageRange = FLASH_VOLTAGE_RANGE_3;
- EraseInitStruct.Sector = FirstSector;
- EraseInitStruct.NbSectors = NbOfSectors;
- EraseInitStruct.Banks = bank;
-
- if (HAL_FLASHEx_Erase(&EraseInitStruct, &SECTORError) != HAL_OK)
- {
- result = -RT_ERROR;
- goto __exit;
- }
-
-__exit:
-
- HAL_FLASH_Lock();
-
- if (result != RT_EOK)
- {
- return result;
- }
-
- LOG_D("erase done: addr (0x%p), size %d", (void *)addr, size);
- return size;
-}
-
-#if defined(PKG_USING_FAL)
-static int fal_flash_read_128k(long offset, rt_uint8_t *buf, size_t size);
-static int fal_flash_write_128k(long offset, const rt_uint8_t *buf, size_t size);
-static int fal_flash_erase_128k(long offset, size_t size);
-const struct fal_flash_dev stm32_onchip_flash_128k = { "onchip_flash_128k", STM32_FLASH_START_ADRESS, FLASH_SIZE_GRANULARITY_128K, (128 * 1024), {NULL, fal_flash_read_128k, fal_flash_write_128k, fal_flash_erase_128k} };
-
-static int fal_flash_read_128k(long offset, rt_uint8_t *buf, size_t size)
-{
- return stm32_flash_read(stm32_onchip_flash_128k.addr + offset, buf, size);
-}
-static int fal_flash_write_128k(long offset, const rt_uint8_t *buf, size_t size)
-{
- return stm32_flash_write(stm32_onchip_flash_128k.addr + offset, buf, size);
-}
-
-static int fal_flash_erase_128k(long offset, size_t size)
-{
- return stm32_flash_erase(stm32_onchip_flash_128k.addr + offset, size);
-}
-
-#endif
-#endif /* BSP_USING_ON_CHIP_FLASH */
diff --git a/bsp/fm33lc0xx/libraries/HAL_Drivers/drv_flash/drv_flash_l4.c b/bsp/fm33lc0xx/libraries/HAL_Drivers/drv_flash/drv_flash_l4.c
deleted file mode 100644
index 00f84711f55a618bbfe103125fc5bb7ff7edd7eb..0000000000000000000000000000000000000000
--- a/bsp/fm33lc0xx/libraries/HAL_Drivers/drv_flash/drv_flash_l4.c
+++ /dev/null
@@ -1,291 +0,0 @@
-/*
- * Copyright (c) 2006-2018, RT-Thread Development Team
- *
- * SPDX-License-Identifier: Apache-2.0
- *
- * Change Logs:
- * Date Author Notes
- * 2018-12-5 SummerGift first version
- */
-
-#include "board.h"
-
-#ifdef BSP_USING_ON_CHIP_FLASH
-#include "drv_config.h"
-#include "drv_flash.h"
-
-#if defined(PKG_USING_FAL)
-#include "fal.h"
-#endif
-
-//#define DRV_DEBUG
-#define LOG_TAG "drv.flash"
-#include
-
-/**
- * @brief Gets the page of a given address
- * @param Addr: Address of the FLASH Memory
- * @retval The page of a given address
- */
-static uint32_t GetPage(uint32_t Addr)
-{
- uint32_t page = 0;
-
- if (Addr < (FLASH_BASE + FLASH_BANK_SIZE))
- {
- /* Bank 1 */
- page = (Addr - FLASH_BASE) / FLASH_PAGE_SIZE;
- }
- else
- {
- /* Bank 2 */
- page = (Addr - (FLASH_BASE + FLASH_BANK_SIZE)) / FLASH_PAGE_SIZE;
- }
-
- return page;
-}
-
-/**
- * @brief Gets the bank of a given address
- * @param Addr: Address of the FLASH Memory
- * @retval The bank of a given address
- */
-static uint32_t GetBank(uint32_t Addr)
-{
- uint32_t bank = 0;
-#ifndef FLASH_BANK_2
- bank = FLASH_BANK_1;
-#else
- if (READ_BIT(SYSCFG->MEMRMP, SYSCFG_MEMRMP_FB_MODE) == 0)
- {
- /* No Bank swap */
- if (Addr < (FLASH_BASE + FLASH_BANK_SIZE))
- {
- bank = FLASH_BANK_1;
- }
- else
- {
- bank = FLASH_BANK_2;
- }
- }
- else
- {
- /* Bank swap */
- if (Addr < (FLASH_BASE + FLASH_BANK_SIZE))
- {
- bank = FLASH_BANK_2;
- }
- else
- {
- bank = FLASH_BANK_1;
- }
- }
-#endif
- return bank;
-}
-
-/**
- * Read data from flash.
- * @note This operation's units is word.
- *
- * @param addr flash address
- * @param buf buffer to store read data
- * @param size read bytes size
- *
- * @return result
- */
-int stm32_flash_read(rt_uint32_t addr, rt_uint8_t *buf, size_t size)
-{
- size_t i;
-
- if ((addr + size) > STM32_FLASH_END_ADDRESS)
- {
- LOG_E("read outrange flash size! addr is (0x%p)", (void*)(addr + size));
- return -RT_EINVAL;
- }
-
- for (i = 0; i < size; i++, buf++, addr++)
- {
- *buf = *(rt_uint8_t *) addr;
- }
-
- return size;
-}
-
-/**
- * Write data to flash.
- * @note This operation's units is word.
- * @note This operation must after erase. @see flash_erase.
- *
- * @param addr flash address
- * @param buf the write data buffer
- * @param size write bytes size
- *
- * @return result
- */
-
-int stm32_flash_write(rt_uint32_t addr, const uint8_t *buf, size_t size)
-{
- size_t i, j;
- rt_err_t result = 0;
- rt_uint64_t write_data = 0, temp_data = 0;
-
- if ((addr + size) > STM32_FLASH_END_ADDRESS)
- {
- LOG_E("ERROR: write outrange flash size! addr is (0x%p)\n", (void*)(addr + size));
- return -RT_EINVAL;
- }
-
- if(addr % 8 != 0)
- {
- LOG_E("write addr must be 8-byte alignment");
- return -RT_EINVAL;
- }
-
- HAL_FLASH_Unlock();
-
- __HAL_FLASH_CLEAR_FLAG(FLASH_FLAG_EOP | FLASH_FLAG_OPERR | FLASH_FLAG_WRPERR | FLASH_FLAG_PGAERR | FLASH_FLAG_PGSERR);
-
- if (size < 1)
- {
- return -RT_ERROR;
- }
-
- for (i = 0; i < size;)
- {
- if ((size - i) < 8)
- {
- for (j = 0; (size - i) > 0; i++, j++)
- {
- temp_data = *buf;
- write_data = (write_data) | (temp_data << 8 * j);
- buf ++;
- }
- }
- else
- {
- for (j = 0; j < 8; j++, i++)
- {
- temp_data = *buf;
- write_data = (write_data) | (temp_data << 8 * j);
- buf ++;
- }
- }
-
- /* write data */
- if (HAL_FLASH_Program(FLASH_TYPEPROGRAM_DOUBLEWORD, addr, write_data) == HAL_OK)
- {
- /* Check the written value */
- if (*(uint64_t*)addr != write_data)
- {
- LOG_E("ERROR: write data != read data\n");
- result = -RT_ERROR;
- goto __exit;
- }
- }
- else
- {
- result = -RT_ERROR;
- goto __exit;
- }
-
- temp_data = 0;
- write_data = 0;
-
- addr += 8;
- }
-
-__exit:
- HAL_FLASH_Lock();
- if (result != 0)
- {
- return result;
- }
-
- return size;
-}
-
-/**
- * Erase data on flash.
- * @note This operation is irreversible.
- * @note This operation's units is different which on many chips.
- *
- * @param addr flash address
- * @param size erase bytes size
- *
- * @return result
- */
-int stm32_flash_erase(rt_uint32_t addr, size_t size)
-{
- rt_err_t result = RT_EOK;
- uint32_t FirstPage = 0, NbOfPages = 0, BankNumber = 0;
- uint32_t PAGEError = 0;
-
- if ((addr + size) > STM32_FLASH_END_ADDRESS)
- {
- LOG_E("ERROR: erase outrange flash size! addr is (0x%p)\n", (void*)(addr + size));
- return -RT_EINVAL;
- }
-
- /*Variable used for Erase procedure*/
- FLASH_EraseInitTypeDef EraseInitStruct;
- /* Unlock the Flash to enable the flash control register access *************/
- HAL_FLASH_Unlock();
-
- /* Clear OPTVERR bit set on virgin samples */
- __HAL_FLASH_CLEAR_FLAG(FLASH_FLAG_OPTVERR);
- /* Get the 1st page to erase */
- FirstPage = GetPage(addr);
- /* Get the number of pages to erase from 1st page */
- NbOfPages = GetPage(addr + size - 1) - FirstPage + 1;
- /* Get the bank */
- BankNumber = GetBank(addr);
- /* Fill EraseInit structure*/
- EraseInitStruct.TypeErase = FLASH_TYPEERASE_PAGES;
- EraseInitStruct.Banks = BankNumber;
- EraseInitStruct.Page = FirstPage;
- EraseInitStruct.NbPages = NbOfPages;
-
- if (HAL_FLASHEx_Erase(&EraseInitStruct, &PAGEError) != HAL_OK)
- {
- result = -RT_ERROR;
- goto __exit;
- }
-
-__exit:
- HAL_FLASH_Lock();
-
- if (result != RT_EOK)
- {
- return result;
- }
-
- LOG_D("erase done: addr (0x%p), size %d", (void*)addr, size);
- return size;
-}
-
-#if defined(PKG_USING_FAL)
-
-static int fal_flash_read(long offset, rt_uint8_t *buf, size_t size);
-static int fal_flash_write(long offset, const rt_uint8_t *buf, size_t size);
-static int fal_flash_erase(long offset, size_t size);
-
-const struct fal_flash_dev stm32_onchip_flash = { "onchip_flash", STM32_FLASH_START_ADRESS, STM32_FLASH_SIZE, FLASH_PAGE_SIZE, {NULL, fal_flash_read, fal_flash_write, fal_flash_erase} };
-
-static int fal_flash_read(long offset, rt_uint8_t *buf, size_t size)
-{
- return stm32_flash_read(stm32_onchip_flash.addr + offset, buf, size);
-}
-
-static int fal_flash_write(long offset, const rt_uint8_t *buf, size_t size)
-{
- return stm32_flash_write(stm32_onchip_flash.addr + offset, buf, size);
-}
-
-static int fal_flash_erase(long offset, size_t size)
-{
- return stm32_flash_erase(stm32_onchip_flash.addr + offset, size);
-}
-
-#endif
-#endif /* BSP_USING_ON_CHIP_FLASH */
diff --git a/bsp/fm33lc0xx/libraries/HAL_Drivers/drv_flash/drv_flash_wb.c b/bsp/fm33lc0xx/libraries/HAL_Drivers/drv_flash/drv_flash_wb.c
deleted file mode 100644
index d818e47d8c84de1018994fa11b5109576f7ca9d4..0000000000000000000000000000000000000000
--- a/bsp/fm33lc0xx/libraries/HAL_Drivers/drv_flash/drv_flash_wb.c
+++ /dev/null
@@ -1,231 +0,0 @@
-/*
- * Copyright (c) 2006-2018, RT-Thread Development Team
- *
- * SPDX-License-Identifier: Apache-2.0
- *
- * Change Logs:
- * Date Author Notes
- * 2020-10-14 Dozingfiretruck first version
- */
-
-#include "board.h"
-
-#ifdef BSP_USING_ON_CHIP_FLASH
-#include "drv_config.h"
-#include "drv_flash.h"
-
-#if defined(PKG_USING_FAL)
-#include "fal.h"
-#endif
-
-//#define DRV_DEBUG
-#define LOG_TAG "drv.flash"
-#include
-
-/**
- * @brief Gets the page of a given address
- * @param Addr: Address of the FLASH Memory
- * @retval The page of a given address
- */
-static uint32_t GetPage(uint32_t addr)
-{
- uint32_t page = 0;
- page = RT_ALIGN_DOWN(addr-STM32_FLASH_START_ADRESS, FLASH_PAGE_SIZE)/FLASH_PAGE_SIZE;
- return page;
-}
-
-/**
- * Read data from flash.
- * @note This operation's units is word.
- *
- * @param addr flash address
- * @param buf buffer to store read data
- * @param size read bytes size
- *
- * @return result
- */
-int stm32_flash_read(rt_uint32_t addr, rt_uint8_t *buf, size_t size)
-{
- size_t i;
-
- if ((addr + size) > STM32_FLASH_END_ADDRESS)
- {
- LOG_E("read outrange flash size! addr is (0x%p)", (void*)(addr + size));
- return -RT_EINVAL;
- }
-
- for (i = 0; i < size; i++, buf++, addr++)
- {
- *buf = *(rt_uint8_t *) addr;
- }
-
- return size;
-}
-
-/**
- * Write data to flash.
- * @note This operation's units is word.
- * @note This operation must after erase. @see flash_erase.
- *
- * @param addr flash address
- * @param buf the write data buffer
- * @param size write bytes size
- *
- * @return result
- */
-
-int stm32_flash_write(rt_uint32_t addr, const uint8_t *buf, size_t size)
-{
- size_t i, j;
- rt_err_t result = 0;
- rt_uint64_t write_data = 0, temp_data = 0;
-
- if ((addr + size) > STM32_FLASH_END_ADDRESS)
- {
- LOG_E("ERROR: write outrange flash size! addr is (0x%p)\n", (void*)(addr + size));
- return -RT_EINVAL;
- }
-
- if(addr % 8 != 0)
- {
- LOG_E("write addr must be 8-byte alignment");
- return -RT_EINVAL;
- }
-
- HAL_FLASH_Unlock();
-
- __HAL_FLASH_CLEAR_FLAG(FLASH_FLAG_EOP | FLASH_FLAG_OPERR | FLASH_FLAG_WRPERR | FLASH_FLAG_PGAERR | FLASH_FLAG_PGSERR);
-
- if (size < 1)
- {
- return -RT_ERROR;
- }
-
- for (i = 0; i < size;)
- {
- if ((size - i) < 8)
- {
- for (j = 0; (size - i) > 0; i++, j++)
- {
- temp_data = *buf;
- write_data = (write_data) | (temp_data << 8 * j);
- buf ++;
- }
- }
- else
- {
- for (j = 0; j < 8; j++, i++)
- {
- temp_data = *buf;
- write_data = (write_data) | (temp_data << 8 * j);
- buf ++;
- }
- }
-
- /* write data */
- if (HAL_FLASH_Program(FLASH_TYPEPROGRAM_DOUBLEWORD, addr, write_data) == HAL_OK)
- {
- /* Check the written value */
- if (*(uint64_t*)addr != write_data)
- {
- LOG_E("ERROR: write data != read data\n");
- result = -RT_ERROR;
- goto __exit;
- }
- }
- else
- {
- result = -RT_ERROR;
- goto __exit;
- }
-
- temp_data = 0;
- write_data = 0;
-
- addr += 8;
- }
-
-__exit:
- HAL_FLASH_Lock();
- if (result != 0)
- {
- return result;
- }
-
- return size;
-}
-
-/**
- * Erase data on flash.
- * @note This operation is irreversible.
- * @note This operation's units is different which on many chips.
- *
- * @param addr flash address
- * @param size erase bytes size
- *
- * @return result
- */
-int stm32_flash_erase(rt_uint32_t addr, size_t size)
-{
- rt_err_t result = RT_EOK;
- uint32_t PAGEError = 0;
-
- /*Variable used for Erase procedure*/
- FLASH_EraseInitTypeDef EraseInitStruct;
-
- if ((addr + size) > STM32_FLASH_END_ADDRESS)
- {
- LOG_E("ERROR: erase outrange flash size! addr is (0x%p)\n", (void *)(addr + size));
- return -RT_EINVAL;
- }
-
- HAL_FLASH_Unlock();
-
- /* Fill EraseInit structure*/
- EraseInitStruct.TypeErase = FLASH_TYPEERASE_PAGES;
- EraseInitStruct.Page = GetPage(addr);
- EraseInitStruct.NbPages = (size + FLASH_PAGE_SIZE - 1) / FLASH_PAGE_SIZE;
-
- if (HAL_FLASHEx_Erase(&EraseInitStruct, &PAGEError) != HAL_OK)
- {
- result = -RT_ERROR;
- goto __exit;
- }
-
-__exit:
- HAL_FLASH_Lock();
-
- if (result != RT_EOK)
- {
- return result;
- }
-
- LOG_D("erase done: addr (0x%p), size %d", (void*)addr, size);
- return size;
-}
-
-#if defined(PKG_USING_FAL)
-
-static int fal_flash_read(long offset, rt_uint8_t *buf, size_t size);
-static int fal_flash_write(long offset, const rt_uint8_t *buf, size_t size);
-static int fal_flash_erase(long offset, size_t size);
-
-const struct fal_flash_dev stm32_onchip_flash = { "onchip_flash", STM32_FLASH_START_ADRESS, STM32_FLASH_SIZE, FLASH_PAGE_SIZE, {NULL, fal_flash_read, fal_flash_write, fal_flash_erase} };
-
-static int fal_flash_read(long offset, rt_uint8_t *buf, size_t size)
-{
- return stm32_flash_read(stm32_onchip_flash.addr + offset, buf, size);
-}
-
-static int fal_flash_write(long offset, const rt_uint8_t *buf, size_t size)
-{
- return stm32_flash_write(stm32_onchip_flash.addr + offset, buf, size);
-}
-
-static int fal_flash_erase(long offset, size_t size)
-{
- return stm32_flash_erase(stm32_onchip_flash.addr + offset, size);
-}
-
-#endif
-#endif /* BSP_USING_ON_CHIP_FLASH */
diff --git a/bsp/fm33lc0xx/project.uvoptx b/bsp/fm33lc0xx/project.uvoptx
deleted file mode 100644
index 43bac7d482c0629a90c3f2771257458492ddae41..0000000000000000000000000000000000000000
--- a/bsp/fm33lc0xx/project.uvoptx
+++ /dev/null
@@ -1,852 +0,0 @@
-
-
-
- 1.0
-
- ### uVision Project, (C) Keil Software
-
-
- *.c
- *.s*; *.src; *.a*
- *.obj; *.o
- *.lib
- *.txt; *.h; *.inc
- *.plm
- *.cpp
- 0
-
-
-
- 0
- 0
-
-
-
- RT_Thread
- 0x4
- ARM-ADS
-
- 12000000
-
- 1
- 1
- 0
- 1
- 0
-
-
- 1
- 65535
- 0
- 0
- 0
-
-
- 79
- 66
- 8
- .\build\keil\List\
-
-
- 1
- 1
- 1
- 0
- 1
- 1
- 0
- 1
- 0
- 0
- 0
- 0
-
-
- 1
- 1
- 1
- 1
- 1
- 1
- 1
- 0
- 0
-
-
- 1
- 0
- 1
-
- 255
-
- 0
- 1
- 1
- 1
- 1
- 1
- 1
- 1
- 1
- 1
- 1
- 1
- 1
- 1
- 0
- 1
- 1
- 1
- 1
- 0
- 0
- 1
- 0
- 0
- 3
-
-
-
-
-
-
-
-
-
-
- Segger\JL2CM3.dll
-
-
-
- 0
- JL2CM3
- -U4294967295 -O78 -S2 -ZTIFSpeedSel5000 -A0 -C0 -JU1 -JI127.0.0.1 -JP0 -RST0 -N00("ARM CoreSight SW-DP") -D00(0BB11477) -L00(0) -TO18 -TC10000000 -TP21 -TDS8007 -TDT0 -TDC1F -TIEFFFFFFFF -TIP8 -TB1 -TFE0 -FO15 -FD20000000 -FC1000 -FN1 -FF0FM33LC04X_FLASH256.FLM -FS00 -FL040000 -FP0($$Device:FM33LC04X$Flash\FM33LC04X_FLASH256.FLM)
-
-
- 0
- UL2CM3
- UL2CM3(-S0 -C0 -P0 -FD20000000 -FC1000 -FN1 -FF0FM33LC04X_FLASH256 -FS00 -FL040000 -FP0($$Device:FM33LC04X$Flash\FM33LC04X_FLASH256.FLM))
-
-
-
-
- 0
-
-
- 0
- 0
- 0
- 0
- 0
- 0
- 0
- 0
- 0
- 0
- 0
- 0
- 0
- 0
- 0
- 0
- 0
- 0
- 0
- 0
- 0
- 0
- 0
- 0
-
-
-
- 0
- 0
- 0
-
-
-
-
-
-
-
-
-
- 1
- 1
- 0
- 2
- 5000000
-
-
-
-
-
- Applications
- 0
- 0
- 0
- 0
-
- 1
- 1
- 1
- 0
- 0
- 0
- applications\main.c
- main.c
- 0
- 0
-
-
-
-
- CPU
- 0
- 0
- 0
- 0
-
- 2
- 2
- 1
- 0
- 0
- 0
- ..\..\libcpu\arm\common\div0.c
- div0.c
- 0
- 0
-
-
- 2
- 3
- 1
- 0
- 0
- 0
- ..\..\libcpu\arm\common\showmem.c
- showmem.c
- 0
- 0
-
-
- 2
- 4
- 1
- 0
- 0
- 0
- ..\..\libcpu\arm\common\backtrace.c
- backtrace.c
- 0
- 0
-
-
- 2
- 5
- 2
- 0
- 0
- 0
- ..\..\libcpu\arm\cortex-m0\context_rvds.S
- context_rvds.S
- 0
- 0
-
-
- 2
- 6
- 1
- 0
- 0
- 0
- ..\..\libcpu\arm\cortex-m0\cpuport.c
- cpuport.c
- 0
- 0
-
-
-
-
- DeviceDrivers
- 0
- 0
- 0
- 0
-
- 3
- 7
- 1
- 0
- 0
- 0
- ..\..\components\drivers\serial\serial.c
- serial.c
- 0
- 0
-
-
- 3
- 8
- 1
- 0
- 0
- 0
- ..\..\components\drivers\src\ringbuffer.c
- ringbuffer.c
- 0
- 0
-
-
- 3
- 9
- 1
- 0
- 0
- 0
- ..\..\components\drivers\src\ringblk_buf.c
- ringblk_buf.c
- 0
- 0
-
-
- 3
- 10
- 1
- 0
- 0
- 0
- ..\..\components\drivers\src\waitqueue.c
- waitqueue.c
- 0
- 0
-
-
- 3
- 11
- 1
- 0
- 0
- 0
- ..\..\components\drivers\src\workqueue.c
- workqueue.c
- 0
- 0
-
-
- 3
- 12
- 1
- 0
- 0
- 0
- ..\..\components\drivers\src\completion.c
- completion.c
- 0
- 0
-
-
- 3
- 13
- 1
- 0
- 0
- 0
- ..\..\components\drivers\src\pipe.c
- pipe.c
- 0
- 0
-
-
- 3
- 14
- 1
- 0
- 0
- 0
- ..\..\components\drivers\src\dataqueue.c
- dataqueue.c
- 0
- 0
-
-
-
-
- Drivers
- 0
- 0
- 0
- 0
-
- 4
- 15
- 2
- 0
- 0
- 0
- libraries\FM\FM33xx\Source\Templates\ARM\startup_fm33lc0xx.s
- startup_fm33lc0xx.s
- 0
- 0
-
-
- 4
- 16
- 1
- 0
- 0
- 0
- board\board.c
- board.c
- 0
- 0
-
-
- 4
- 17
- 1
- 0
- 0
- 0
- libraries\HAL_Drivers\drv_usart.c
- drv_usart.c
- 0
- 0
-
-
- 4
- 18
- 1
- 0
- 0
- 0
- libraries\HAL_Drivers\drv_common.c
- drv_common.c
- 0
- 0
-
-
-
-
- finsh
- 0
- 0
- 0
- 0
-
- 5
- 19
- 1
- 0
- 0
- 0
- ..\..\components\finsh\finsh_node.c
- finsh_node.c
- 0
- 0
-
-
- 5
- 20
- 1
- 0
- 0
- 0
- ..\..\components\finsh\finsh_parser.c
- finsh_parser.c
- 0
- 0
-
-
- 5
- 21
- 1
- 0
- 0
- 0
- ..\..\components\finsh\cmd.c
- cmd.c
- 0
- 0
-
-
- 5
- 22
- 1
- 0
- 0
- 0
- ..\..\components\finsh\msh.c
- msh.c
- 0
- 0
-
-
- 5
- 23
- 1
- 0
- 0
- 0
- ..\..\components\finsh\finsh_vm.c
- finsh_vm.c
- 0
- 0
-
-
- 5
- 24
- 1
- 0
- 0
- 0
- ..\..\components\finsh\shell.c
- shell.c
- 0
- 0
-
-
- 5
- 25
- 1
- 0
- 0
- 0
- ..\..\components\finsh\finsh_var.c
- finsh_var.c
- 0
- 0
-
-
- 5
- 26
- 1
- 0
- 0
- 0
- ..\..\components\finsh\finsh_compiler.c
- finsh_compiler.c
- 0
- 0
-
-
- 5
- 27
- 1
- 0
- 0
- 0
- ..\..\components\finsh\finsh_heap.c
- finsh_heap.c
- 0
- 0
-
-
- 5
- 28
- 1
- 0
- 0
- 0
- ..\..\components\finsh\finsh_ops.c
- finsh_ops.c
- 0
- 0
-
-
- 5
- 29
- 1
- 0
- 0
- 0
- ..\..\components\finsh\finsh_error.c
- finsh_error.c
- 0
- 0
-
-
- 5
- 30
- 1
- 0
- 0
- 0
- ..\..\components\finsh\finsh_token.c
- finsh_token.c
- 0
- 0
-
-
- 5
- 31
- 1
- 0
- 0
- 0
- ..\..\components\finsh\finsh_init.c
- finsh_init.c
- 0
- 0
-
-
-
-
- FM33LC0xx_FL_Driver
- 0
- 0
- 0
- 0
-
- 6
- 32
- 1
- 0
- 0
- 0
- libraries\FM33LC0xx_FL_Driver\Src\fm33lc0xx_fl_rcc.c
- fm33lc0xx_fl_rcc.c
- 0
- 0
-
-
- 6
- 33
- 1
- 0
- 0
- 0
- libraries\FM33LC0xx_FL_Driver\Src\fm33lc0xx_fl_crc.c
- fm33lc0xx_fl_crc.c
- 0
- 0
-
-
- 6
- 34
- 1
- 0
- 0
- 0
- libraries\FM33LC0xx_FL_Driver\Src\fm33lc0xx_fl_uart.c
- fm33lc0xx_fl_uart.c
- 0
- 0
-
-
- 6
- 35
- 1
- 0
- 0
- 0
- libraries\FM33LC0xx_FL_Driver\Src\fm33lc0xx_fl_lpuart.c
- fm33lc0xx_fl_lpuart.c
- 0
- 0
-
-
- 6
- 36
- 1
- 0
- 0
- 0
- libraries\FM33LC0xx_FL_Driver\Src\fm33lc0xx_fl_gpio.c
- fm33lc0xx_fl_gpio.c
- 0
- 0
-
-
- 6
- 37
- 1
- 0
- 0
- 0
- libraries\FM33LC0xx_FL_Driver\Src\fm33lc0xx_fl_dma.c
- fm33lc0xx_fl_dma.c
- 0
- 0
-
-
- 6
- 38
- 1
- 0
- 0
- 0
- libraries\FM33LC0xx_FL_Driver\CMSIS\system_fm33lc0xx.c
- system_fm33lc0xx.c
- 0
- 0
-
-
-
-
- Kernel
- 0
- 0
- 0
- 0
-
- 7
- 39
- 1
- 0
- 0
- 0
- ..\..\src\components.c
- components.c
- 0
- 0
-
-
- 7
- 40
- 1
- 0
- 0
- 0
- ..\..\src\mempool.c
- mempool.c
- 0
- 0
-
-
- 7
- 41
- 1
- 0
- 0
- 0
- ..\..\src\timer.c
- timer.c
- 0
- 0
-
-
- 7
- 42
- 1
- 0
- 0
- 0
- ..\..\src\kservice.c
- kservice.c
- 0
- 0
-
-
- 7
- 43
- 1
- 0
- 0
- 0
- ..\..\src\idle.c
- idle.c
- 0
- 0
-
-
- 7
- 44
- 1
- 0
- 0
- 0
- ..\..\src\object.c
- object.c
- 0
- 0
-
-
- 7
- 45
- 1
- 0
- 0
- 0
- ..\..\src\thread.c
- thread.c
- 0
- 0
-
-
- 7
- 46
- 1
- 0
- 0
- 0
- ..\..\src\ipc.c
- ipc.c
- 0
- 0
-
-
- 7
- 47
- 1
- 0
- 0
- 0
- ..\..\src\irq.c
- irq.c
- 0
- 0
-
-
- 7
- 48
- 1
- 0
- 0
- 0
- ..\..\src\mem.c
- mem.c
- 0
- 0
-
-
- 7
- 49
- 1
- 0
- 0
- 0
- ..\..\src\clock.c
- clock.c
- 0
- 0
-
-
- 7
- 50
- 1
- 0
- 0
- 0
- ..\..\src\scheduler.c
- scheduler.c
- 0
- 0
-
-
- 7
- 51
- 1
- 0
- 0
- 0
- ..\..\src\device.c
- device.c
- 0
- 0
-
-
-
-
diff --git a/bsp/fm33lc0xx/template.uvoptx b/bsp/fm33lc0xx/template.uvoptx
deleted file mode 100644
index a0158b05f7ac6fc524237bc7465c4f395fb17069..0000000000000000000000000000000000000000
--- a/bsp/fm33lc0xx/template.uvoptx
+++ /dev/null
@@ -1,184 +0,0 @@
-
-
-
- 1.0
-
- ### uVision Project, (C) Keil Software
-
-
- *.c
- *.s*; *.src; *.a*
- *.obj; *.o
- *.lib
- *.txt; *.h; *.inc
- *.plm
- *.cpp
- 0
-
-
-
- 0
- 0
-
-
-
- RT_Thread
- 0x4
- ARM-ADS
-
- 12000000
-
- 1
- 1
- 0
- 1
- 0
-
-
- 1
- 65535
- 0
- 0
- 0
-
-
- 79
- 66
- 8
- .\build\keil\List\
-
-
- 1
- 1
- 1
- 0
- 1
- 1
- 0
- 1
- 0
- 0
- 0
- 0
-
-
- 1
- 1
- 1
- 1
- 1
- 1
- 1
- 0
- 0
-
-
- 0
- 0
- 1
-
- 255
-
- 0
- 1
- 1
- 1
- 1
- 1
- 1
- 1
- 1
- 1
- 1
- 1
- 1
- 1
- 0
- 1
- 1
- 1
- 1
- 0
- 0
- 1
- 0
- 0
- 3
-
-
-
-
-
-
-
-
-
-
- Segger\JL2CM3.dll
-
-
-
- 0
- JL2CM3
- -U4294967295 -O78 -S2 -ZTIFSpeedSel5000 -A0 -C0 -JU1 -JI127.0.0.1 -JP0 -RST0 -N00("ARM CoreSight SW-DP") -D00(0BB11477) -L00(0) -TO18 -TC10000000 -TP21 -TDS8007 -TDT0 -TDC1F -TIEFFFFFFFF -TIP8 -TB1 -TFE0 -FO15 -FD20000000 -FC1000 -FN1 -FF0FM33LC04X_FLASH256.FLM -FS00 -FL040000 -FP0($$Device:FM33LC04X$Flash\FM33LC04X_FLASH256.FLM)
-
-
- 0
- UL2CM3
- UL2CM3(-S0 -C0 -P0 -FD20000000 -FC1000 -FN1 -FF0FM33LC04X_FLASH256 -FS00 -FL040000 -FP0($$Device:FM33LC04X$Flash\FM33LC04X_FLASH256.FLM))
-
-
-
-
- 0
-
-
- 0
- 0
- 0
- 0
- 0
- 0
- 0
- 0
- 0
- 0
- 0
- 0
- 0
- 0
- 0
- 0
- 0
- 0
- 0
- 0
- 0
- 0
- 0
- 0
-
-
-
- 0
- 0
- 0
-
-
-
-
-
-
-
-
-
- 1
- 1
- 0
- 2
- 5000000
-
-
-
-
-