diff --git a/bsp/synwit/.gitignore b/bsp/synwit/.gitignore
new file mode 100644
index 0000000000..19ce2fe93c
--- /dev/null
+++ b/bsp/synwit/.gitignore
@@ -0,0 +1,4 @@
+*.uvguix.*
+JLinkLog.txt
+JLinkSettings.ini
+EventRecorderStub.scvd
diff --git a/bsp/synwit/swm320/.config b/bsp/synwit/swm320/.config
index 2c553f70f7..66e80ba29c 100644
--- a/bsp/synwit/swm320/.config
+++ b/bsp/synwit/swm320/.config
@@ -9,8 +9,10 @@
CONFIG_RT_NAME_MAX=8
# CONFIG_RT_USING_ARCH_DATA_TYPE is not set
# CONFIG_RT_USING_SMART is not set
+# CONFIG_RT_USING_NANO is not set
# CONFIG_RT_USING_AMP is not set
# CONFIG_RT_USING_SMP is not set
+CONFIG_RT_CPUS_NR=1
CONFIG_RT_ALIGN_SIZE=8
# CONFIG_RT_THREAD_PRIORITY_8 is not set
CONFIG_RT_THREAD_PRIORITY_32=y
@@ -35,7 +37,7 @@ CONFIG_IDLE_THREAD_STACK_SIZE=256
CONFIG_RT_USING_DEBUG=y
CONFIG_RT_DEBUGING_COLOR=y
CONFIG_RT_DEBUGING_CONTEXT=y
-# CONFIG_RT_DEBUGING_INIT is not set
+# CONFIG_RT_DEBUGING_AUTO_INIT is not set
#
# Inter-Thread communication
@@ -66,19 +68,15 @@ CONFIG_RT_USING_MEMHEAP_AUTO_BINDING=y
# CONFIG_RT_USING_MEMTRACE is not set
# CONFIG_RT_USING_HEAP_ISR is not set
CONFIG_RT_USING_HEAP=y
-
-#
-# Kernel Device Object
-#
CONFIG_RT_USING_DEVICE=y
# CONFIG_RT_USING_DEVICE_OPS is not set
-# CONFIG_RT_USING_DM is not set
# CONFIG_RT_USING_INTERRUPT_INFO is not set
CONFIG_RT_USING_CONSOLE=y
CONFIG_RT_CONSOLEBUF_SIZE=128
CONFIG_RT_CONSOLE_DEVICE_NAME="uart1"
-CONFIG_RT_VER_NUM=0x50002
+CONFIG_RT_VER_NUM=0x50100
# CONFIG_RT_USING_STDC_ATOMIC is not set
+CONFIG_RT_BACKTRACE_LEVEL_MAX_NR=32
# CONFIG_RT_USING_CACHE is not set
CONFIG_RT_USING_HW_ATOMIC=y
# CONFIG_ARCH_ARM_BOOTWITH_FLUSH_CACHE is not set
@@ -122,6 +120,7 @@ CONFIG_FINSH_USING_OPTION_COMPLETION=y
#
# Device Drivers
#
+# CONFIG_RT_USING_DM is not set
CONFIG_RT_USING_DEVICE_IPC=y
CONFIG_RT_UNAMED_PIPE_NUMBER=64
# CONFIG_RT_USING_SYSTEM_WORKQUEUE is not set
@@ -145,7 +144,6 @@ CONFIG_RT_USING_PIN=y
# CONFIG_RT_USING_MTD_NOR is not set
# CONFIG_RT_USING_MTD_NAND is not set
# CONFIG_RT_USING_PM is not set
-# CONFIG_RT_USING_FDT is not set
# CONFIG_RT_USING_RTC is not set
# CONFIG_RT_USING_SDIO is not set
# CONFIG_RT_USING_SPI is not set
@@ -216,6 +214,12 @@ CONFIG_RT_LIBC_TZ_DEFAULT_SEC=0
# CONFIG_RT_USING_LWIP is not set
# CONFIG_RT_USING_AT is not set
+#
+# Memory protection
+#
+# CONFIG_RT_USING_MEM_PROTECTION is not set
+# CONFIG_RT_USING_HW_STACK_GUARD is not set
+
#
# Utilities
#
@@ -268,6 +272,21 @@ CONFIG_RT_LIBC_TZ_DEFAULT_SEC=0
#
# CONFIG_PKG_USING_WLAN_WICED is not set
# CONFIG_PKG_USING_RW007 is not set
+
+#
+# CYW43012 WiFi
+#
+# CONFIG_PKG_USING_WLAN_CYW43012 is not set
+
+#
+# BL808 WiFi
+#
+# CONFIG_PKG_USING_WLAN_BL808 is not set
+
+#
+# CYW43439 WiFi
+#
+# CONFIG_PKG_USING_WLAN_CYW43439 is not set
# CONFIG_PKG_USING_COAP is not set
# CONFIG_PKG_USING_NOPOLL is not set
# CONFIG_PKG_USING_NETUTILS is not set
@@ -289,7 +308,6 @@ CONFIG_RT_LIBC_TZ_DEFAULT_SEC=0
# CONFIG_PKG_USING_JIOT-C-SDK is not set
# CONFIG_PKG_USING_UCLOUD_IOT_SDK is not set
# CONFIG_PKG_USING_JOYLINK is not set
-# CONFIG_PKG_USING_EZ_IOT_OS is not set
# CONFIG_PKG_USING_IOTSHARP_SDK is not set
# CONFIG_PKG_USING_NIMBLE is not set
# CONFIG_PKG_USING_LLSYNC_SDK_ADAPTER is not set
@@ -310,6 +328,8 @@ CONFIG_RT_LIBC_TZ_DEFAULT_SEC=0
# CONFIG_PKG_USING_NMEALIB is not set
# CONFIG_PKG_USING_PDULIB is not set
# CONFIG_PKG_USING_BTSTACK is not set
+# CONFIG_PKG_USING_BT_CYW43012 is not set
+# CONFIG_PKG_USING_CYW43XX is not set
# CONFIG_PKG_USING_LORAWAN_ED_STACK is not set
# CONFIG_PKG_USING_WAYZ_IOTKIT is not set
# CONFIG_PKG_USING_MAVLINK is not set
@@ -329,6 +349,8 @@ CONFIG_RT_LIBC_TZ_DEFAULT_SEC=0
# CONFIG_PKG_USING_ZFTP is not set
# CONFIG_PKG_USING_WOL is not set
# CONFIG_PKG_USING_ZEPHYR_POLLING is not set
+# CONFIG_PKG_USING_MATTER_ADAPTATION_LAYER is not set
+# CONFIG_PKG_USING_LHC_MODBUS is not set
#
# security packages
@@ -375,7 +397,6 @@ CONFIG_RT_LIBC_TZ_DEFAULT_SEC=0
# LVGL: powerful and easy-to-use embedded GUI library
#
# CONFIG_PKG_USING_LVGL is not set
-# CONFIG_PKG_USING_LITTLEVGL2RTT is not set
# CONFIG_PKG_USING_LV_MUSIC_DEMO is not set
# CONFIG_PKG_USING_GUI_GUIDER_DEMO is not set
@@ -452,6 +473,7 @@ CONFIG_RT_LIBC_TZ_DEFAULT_SEC=0
# CONFIG_PKG_USING_ARMV7M_DWT_TOOL is not set
# CONFIG_PKG_USING_VOFA_PLUS is not set
# CONFIG_PKG_USING_RT_TRACE is not set
+# CONFIG_PKG_USING_ZDEBUG is not set
#
# system packages
@@ -488,6 +510,8 @@ CONFIG_RT_LIBC_TZ_DEFAULT_SEC=0
# CONFIG_PKG_USING_UC_COMMON is not set
# CONFIG_PKG_USING_UC_MODBUS is not set
# CONFIG_PKG_USING_FREERTOS_WRAPPER is not set
+# CONFIG_PKG_USING_LITEOS_SDK is not set
+# CONFIG_PKG_USING_TZ_DATABASE is not set
# CONFIG_PKG_USING_CAIRO is not set
# CONFIG_PKG_USING_PIXMAN is not set
# CONFIG_PKG_USING_PARTITION is not set
@@ -511,6 +535,7 @@ CONFIG_RT_LIBC_TZ_DEFAULT_SEC=0
# CONFIG_PKG_USING_QBOOT is not set
# CONFIG_PKG_USING_PPOOL is not set
# CONFIG_PKG_USING_OPENAMP is not set
+# CONFIG_PKG_USING_RPMSG_LITE is not set
# CONFIG_PKG_USING_LPM is not set
# CONFIG_PKG_USING_TLSF is not set
# CONFIG_PKG_USING_EVENT_RECORDER is not set
@@ -524,6 +549,11 @@ CONFIG_RT_LIBC_TZ_DEFAULT_SEC=0
# CONFIG_PKG_USING_AGILE_UPGRADE is not set
# CONFIG_PKG_USING_FLASH_BLOB is not set
# CONFIG_PKG_USING_MLIBC is not set
+# CONFIG_PKG_USING_TASK_MSG_BUS is not set
+# CONFIG_PKG_USING_SFDB is not set
+# CONFIG_PKG_USING_RTP is not set
+# CONFIG_PKG_USING_REB is not set
+# CONFIG_PKG_USING_R_RHEALSTONE is not set
#
# peripheral libraries and drivers
@@ -588,6 +618,7 @@ CONFIG_RT_LIBC_TZ_DEFAULT_SEC=0
# CONFIG_PKG_USING_BALANCE is not set
# CONFIG_PKG_USING_SHT2X is not set
# CONFIG_PKG_USING_SHT3X is not set
+# CONFIG_PKG_USING_SHT4X is not set
# CONFIG_PKG_USING_AD7746 is not set
# CONFIG_PKG_USING_ADT74XX is not set
# CONFIG_PKG_USING_MAX17048 is not set
@@ -688,6 +719,11 @@ CONFIG_RT_LIBC_TZ_DEFAULT_SEC=0
# CONFIG_PKG_USING_FINGERPRINT is not set
# CONFIG_PKG_USING_BT_ECB02C is not set
# CONFIG_PKG_USING_UAT is not set
+# CONFIG_PKG_USING_ST7789 is not set
+# CONFIG_PKG_USING_VS1003 is not set
+# CONFIG_PKG_USING_X9555 is not set
+# CONFIG_PKG_USING_SYSTEM_RUN_LED is not set
+# CONFIG_PKG_USING_BT_MX01 is not set
# CONFIG_PKG_USING_SPI_TOOLS is not set
#
@@ -702,6 +738,7 @@ CONFIG_RT_LIBC_TZ_DEFAULT_SEC=0
# CONFIG_PKG_USING_ULAPACK is not set
# CONFIG_PKG_USING_QUEST is not set
# CONFIG_PKG_USING_NAXOS is not set
+# CONFIG_PKG_USING_R_TINYMAIX is not set
#
# Signal Processing and Control Algorithm Packages
@@ -711,6 +748,7 @@ CONFIG_RT_LIBC_TZ_DEFAULT_SEC=0
# CONFIG_PKG_USING_UKAL is not set
# CONFIG_PKG_USING_DIGITALCTRL is not set
# CONFIG_PKG_USING_KISSFFT is not set
+# CONFIG_PKG_USING_CMSIS_DSP is not set
#
# miscellaneous packages
@@ -742,12 +780,14 @@ CONFIG_RT_LIBC_TZ_DEFAULT_SEC=0
# CONFIG_PKG_USING_DONUT is not set
# CONFIG_PKG_USING_COWSAY is not set
# CONFIG_PKG_USING_MORSE is not set
+# CONFIG_PKG_USING_TINYSQUARE is not set
# CONFIG_PKG_USING_LIBCSV is not set
# CONFIG_PKG_USING_OPTPARSE is not set
# CONFIG_PKG_USING_FASTLZ is not set
# CONFIG_PKG_USING_MINILZO is not set
# CONFIG_PKG_USING_QUICKLZ is not set
# CONFIG_PKG_USING_LZMA is not set
+# CONFIG_PKG_USING_RALARAM is not set
# CONFIG_PKG_USING_MULTIBUTTON is not set
# CONFIG_PKG_USING_FLEXIBLE_BUTTON is not set
# CONFIG_PKG_USING_CANFESTIVAL is not set
@@ -932,6 +972,7 @@ CONFIG_RT_LIBC_TZ_DEFAULT_SEC=0
#
# CONFIG_PKG_USING_ARDUINO_ADAFRUIT_GFX_LIBRARY is not set
# CONFIG_PKG_USING_ARDUINO_U8G2 is not set
+# CONFIG_PKG_USING_ARDUINO_TFT_ESPI is not set
# CONFIG_PKG_USING_ARDUINO_ADAFRUIT_ST7735 is not set
# CONFIG_PKG_USING_ARDUINO_ADAFRUIT_SSD1306 is not set
# CONFIG_PKG_USING_ARDUINO_ADAFRUIT_ILI9341 is not set
@@ -940,6 +981,7 @@ CONFIG_RT_LIBC_TZ_DEFAULT_SEC=0
#
# Timing
#
+# CONFIG_PKG_USING_ARDUINO_RTCLIB is not set
# CONFIG_PKG_USING_ARDUINO_MSTIMER2 is not set
# CONFIG_PKG_USING_ARDUINO_TICKER is not set
# CONFIG_PKG_USING_ARDUINO_TASKSCHEDULER is not set
@@ -976,7 +1018,6 @@ CONFIG_RT_LIBC_TZ_DEFAULT_SEC=0
#
# CONFIG_PKG_USING_ARDUINO_ADAFRUIT_MFRC630 is not set
# CONFIG_PKG_USING_ARDUINO_ADAFRUIT_SI5351 is not set
-# CONFIG_PKG_USING_ARDUINO_RTCLIB is not set
#
# Signal IO
diff --git a/bsp/synwit/swm320/drivers/drv_rtc.c b/bsp/synwit/swm320/drivers/drv_rtc.c
index d19f62625f..379b889a1b 100644
--- a/bsp/synwit/swm320/drivers/drv_rtc.c
+++ b/bsp/synwit/swm320/drivers/drv_rtc.c
@@ -107,7 +107,7 @@ static rt_err_t swm_rtc_configure(void)
rtc_initstruct.MinuteIEn = 0;
RTC_Init(RTC, &rtc_initstruct);
RTC_Start(RTC);
-
+
return RT_EOK;
}
@@ -148,7 +148,7 @@ int swm_rtc_init(void)
rt_err_t result;
swm_rtc_configure();
-
+
swm_rtc_device.ops = &swm_rtc_ops;
result = rt_hw_rtc_register(&swm_rtc_device, "rtc", RT_DEVICE_FLAG_RDWR,RT_NULL);
if (result != RT_EOK)
diff --git a/bsp/synwit/swm320/drivers/drv_sdio.c b/bsp/synwit/swm320/drivers/drv_sdio.c
index 7547d6f305..08a9ae5dbe 100644
--- a/bsp/synwit/swm320/drivers/drv_sdio.c
+++ b/bsp/synwit/swm320/drivers/drv_sdio.c
@@ -118,13 +118,13 @@ static void swm_sdio_wait_completed(struct swm_sdio_device *sdio)
SDIO->CR2 |= (1 << SDIO_CR2_RSTCMD_Pos);
data->err = -RT_ERROR;
}
-
+
if (status & SDIO_IF_CMDTIMEOUT_Msk)
{
SDIO->CR2 |= (1 << SDIO_CR2_RSTCMD_Pos);
cmd->err = -RT_ETIMEOUT;
}
-
+
if (status & SDIO_IF_DATCRCERR_Msk)
{
SDIO->CR2 |= (1 << SDIO_CR2_RSTDAT_Pos);
diff --git a/bsp/synwit/swm320/libraries/SWM320_StdPeriph_Driver/SWM320_flash.c b/bsp/synwit/swm320/libraries/SWM320_StdPeriph_Driver/SWM320_flash.c
index df6506eb5b..de8925e973 100644
--- a/bsp/synwit/swm320/libraries/SWM320_StdPeriph_Driver/SWM320_flash.c
+++ b/bsp/synwit/swm320/libraries/SWM320_StdPeriph_Driver/SWM320_flash.c
@@ -73,7 +73,7 @@ void FLASH_Write(uint32_t addr, uint32_t buff[], uint32_t count)
******************************************************************************************************************************************/
void Flash_Param_at_xMHz(uint32_t x)
{
- __disable_irq();
+// __disable_irq();
switch(x)
{
case 30:
@@ -93,5 +93,5 @@ void Flash_Param_at_xMHz(uint32_t x)
IAP_Flash_Param(0x48a, 0xabfc7a6e);
break;
}
- __enable_irq();
+// __enable_irq();
}
diff --git a/bsp/synwit/swm320/project.ewd b/bsp/synwit/swm320/project.ewd
deleted file mode 100644
index e94c83ed06..0000000000
--- a/bsp/synwit/swm320/project.ewd
+++ /dev/null
@@ -1,2834 +0,0 @@
-
-
- 3
-
- rt-thread
-
- ARM
-
- 1
-
- C-SPY
- 2
-
- 29
- 1
- 1
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- ARMSIM_ID
- 2
-
- 1
- 1
- 1
-
-
-
-
-
-
-
- CADI_ID
- 2
-
- 0
- 1
- 1
-
-
-
-
-
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\Mbed\MbedArmPlugin.ENU.ewplugin
- 0
-
-
- $TOOLKIT_DIR$\plugins\rtos\OpenRTOS\OpenRTOSPlugin.ewplugin
- 0
-
-
- $TOOLKIT_DIR$\plugins\rtos\SafeRTOS\SafeRTOSPlugin.ewplugin
- 0
-
-
- $TOOLKIT_DIR$\plugins\rtos\ThreadX\ThreadXArmPlugin.ENU.ewplugin
- 0
-
-
- $TOOLKIT_DIR$\plugins\rtos\TI-RTOS\tirtosplugin.ewplugin
- 0
-
-
- $TOOLKIT_DIR$\plugins\rtos\uCOS-II\uCOS-II-286-KA-CSpy.ewplugin
- 0
-
-
- $TOOLKIT_DIR$\plugins\rtos\uCOS-II\uCOS-II-KA-CSpy.ewplugin
- 0
-
-
- $TOOLKIT_DIR$\plugins\rtos\uCOS-III\uCOS-III-KA-CSpy.ewplugin
- 0
-
-
- $EW_DIR$\common\plugins\CodeCoverage\CodeCoverage.ENU.ewplugin
- 1
-
-
- $EW_DIR$\common\plugins\IARProbe\IarProbePlugin.ENU.ewplugin
- 0
-
-
- $EW_DIR$\common\plugins\Orti\Orti.ENU.ewplugin
- 0
-
-
- $EW_DIR$\common\plugins\uCProbe\uCProbePlugin.ENU.ewplugin
- 0
-
-
-
-
- Release
-
- ARM
-
- 0
-
- C-SPY
- 2
-
- 29
- 1
- 0
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- ARMSIM_ID
- 2
-
- 1
- 1
- 0
-
-
-
-
-
-
-
- CADI_ID
- 2
-
- 0
- 1
- 0
-
-
-
-
-
-
-
-
- CMSISDAP_ID
- 2
-
- 4
- 1
- 0
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- GDBSERVER_ID
- 2
-
- 0
- 1
- 0
-
-
-
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\plugins\rtos\ThreadX\ThreadXArmPlugin.ENU.ewplugin
- 0
-
-
- $TOOLKIT_DIR$\plugins\rtos\TI-RTOS\tirtosplugin.ewplugin
- 0
-
-
- $TOOLKIT_DIR$\plugins\rtos\uCOS-II\uCOS-II-286-KA-CSpy.ewplugin
- 0
-
-
- $TOOLKIT_DIR$\plugins\rtos\uCOS-II\uCOS-II-KA-CSpy.ewplugin
- 0
-
-
- $TOOLKIT_DIR$\plugins\rtos\uCOS-III\uCOS-III-KA-CSpy.ewplugin
- 0
-
-
- $EW_DIR$\common\plugins\CodeCoverage\CodeCoverage.ENU.ewplugin
- 1
-
-
- $EW_DIR$\common\plugins\IARProbe\IarProbePlugin.ENU.ewplugin
- 0
-
-
- $EW_DIR$\common\plugins\Orti\Orti.ENU.ewplugin
- 0
-
-
- $EW_DIR$\common\plugins\uCProbe\uCProbePlugin.ENU.ewplugin
- 0
-
-
-
-
diff --git a/bsp/synwit/swm320/project.uvopt b/bsp/synwit/swm320/project.uvopt
deleted file mode 100644
index 068ac9af69..0000000000
--- a/bsp/synwit/swm320/project.uvopt
+++ /dev/null
@@ -1,162 +0,0 @@
-
-
-
- 1.0
-
- ### uVision Project, (C) Keil Software
-
-
- *.c
- *.s*; *.src; *.a*
- *.obj
- *.lib
- *.txt; *.h; *.inc
- *.plm
- *.cpp
-
-
-
- 0
- 0
-
-
-
- rtthread
- 0x4
- ARM-ADS
-
- 25000000
-
- 1
- 1
- 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
- 0
- 1
- 1
- 0
- 0
- 0
- 6
-
-
-
-
-
-
-
-
-
-
- Segger\JL2CM3.dll
-
-
-
- 0
- JL2CM3
- -U30000299 -O207 -S0 -A0 -C0 -JU1 -JI127.0.0.1 -JP0 -RST0 -N00("ARM CoreSight SW-DP") -D00(2BA01477) -L00(0) -TO18 -TC10000000 -TP21 -TDS8001 -TDT0 -TDC1F -TIEFFFFFFFF -TIP8 -TB1 -TFE0 -FO15 -FD20000000 -FC800 -FN1 -FF0STM32F4xx_1024 -FS08000000 -FL0100000
-
-
- 0
- UL2CM3
- UL2CM3(-O207 -S0 -C0 -FO7 -FD20000000 -FC800 -FN1 -FF0STM32F4xx_1024 -FS08000000 -FL0100000)
-
-
-
-
- 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
-
-
-
-
-
-
-
diff --git a/bsp/synwit/swm320/project.uvproj b/bsp/synwit/swm320/project.uvproj
deleted file mode 100644
index 9334dead30..0000000000
--- a/bsp/synwit/swm320/project.uvproj
+++ /dev/null
@@ -1,884 +0,0 @@
-
-
- 1.1
- ### uVision Project, (C) Keil Software
-
-
- rtthread
- 0x4
- ARM-ADS
-
-
- STM32F407ZG
- STMicroelectronics
- IRAM(0x20000000-0x2001FFFF) IRAM2(0x10000000-0x1000FFFF) IROM(0x8000000-0x80FFFFF) CLOCK(25000000) CPUTYPE("Cortex-M4") FPU2
-
- "Startup\ST\STM32F4xx\startup_stm32f40_41xxx.s" ("STM32F40/41xxx Startup Code")
- UL2CM3(-O207 -S0 -C0 -FO7 -FD20000000 -FC800 -FN1 -FF0STM32F4xx_1024 -FS08000000 -FL0100000)
- 6105
- stm32f4xx.h
-
-
-
-
-
-
- -DSTM32F40_41xxx
-
-
- SFD\ST\STM32F4xx\STM32F40x.sfr
- 0
- 0
-
-
-
- ST\STM32F4xx\
- ST\STM32F4xx\
-
- 0
- 0
- 0
- 0
- 1
-
- .\build\keil\Obj\
- rt-thread
- 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
-
-
- 1
- 0x8000000
- 0x100000
-
-
- 1
- 0x0
- 0x0
-
-
- 0
- 0x0
- 0x0
-
-
- 0
- 0x0
- 0x0
-
-
- 0
- 0x0
- 0x0
-
-
- 0
- 0x20000000
- 0x20000
-
-
- 0
- 0x10000000
- 0x10000
-
-
-
-
-
- 1
- 1
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 0
- 0
- 0
- 0
- 1
- 0
-
-
- RT_USING_LIBC, RT_USING_ARMLIBC, __STDC_LIMIT_MACROS, __RTTHREAD__, __CLK_TCK=RT_TICK_PER_SECOND
-
- ..\..\..\libcpu\arm\cortex-m4;drivers;..\..\..\include;..\..\..\components\libc\compilers\common\include;..\..\..\components\drivers\include;.;..\..\..\components\drivers\include;..\..\..\components\drivers\include;..\..\..\components\libc\posix\ipc;..\..\..\libcpu\arm\common;..\..\..\components\libc\compilers\common\extension\fcntl\octal;..\..\..\components\finsh;..\..\..\components\libc\posix\io\eventfd;libraries\CMSIS\DeviceSupport;..\..\..\components\drivers\include;..\..\..\components\libc\posix\io\epoll;applications;libraries\SWM320_StdPeriph_Driver;..\..\..\components\libc\posix\io\poll;libraries\CMSIS\CoreSupport;..\..\..\components\libc\compilers\common\extension
-
-
-
- 1
- 0
- 0
- 0
- 0
- 0
- 0
- 0
- 0
-
-
-
-
-
-
-
-
- 0
- 0
- 0
- 0
- 1
- 0
- 0x08000000
- 0x20000000
-
- .\drivers\linker_scripts\link.sct
-
-
-
-
-
-
-
-
-
-
- Applications
-
-
- main.c
- 1
- applications\main.c
-
-
-
-
- Compiler
-
-
- syscall_mem.c
- 1
- ..\..\..\components\libc\compilers\armlibc\syscall_mem.c
-
-
-
-
- syscalls.c
- 1
- ..\..\..\components\libc\compilers\armlibc\syscalls.c
-
-
-
-
- cctype.c
- 1
- ..\..\..\components\libc\compilers\common\cctype.c
-
-
-
-
- cstdlib.c
- 1
- ..\..\..\components\libc\compilers\common\cstdlib.c
-
-
-
-
- cstring.c
- 1
- ..\..\..\components\libc\compilers\common\cstring.c
-
-
-
-
- ctime.c
- 1
- ..\..\..\components\libc\compilers\common\ctime.c
-
-
-
-
- cunistd.c
- 1
- ..\..\..\components\libc\compilers\common\cunistd.c
-
-
-
-
- cwchar.c
- 1
- ..\..\..\components\libc\compilers\common\cwchar.c
-
-
-
-
- CPU
-
-
- atomic_arm.c
- 1
- ..\..\..\libcpu\arm\common\atomic_arm.c
-
-
-
-
- div0.c
- 1
- ..\..\..\libcpu\arm\common\div0.c
-
-
-
-
- showmem.c
- 1
- ..\..\..\libcpu\arm\common\showmem.c
-
-
-
-
- context_rvds.S
- 2
- ..\..\..\libcpu\arm\cortex-m4\context_rvds.S
-
-
-
-
- cpuport.c
- 1
- ..\..\..\libcpu\arm\cortex-m4\cpuport.c
-
-
-
-
- DeviceDrivers
-
-
- device.c
- 1
- ..\..\..\components\drivers\core\device.c
-
-
-
-
- completion.c
- 1
- ..\..\..\components\drivers\ipc\completion.c
-
-
-
-
- dataqueue.c
- 1
- ..\..\..\components\drivers\ipc\dataqueue.c
-
-
-
-
- pipe.c
- 1
- ..\..\..\components\drivers\ipc\pipe.c
-
-
-
-
- ringblk_buf.c
- 1
- ..\..\..\components\drivers\ipc\ringblk_buf.c
-
-
-
-
- ringbuffer.c
- 1
- ..\..\..\components\drivers\ipc\ringbuffer.c
-
-
-
-
- waitqueue.c
- 1
- ..\..\..\components\drivers\ipc\waitqueue.c
-
-
-
-
- workqueue.c
- 1
- ..\..\..\components\drivers\ipc\workqueue.c
-
-
-
-
- pin.c
- 1
- ..\..\..\components\drivers\misc\pin.c
-
-
-
-
- serial.c
- 1
- ..\..\..\components\drivers\serial\serial.c
-
-
-
-
- Drivers
-
-
- drv_gpio.c
- 1
- drivers\drv_gpio.c
-
-
-
-
- drv_uart.c
- 1
- drivers\drv_uart.c
-
-
-
-
- board.c
- 1
- drivers\board.c
-
-
-
-
- Finsh
-
-
- shell.c
- 1
- ..\..\..\components\finsh\shell.c
-
-
-
-
- msh.c
- 1
- ..\..\..\components\finsh\msh.c
-
-
-
-
- msh_parse.c
- 1
- ..\..\..\components\finsh\msh_parse.c
-
-
-
-
- cmd.c
- 1
- ..\..\..\components\finsh\cmd.c
-
-
-
-
- Kernel
-
-
- clock.c
- 1
- ..\..\..\src\clock.c
-
-
-
-
- components.c
- 1
- ..\..\..\src\components.c
-
-
-
-
- idle.c
- 1
- ..\..\..\src\idle.c
-
-
-
-
- ipc.c
- 1
- ..\..\..\src\ipc.c
-
-
-
-
- irq.c
- 1
- ..\..\..\src\irq.c
-
-
-
-
- kservice.c
- 1
- ..\..\..\src\kservice.c
-
-
-
-
- memheap.c
- 1
- ..\..\..\src\memheap.c
-
-
-
-
- mempool.c
- 1
- ..\..\..\src\mempool.c
-
-
-
-
- object.c
- 1
- ..\..\..\src\object.c
-
-
-
-
- scheduler_up.c
- 1
- ..\..\..\src\scheduler_up.c
-
-
-
-
- thread.c
- 1
- ..\..\..\src\thread.c
-
-
-
-
- timer.c
- 1
- ..\..\..\src\timer.c
-
-
-
-
- Libraries
-
-
- SWM320_adc.c
- 1
- libraries\SWM320_StdPeriph_Driver\SWM320_adc.c
-
-
-
-
- SWM320_rtc.c
- 1
- libraries\SWM320_StdPeriph_Driver\SWM320_rtc.c
-
-
-
-
- SWM320_spi.c
- 1
- libraries\SWM320_StdPeriph_Driver\SWM320_spi.c
-
-
-
-
- SWM320_sram.c
- 1
- libraries\SWM320_StdPeriph_Driver\SWM320_sram.c
-
-
-
-
- SWM320_crc.c
- 1
- libraries\SWM320_StdPeriph_Driver\SWM320_crc.c
-
-
-
-
- SWM320_timr.c
- 1
- libraries\SWM320_StdPeriph_Driver\SWM320_timr.c
-
-
-
-
- SWM320_sdram.c
- 1
- libraries\SWM320_StdPeriph_Driver\SWM320_sdram.c
-
-
-
-
- SWM320_dma.c
- 1
- libraries\SWM320_StdPeriph_Driver\SWM320_dma.c
-
-
-
-
- SWM320_can.c
- 1
- libraries\SWM320_StdPeriph_Driver\SWM320_can.c
-
-
-
-
- SWM320_norflash.c
- 1
- libraries\SWM320_StdPeriph_Driver\SWM320_norflash.c
-
-
-
-
- startup_SWM320.s
- 2
- libraries\CMSIS\DeviceSupport\startup\arm\startup_SWM320.s
-
-
-
-
- SWM320_sdio.c
- 1
- libraries\SWM320_StdPeriph_Driver\SWM320_sdio.c
-
-
-
-
- system_SWM320.c
- 1
- libraries\CMSIS\DeviceSupport\system_SWM320.c
-
-
-
-
- SWM320_i2c.c
- 1
- libraries\SWM320_StdPeriph_Driver\SWM320_i2c.c
-
-
-
-
- SWM320_uart.c
- 1
- libraries\SWM320_StdPeriph_Driver\SWM320_uart.c
-
-
-
-
- SWM320_port.c
- 1
- libraries\SWM320_StdPeriph_Driver\SWM320_port.c
-
-
-
-
- SWM320_pwm.c
- 1
- libraries\SWM320_StdPeriph_Driver\SWM320_pwm.c
-
-
-
-
- SWM320_exti.c
- 1
- libraries\SWM320_StdPeriph_Driver\SWM320_exti.c
-
-
-
-
- SWM320_lcd.c
- 1
- libraries\SWM320_StdPeriph_Driver\SWM320_lcd.c
-
-
-
-
- SWM320_gpio.c
- 1
- libraries\SWM320_StdPeriph_Driver\SWM320_gpio.c
-
-
-
-
- SWM320_flash.c
- 1
- libraries\SWM320_StdPeriph_Driver\SWM320_flash.c
-
-
-
-
- SWM320_wdt.c
- 1
- libraries\SWM320_StdPeriph_Driver\SWM320_wdt.c
-
-
-
-
-
-
-
diff --git a/bsp/synwit/swm320/rtconfig.h b/bsp/synwit/swm320/rtconfig.h
index 787befe375..a637d0ac6b 100644
--- a/bsp/synwit/swm320/rtconfig.h
+++ b/bsp/synwit/swm320/rtconfig.h
@@ -6,8 +6,8 @@
/* RT-Thread Kernel */
-#define RT_CPUS_NR 1
#define RT_NAME_MAX 8
+#define RT_CPUS_NR 1
#define RT_ALIGN_SIZE 8
#define RT_THREAD_PRIORITY_32
#define RT_THREAD_PRIORITY_MAX 32
@@ -41,15 +41,12 @@
#define RT_USING_MEMHEAP_AS_HEAP
#define RT_USING_MEMHEAP_AUTO_BINDING
#define RT_USING_HEAP
-#define RT_BACKTRACE_LEVEL_MAX_NR 32
-
-/* Kernel Device Object */
-
#define RT_USING_DEVICE
#define RT_USING_CONSOLE
#define RT_CONSOLEBUF_SIZE 128
#define RT_CONSOLE_DEVICE_NAME "uart1"
-#define RT_VER_NUM 0x50002
+#define RT_VER_NUM 0x50100
+#define RT_BACKTRACE_LEVEL_MAX_NR 32
#define RT_USING_HW_ATOMIC
#define RT_USING_CPU_FFS
#define ARCH_ARM
@@ -115,6 +112,9 @@
/* Network */
+/* Memory protection */
+
+
/* Utilities */
@@ -134,6 +134,15 @@
/* Wiced WiFi */
+/* CYW43012 WiFi */
+
+
+/* BL808 WiFi */
+
+
+/* CYW43439 WiFi */
+
+
/* IoT Cloud */
diff --git a/bsp/synwit/swm320/template.uvopt b/bsp/synwit/swm320/template.uvopt
deleted file mode 100644
index 068ac9af69..0000000000
--- a/bsp/synwit/swm320/template.uvopt
+++ /dev/null
@@ -1,162 +0,0 @@
-
-
-
- 1.0
-
- ### uVision Project, (C) Keil Software
-
-
- *.c
- *.s*; *.src; *.a*
- *.obj
- *.lib
- *.txt; *.h; *.inc
- *.plm
- *.cpp
-
-
-
- 0
- 0
-
-
-
- rtthread
- 0x4
- ARM-ADS
-
- 25000000
-
- 1
- 1
- 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
- 0
- 1
- 1
- 0
- 0
- 0
- 6
-
-
-
-
-
-
-
-
-
-
- Segger\JL2CM3.dll
-
-
-
- 0
- JL2CM3
- -U30000299 -O207 -S0 -A0 -C0 -JU1 -JI127.0.0.1 -JP0 -RST0 -N00("ARM CoreSight SW-DP") -D00(2BA01477) -L00(0) -TO18 -TC10000000 -TP21 -TDS8001 -TDT0 -TDC1F -TIEFFFFFFFF -TIP8 -TB1 -TFE0 -FO15 -FD20000000 -FC800 -FN1 -FF0STM32F4xx_1024 -FS08000000 -FL0100000
-
-
- 0
- UL2CM3
- UL2CM3(-O207 -S0 -C0 -FO7 -FD20000000 -FC800 -FN1 -FF0STM32F4xx_1024 -FS08000000 -FL0100000)
-
-
-
-
- 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
-
-
-
-
-
-
-
diff --git a/bsp/synwit/swm320/template.uvproj b/bsp/synwit/swm320/template.uvproj
deleted file mode 100644
index 3312f50fca..0000000000
--- a/bsp/synwit/swm320/template.uvproj
+++ /dev/null
@@ -1,407 +0,0 @@
-
-
-
- 1.1
-
- ### uVision Project, (C) Keil Software
-
-
-
- rtthread
- 0x4
- ARM-ADS
-
-
- STM32F407ZG
- STMicroelectronics
- IRAM(0x20000000-0x2001FFFF) IRAM2(0x10000000-0x1000FFFF) IROM(0x8000000-0x80FFFFF) CLOCK(25000000) CPUTYPE("Cortex-M4") FPU2
-
- "Startup\ST\STM32F4xx\startup_stm32f40_41xxx.s" ("STM32F40/41xxx Startup Code")
- UL2CM3(-O207 -S0 -C0 -FO7 -FD20000000 -FC800 -FN1 -FF0STM32F4xx_1024 -FS08000000 -FL0100000)
- 6105
- stm32f4xx.h
-
-
-
-
-
-
- -DSTM32F40_41xxx
-
-
- SFD\ST\STM32F4xx\STM32F40x.sfr
- 0
- 0
-
-
-
- ST\STM32F4xx\
- ST\STM32F4xx\
-
- 0
- 0
- 0
- 0
- 1
-
- .\build\keil\Obj\
- rt-thread
- 1
- 0
- 0
- 1
- 0
- .\build\keil\List\
- 1
- 0
- 0
-
- 0
- 0
-
-
- 0
- 0
- 0
-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- 0
- 0x0
- 0x0
-
-
- 0
- 0x0
- 0x0
-
-
- 0
- 0x20000000
- 0x20000
-
-
- 0
- 0x10000000
- 0x10000
-
-
-
-
-
- 1
- 1
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 0
- 0
- 0
- 0
- 1
- 0
-
-
-
-
-
-
-
-
- 1
- 0
- 0
- 0
- 0
- 0
- 0
- 0
- 0
-
-
-
-
-
-
-
-
- 0
- 0
- 0
- 0
- 1
- 0
- 0x08000000
- 0x20000000
-
- .\drivers\linker_scripts\link.sct
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/bsp/synwit/swm341/.config b/bsp/synwit/swm341/.config
index 90bafaa4b6..e1f191f012 100644
--- a/bsp/synwit/swm341/.config
+++ b/bsp/synwit/swm341/.config
@@ -9,8 +9,10 @@
CONFIG_RT_NAME_MAX=8
# CONFIG_RT_USING_ARCH_DATA_TYPE is not set
# CONFIG_RT_USING_SMART is not set
+# CONFIG_RT_USING_NANO is not set
# CONFIG_RT_USING_AMP is not set
# CONFIG_RT_USING_SMP is not set
+CONFIG_RT_CPUS_NR=1
CONFIG_RT_ALIGN_SIZE=8
# CONFIG_RT_THREAD_PRIORITY_8 is not set
CONFIG_RT_THREAD_PRIORITY_32=y
@@ -37,7 +39,7 @@ CONFIG_RT_TIMER_THREAD_STACK_SIZE=512
CONFIG_RT_USING_DEBUG=y
CONFIG_RT_DEBUGING_COLOR=y
CONFIG_RT_DEBUGING_CONTEXT=y
-# CONFIG_RT_DEBUGING_INIT is not set
+# CONFIG_RT_DEBUGING_AUTO_INIT is not set
#
# Inter-Thread communication
@@ -68,19 +70,15 @@ CONFIG_RT_USING_MEMHEAP_AUTO_BINDING=y
# CONFIG_RT_USING_MEMTRACE is not set
# CONFIG_RT_USING_HEAP_ISR is not set
CONFIG_RT_USING_HEAP=y
-
-#
-# Kernel Device Object
-#
CONFIG_RT_USING_DEVICE=y
# CONFIG_RT_USING_DEVICE_OPS is not set
-# CONFIG_RT_USING_DM is not set
# CONFIG_RT_USING_INTERRUPT_INFO is not set
CONFIG_RT_USING_CONSOLE=y
CONFIG_RT_CONSOLEBUF_SIZE=128
CONFIG_RT_CONSOLE_DEVICE_NAME="uart0"
-CONFIG_RT_VER_NUM=0x50002
+CONFIG_RT_VER_NUM=0x50100
# CONFIG_RT_USING_STDC_ATOMIC is not set
+CONFIG_RT_BACKTRACE_LEVEL_MAX_NR=32
# CONFIG_RT_USING_CACHE is not set
CONFIG_RT_USING_HW_ATOMIC=y
# CONFIG_ARCH_ARM_BOOTWITH_FLUSH_CACHE is not set
@@ -124,6 +122,7 @@ CONFIG_FINSH_USING_OPTION_COMPLETION=y
#
# Device Drivers
#
+# CONFIG_RT_USING_DM is not set
CONFIG_RT_USING_DEVICE_IPC=y
CONFIG_RT_UNAMED_PIPE_NUMBER=64
# CONFIG_RT_USING_SYSTEM_WORKQUEUE is not set
@@ -147,7 +146,6 @@ CONFIG_RT_USING_PIN=y
# CONFIG_RT_USING_MTD_NOR is not set
# CONFIG_RT_USING_MTD_NAND is not set
# CONFIG_RT_USING_PM is not set
-# CONFIG_RT_USING_FDT is not set
# CONFIG_RT_USING_RTC is not set
# CONFIG_RT_USING_SDIO is not set
# CONFIG_RT_USING_SPI is not set
@@ -218,6 +216,12 @@ CONFIG_RT_LIBC_TZ_DEFAULT_SEC=0
# CONFIG_RT_USING_LWIP is not set
# CONFIG_RT_USING_AT is not set
+#
+# Memory protection
+#
+# CONFIG_RT_USING_MEM_PROTECTION is not set
+# CONFIG_RT_USING_HW_STACK_GUARD is not set
+
#
# Utilities
#
@@ -270,6 +274,21 @@ CONFIG_RT_LIBC_TZ_DEFAULT_SEC=0
#
# CONFIG_PKG_USING_WLAN_WICED is not set
# CONFIG_PKG_USING_RW007 is not set
+
+#
+# CYW43012 WiFi
+#
+# CONFIG_PKG_USING_WLAN_CYW43012 is not set
+
+#
+# BL808 WiFi
+#
+# CONFIG_PKG_USING_WLAN_BL808 is not set
+
+#
+# CYW43439 WiFi
+#
+# CONFIG_PKG_USING_WLAN_CYW43439 is not set
# CONFIG_PKG_USING_COAP is not set
# CONFIG_PKG_USING_NOPOLL is not set
# CONFIG_PKG_USING_NETUTILS is not set
@@ -291,7 +310,6 @@ CONFIG_RT_LIBC_TZ_DEFAULT_SEC=0
# CONFIG_PKG_USING_JIOT-C-SDK is not set
# CONFIG_PKG_USING_UCLOUD_IOT_SDK is not set
# CONFIG_PKG_USING_JOYLINK is not set
-# CONFIG_PKG_USING_EZ_IOT_OS is not set
# CONFIG_PKG_USING_IOTSHARP_SDK is not set
# CONFIG_PKG_USING_NIMBLE is not set
# CONFIG_PKG_USING_LLSYNC_SDK_ADAPTER is not set
@@ -312,6 +330,7 @@ CONFIG_RT_LIBC_TZ_DEFAULT_SEC=0
# CONFIG_PKG_USING_NMEALIB is not set
# CONFIG_PKG_USING_PDULIB is not set
# CONFIG_PKG_USING_BTSTACK is not set
+# CONFIG_PKG_USING_BT_CYW43012 is not set
# CONFIG_PKG_USING_LORAWAN_ED_STACK is not set
# CONFIG_PKG_USING_WAYZ_IOTKIT is not set
# CONFIG_PKG_USING_MAVLINK is not set
@@ -331,6 +350,8 @@ CONFIG_RT_LIBC_TZ_DEFAULT_SEC=0
# CONFIG_PKG_USING_ZFTP is not set
# CONFIG_PKG_USING_WOL is not set
# CONFIG_PKG_USING_ZEPHYR_POLLING is not set
+# CONFIG_PKG_USING_MATTER_ADAPTATION_LAYER is not set
+# CONFIG_PKG_USING_LHC_MODBUS is not set
#
# security packages
@@ -377,7 +398,6 @@ CONFIG_RT_LIBC_TZ_DEFAULT_SEC=0
# LVGL: powerful and easy-to-use embedded GUI library
#
# CONFIG_PKG_USING_LVGL is not set
-# CONFIG_PKG_USING_LITTLEVGL2RTT is not set
# CONFIG_PKG_USING_LV_MUSIC_DEMO is not set
# CONFIG_PKG_USING_GUI_GUIDER_DEMO is not set
@@ -452,6 +472,7 @@ CONFIG_RT_LIBC_TZ_DEFAULT_SEC=0
# CONFIG_PKG_USING_HASH_MATCH is not set
# CONFIG_PKG_USING_ARMV7M_DWT_TOOL is not set
# CONFIG_PKG_USING_VOFA_PLUS is not set
+# CONFIG_PKG_USING_ZDEBUG is not set
#
# system packages
@@ -488,6 +509,8 @@ CONFIG_RT_LIBC_TZ_DEFAULT_SEC=0
# CONFIG_PKG_USING_UC_COMMON is not set
# CONFIG_PKG_USING_UC_MODBUS is not set
# CONFIG_PKG_USING_FREERTOS_WRAPPER is not set
+# CONFIG_PKG_USING_LITEOS_SDK is not set
+# CONFIG_PKG_USING_TZ_DATABASE is not set
# CONFIG_PKG_USING_CAIRO is not set
# CONFIG_PKG_USING_PIXMAN is not set
# CONFIG_PKG_USING_PARTITION is not set
@@ -511,6 +534,7 @@ CONFIG_RT_LIBC_TZ_DEFAULT_SEC=0
# CONFIG_PKG_USING_QBOOT is not set
# CONFIG_PKG_USING_PPOOL is not set
# CONFIG_PKG_USING_OPENAMP is not set
+# CONFIG_PKG_USING_RPMSG_LITE is not set
# CONFIG_PKG_USING_LPM is not set
# CONFIG_PKG_USING_TLSF is not set
# CONFIG_PKG_USING_EVENT_RECORDER is not set
@@ -524,6 +548,11 @@ CONFIG_RT_LIBC_TZ_DEFAULT_SEC=0
# CONFIG_PKG_USING_AGILE_UPGRADE is not set
# CONFIG_PKG_USING_FLASH_BLOB is not set
# CONFIG_PKG_USING_MLIBC is not set
+# CONFIG_PKG_USING_TASK_MSG_BUS is not set
+# CONFIG_PKG_USING_SFDB is not set
+# CONFIG_PKG_USING_RTP is not set
+# CONFIG_PKG_USING_REB is not set
+# CONFIG_PKG_USING_R_RHEALSTONE is not set
#
# peripheral libraries and drivers
@@ -588,6 +617,7 @@ CONFIG_RT_LIBC_TZ_DEFAULT_SEC=0
# CONFIG_PKG_USING_BALANCE is not set
# CONFIG_PKG_USING_SHT2X is not set
# CONFIG_PKG_USING_SHT3X is not set
+# CONFIG_PKG_USING_SHT4X is not set
# CONFIG_PKG_USING_AD7746 is not set
# CONFIG_PKG_USING_ADT74XX is not set
# CONFIG_PKG_USING_MAX17048 is not set
@@ -688,6 +718,10 @@ CONFIG_RT_LIBC_TZ_DEFAULT_SEC=0
# CONFIG_PKG_USING_FINGERPRINT is not set
# CONFIG_PKG_USING_BT_ECB02C is not set
# CONFIG_PKG_USING_UAT is not set
+# CONFIG_PKG_USING_ST7789 is not set
+# CONFIG_PKG_USING_VS1003 is not set
+# CONFIG_PKG_USING_X9555 is not set
+# CONFIG_PKG_USING_SYSTEM_RUN_LED is not set
# CONFIG_PKG_USING_SPI_TOOLS is not set
#
@@ -702,6 +736,7 @@ CONFIG_RT_LIBC_TZ_DEFAULT_SEC=0
# CONFIG_PKG_USING_ULAPACK is not set
# CONFIG_PKG_USING_QUEST is not set
# CONFIG_PKG_USING_NAXOS is not set
+# CONFIG_PKG_USING_R_TINYMAIX is not set
#
# Signal Processing and Control Algorithm Packages
@@ -711,6 +746,7 @@ CONFIG_RT_LIBC_TZ_DEFAULT_SEC=0
# CONFIG_PKG_USING_UKAL is not set
# CONFIG_PKG_USING_DIGITALCTRL is not set
# CONFIG_PKG_USING_KISSFFT is not set
+# CONFIG_PKG_USING_CMSIS_DSP is not set
#
# miscellaneous packages
@@ -742,12 +778,14 @@ CONFIG_RT_LIBC_TZ_DEFAULT_SEC=0
# CONFIG_PKG_USING_DONUT is not set
# CONFIG_PKG_USING_COWSAY is not set
# CONFIG_PKG_USING_MORSE is not set
+# CONFIG_PKG_USING_TINYSQUARE is not set
# CONFIG_PKG_USING_LIBCSV is not set
# CONFIG_PKG_USING_OPTPARSE is not set
# CONFIG_PKG_USING_FASTLZ is not set
# CONFIG_PKG_USING_MINILZO is not set
# CONFIG_PKG_USING_QUICKLZ is not set
# CONFIG_PKG_USING_LZMA is not set
+# CONFIG_PKG_USING_RALARAM is not set
# CONFIG_PKG_USING_MULTIBUTTON is not set
# CONFIG_PKG_USING_FLEXIBLE_BUTTON is not set
# CONFIG_PKG_USING_CANFESTIVAL is not set
@@ -932,6 +970,7 @@ CONFIG_RT_LIBC_TZ_DEFAULT_SEC=0
#
# CONFIG_PKG_USING_ARDUINO_ADAFRUIT_GFX_LIBRARY is not set
# CONFIG_PKG_USING_ARDUINO_U8G2 is not set
+# CONFIG_PKG_USING_ARDUINO_TFT_ESPI is not set
# CONFIG_PKG_USING_ARDUINO_ADAFRUIT_ST7735 is not set
# CONFIG_PKG_USING_ARDUINO_ADAFRUIT_SSD1306 is not set
# CONFIG_PKG_USING_ARDUINO_ADAFRUIT_ILI9341 is not set
@@ -940,6 +979,7 @@ CONFIG_RT_LIBC_TZ_DEFAULT_SEC=0
#
# Timing
#
+# CONFIG_PKG_USING_ARDUINO_RTCLIB is not set
# CONFIG_PKG_USING_ARDUINO_MSTIMER2 is not set
# CONFIG_PKG_USING_ARDUINO_TICKER is not set
# CONFIG_PKG_USING_ARDUINO_TASKSCHEDULER is not set
@@ -976,7 +1016,6 @@ CONFIG_RT_LIBC_TZ_DEFAULT_SEC=0
#
# CONFIG_PKG_USING_ARDUINO_ADAFRUIT_MFRC630 is not set
# CONFIG_PKG_USING_ARDUINO_ADAFRUIT_SI5351 is not set
-# CONFIG_PKG_USING_ARDUINO_RTCLIB is not set
#
# Signal IO
diff --git a/bsp/synwit/swm341/applications/main.c b/bsp/synwit/swm341/applications/main.c
index 5b5e144fe0..9d84b0ea24 100644
--- a/bsp/synwit/swm341/applications/main.c
+++ b/bsp/synwit/swm341/applications/main.c
@@ -7,11 +7,6 @@
* Date Author Notes
*/
-/***************************************************************
-由于和mmcsd_cmd.h中的ERASE重名,
-修改SWM341.h中 FMC_TpyeDef中ERASE寄存器为FMC_ERASE
-***************************************************************/
-
#include
#include
#include "board.h"
diff --git a/bsp/synwit/swm341/drivers/drv_rtc.c b/bsp/synwit/swm341/drivers/drv_rtc.c
index 1207190f14..2fd1a243aa 100644
--- a/bsp/synwit/swm341/drivers/drv_rtc.c
+++ b/bsp/synwit/swm341/drivers/drv_rtc.c
@@ -107,7 +107,7 @@ static rt_err_t swm_rtc_configure(void)
rtc_initstruct.MinuteIEn = 0;
RTC_Init(RTC, &rtc_initstruct);
RTC_Start(RTC);
-
+
return RT_EOK;
}
@@ -148,7 +148,7 @@ int swm_rtc_init(void)
rt_err_t result;
swm_rtc_configure();
-
+
swm_rtc_device.ops = &swm_rtc_ops;
result = rt_hw_rtc_register(&swm_rtc_device, "rtc", RT_DEVICE_FLAG_RDWR,RT_NULL);
if (result != RT_EOK)
diff --git a/bsp/synwit/swm341/drivers/drv_sdio.c b/bsp/synwit/swm341/drivers/drv_sdio.c
index 6c4eab4a10..f85ea63cd8 100644
--- a/bsp/synwit/swm341/drivers/drv_sdio.c
+++ b/bsp/synwit/swm341/drivers/drv_sdio.c
@@ -118,13 +118,13 @@ static void swm_sdio_wait_completed(struct swm_sdio_device *sdio)
SDIO->CR2 |= (1 << SDIO_CR2_RSTCMD_Pos);
data->err = -RT_ERROR;
}
-
+
if (status & SDIO_IF_CMDTIMEOUT_Msk)
{
SDIO->CR2 |= (1 << SDIO_CR2_RSTCMD_Pos);
cmd->err = -RT_ETIMEOUT;
}
-
+
if (status & SDIO_IF_DATCRCERR_Msk)
{
SDIO->CR2 |= (1 << SDIO_CR2_RSTDAT_Pos);
diff --git a/bsp/synwit/swm341/drivers/drv_uart.c b/bsp/synwit/swm341/drivers/drv_uart.c
index b2f221e1dd..c64c759525 100644
--- a/bsp/synwit/swm341/drivers/drv_uart.c
+++ b/bsp/synwit/swm341/drivers/drv_uart.c
@@ -275,7 +275,17 @@ static void swm_uart_isr(struct rt_serial_device *serial_device)
/* UART in mode Receiver -------------------------------------------------*/
if (UART_INTStat(uart_cfg->UARTx, UART_IT_RX_THR) || UART_INTStat(uart_cfg->UARTx, UART_IT_RX_TOUT))
{
- rt_hw_serial_isr(serial_device, RT_SERIAL_EVENT_RX_IND);
+ if(!UART_IsRXFIFOEmpty(uart_cfg->UARTx))
+ {
+ rt_hw_serial_isr(serial_device, RT_SERIAL_EVENT_RX_IND);
+ }
+
+ if(UART_INTStat(uart_cfg->UARTx, UART_IT_RX_TOUT))
+ {
+ UART_INTClr(uart_cfg->UARTx, UART_IT_RX_TOUT);
+
+ rt_hw_serial_isr(serial_device, RT_SERIAL_EVENT_RX_TIMEOUT);
+ }
}
}
diff --git a/bsp/synwit/swm341/libraries/SWM341_StdPeriph_Driver/SWM341_flash.c b/bsp/synwit/swm341/libraries/SWM341_StdPeriph_Driver/SWM341_flash.c
index f436f8be4f..a41cbc520e 100644
--- a/bsp/synwit/swm341/libraries/SWM341_StdPeriph_Driver/SWM341_flash.c
+++ b/bsp/synwit/swm341/libraries/SWM341_StdPeriph_Driver/SWM341_flash.c
@@ -84,7 +84,7 @@ uint32_t FLASH_Write(uint32_t addr, uint32_t buff[], uint32_t count)
******************************************************************************************************************************************/
void Flash_Param_at_xMHz(uint32_t x)
{
- __disable_irq();
+// __disable_irq();
switch(x)
{
case 30:
@@ -108,5 +108,5 @@ void Flash_Param_at_xMHz(uint32_t x)
IAP_Flash_Param(0x16589, 0x4C74, 0x0B11FFAC);
break;
}
- __enable_irq();
+// __enable_irq();
}
diff --git a/bsp/synwit/swm341/rtconfig.h b/bsp/synwit/swm341/rtconfig.h
index f247abd3b7..9ea8a3892b 100644
--- a/bsp/synwit/swm341/rtconfig.h
+++ b/bsp/synwit/swm341/rtconfig.h
@@ -6,8 +6,8 @@
/* RT-Thread Kernel */
-#define RT_CPUS_NR 1
#define RT_NAME_MAX 8
+#define RT_CPUS_NR 1
#define RT_ALIGN_SIZE 8
#define RT_THREAD_PRIORITY_32
#define RT_THREAD_PRIORITY_MAX 32
@@ -44,15 +44,12 @@
#define RT_USING_MEMHEAP_AS_HEAP
#define RT_USING_MEMHEAP_AUTO_BINDING
#define RT_USING_HEAP
-#define RT_BACKTRACE_LEVEL_MAX_NR 32
-
-/* Kernel Device Object */
-
#define RT_USING_DEVICE
#define RT_USING_CONSOLE
#define RT_CONSOLEBUF_SIZE 128
#define RT_CONSOLE_DEVICE_NAME "uart0"
-#define RT_VER_NUM 0x50002
+#define RT_VER_NUM 0x50100
+#define RT_BACKTRACE_LEVEL_MAX_NR 32
#define RT_USING_HW_ATOMIC
#define RT_USING_CPU_FFS
#define ARCH_ARM
@@ -118,6 +115,9 @@
/* Network */
+/* Memory protection */
+
+
/* Utilities */
@@ -137,6 +137,15 @@
/* Wiced WiFi */
+/* CYW43012 WiFi */
+
+
+/* BL808 WiFi */
+
+
+/* CYW43439 WiFi */
+
+
/* IoT Cloud */
diff --git a/bsp/synwit/swm341/rtconfig.py b/bsp/synwit/swm341/rtconfig.py
index 8d449d49b9..9d676d8e99 100644
--- a/bsp/synwit/swm341/rtconfig.py
+++ b/bsp/synwit/swm341/rtconfig.py
@@ -43,7 +43,7 @@ if PLATFORM == 'gcc':
DEVICE = ' -mcpu=' + CPU + ' -mthumb -mfpu=fpv4-sp-d16 -mfloat-abi=hard -ffunction-sections -fdata-sections'
CFLAGS = DEVICE + ' -Dgcc -fstack-usage -fdump-rtl-dfinish'
- AFLAGS = ' -c' + DEVICE + ' -x assembler-with-cpp -Wa,-mimplicit-it=thumb '
+ AFLAGS = ' -c' + DEVICE + ' -x assembler-with-cpp -Wa,-mimplicit-it=thumb -I.'
LFLAGS = DEVICE + ' -Wl,--gc-sections,-Map=rtthread.map,-cref,-u,Reset_Handler -T drivers/linker_scripts/link.lds'
CPATH = ''
diff --git a/bsp/synwit/swm341/注意事项.md b/bsp/synwit/swm341/注意事项.md
deleted file mode 100644
index 09486f69e3..0000000000
--- a/bsp/synwit/swm341/注意事项.md
+++ /dev/null
@@ -1,9 +0,0 @@
-# 以下文件经过修改,替换lib时需要注意
-
-## 1
-
-由于和mmcsd_cmd.h中的ERASE重名,修改SWM341.h中 FMC_TpyeDef中ERASE寄存器为FMC_ERASE。
-
-## 2
-
-libraries\CMSIS\DeviceSupport\startup\gcc\startup_SWM341.s 文件经过修改。
\ No newline at end of file
diff --git a/bsp/synwit/注意事项.md b/bsp/synwit/注意事项.md
new file mode 100644
index 0000000000..b24f831829
--- /dev/null
+++ b/bsp/synwit/注意事项.md
@@ -0,0 +1,13 @@
+# 以下文件经过修改,替换lib时需要注意
+
+## 1
+
+libraries\CMSIS\DeviceSupport\startup\gcc\startup_SWM341.s 文件经过修改。
+
+libraries\CMSIS\DeviceSupport\startup\gcc\startup_SWM320.s 文件经过修改。
+
+## 2
+
+libraries\SWM341_StdPeriph_Driver\SWM341_flash.c 中函数 Flash_Param_at_xMHz() 注释掉 \_\_disable_irq() 和 \_\_enable_irq() 语句,避免在调度器启动之前使能全局中断
+
+libraries\SWM320_StdPeriph_Driver\SWM320_flash.c 中函数 Flash_Param_at_xMHz() 注释掉 \_\_disable_irq() 和 \_\_enable_irq() 语句,避免在调度器启动之前使能全局中断