bsp: cvitek: remove support for spinor/spinand
Confirmed with milkv, only the sd card version is sold by default for duo in the market. The spi pins are provided through stamp holes, so that users can solder the corresponding components on their baseboard during secondary development. In order to simplify maintenance work, the mainline will only support the sd-card version and no longer support spinor/spinand. Updated config files the same in this patch. Signed-off-by: Chen Wang <unicorn_wang@outlook.com>
This commit is contained in:
parent
9e36a5b97d
commit
2322f0154e
@ -146,9 +146,7 @@ $ scons --menuconfig
|
|||||||
```shell
|
```shell
|
||||||
Board Type (milkv-duo) --->
|
Board Type (milkv-duo) --->
|
||||||
( ) milkv-duo
|
( ) milkv-duo
|
||||||
( ) milkv-duo-spinor
|
|
||||||
(X) milkv-duo256m
|
(X) milkv-duo256m
|
||||||
( ) milkv-duo256m-spinor
|
|
||||||
( ) milkv-duos
|
( ) milkv-duos
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -2,9 +2,9 @@
|
|||||||
|
|
||||||
function get_board_type()
|
function get_board_type()
|
||||||
{
|
{
|
||||||
BOARD_CONFIG=("CONFIG_BOARD_TYPE_MILKV_DUO" "CONFIG_BOARD_TYPE_MILKV_DUO_SPINOR" "CONFIG_BOARD_TYPE_MILKV_DUO_SPINAND" "CONFIG_BOARD_TYPE_MILKV_DUO256M" "CONFIG_BOARD_TYPE_MILKV_DUO256M_SPINOR" "CONFIG_BOARD_TYPE_MILKV_DUO256M_SPINAND" "CONFIG_BOARD_TYPE_MILKV_DUOS")
|
BOARD_CONFIG=("CONFIG_BOARD_TYPE_MILKV_DUO" "CONFIG_BOARD_TYPE_MILKV_DUO256M" "CONFIG_BOARD_TYPE_MILKV_DUOS")
|
||||||
BOARD_VALUE=("milkv-duo" "milkv-duo-spinor" "milkv-duo-spinand" "milkv-duo256m" "milkv-duo256m-spinor" "milkv-duo256m-spinand" "milkv-duos-sd")
|
BOARD_VALUE=("milkv-duo" "milkv-duo256m" "milkv-duos-sd")
|
||||||
STORAGE_VAUE=("sd" "spinor" "spinand" "sd" "spinor" "spinand" "sd")
|
STORAGE_VAUE=("sd" "sd" "sd")
|
||||||
|
|
||||||
for ((i=0;i<${#BOARD_CONFIG[@]};i++))
|
for ((i=0;i<${#BOARD_CONFIG[@]};i++))
|
||||||
do
|
do
|
||||||
|
@ -2,10 +2,126 @@
|
|||||||
#
|
#
|
||||||
# RT-Thread Kernel
|
# RT-Thread Kernel
|
||||||
#
|
#
|
||||||
|
|
||||||
|
#
|
||||||
|
# klibc options
|
||||||
|
#
|
||||||
|
|
||||||
|
#
|
||||||
|
# rt_vsnprintf options
|
||||||
|
#
|
||||||
|
# CONFIG_RT_KLIBC_USING_LIBC_VSNPRINTF is not set
|
||||||
|
CONFIG_RT_KLIBC_USING_VSNPRINTF_LONGLONG=y
|
||||||
|
CONFIG_RT_KLIBC_USING_VSNPRINTF_STANDARD=y
|
||||||
|
CONFIG_RT_KLIBC_USING_VSNPRINTF_DECIMAL_SPECIFIERS=y
|
||||||
|
CONFIG_RT_KLIBC_USING_VSNPRINTF_EXPONENTIAL_SPECIFIERS=y
|
||||||
|
CONFIG_RT_KLIBC_USING_VSNPRINTF_WRITEBACK_SPECIFIER=y
|
||||||
|
CONFIG_RT_KLIBC_USING_VSNPRINTF_CHECK_NUL_IN_FORMAT_SPECIFIER=y
|
||||||
|
# CONFIG_RT_KLIBC_USING_VSNPRINTF_MSVC_STYLE_INTEGER_SPECIFIERS is not set
|
||||||
|
CONFIG_RT_KLIBC_USING_VSNPRINTF_INTEGER_BUFFER_SIZE=32
|
||||||
|
CONFIG_RT_KLIBC_USING_VSNPRINTF_DECIMAL_BUFFER_SIZE=32
|
||||||
|
CONFIG_RT_KLIBC_USING_VSNPRINTF_FLOAT_PRECISION=6
|
||||||
|
CONFIG_RT_KLIBC_USING_VSNPRINTF_MAX_INTEGRAL_DIGITS_FOR_DECIMAL=9
|
||||||
|
CONFIG_RT_KLIBC_USING_VSNPRINTF_LOG10_TAYLOR_TERMS=4
|
||||||
|
# end of rt_vsnprintf options
|
||||||
|
|
||||||
|
#
|
||||||
|
# rt_vsscanf options
|
||||||
|
#
|
||||||
|
# CONFIG_RT_KLIBC_USING_LIBC_VSSCANF is not set
|
||||||
|
# end of rt_vsscanf options
|
||||||
|
|
||||||
|
#
|
||||||
|
# rt_memset options
|
||||||
|
#
|
||||||
|
# CONFIG_RT_KLIBC_USING_USER_MEMSET is not set
|
||||||
|
# CONFIG_RT_KLIBC_USING_LIBC_MEMSET is not set
|
||||||
|
# CONFIG_RT_KLIBC_USING_TINY_MEMSET is not set
|
||||||
|
# end of rt_memset options
|
||||||
|
|
||||||
|
#
|
||||||
|
# rt_memcpy options
|
||||||
|
#
|
||||||
|
# CONFIG_RT_KLIBC_USING_USER_MEMCPY is not set
|
||||||
|
# CONFIG_RT_KLIBC_USING_LIBC_MEMCPY is not set
|
||||||
|
# CONFIG_RT_KLIBC_USING_TINY_MEMCPY is not set
|
||||||
|
# end of rt_memcpy options
|
||||||
|
|
||||||
|
#
|
||||||
|
# rt_memmove options
|
||||||
|
#
|
||||||
|
# CONFIG_RT_KLIBC_USING_USER_MEMMOVE is not set
|
||||||
|
# CONFIG_RT_KLIBC_USING_LIBC_MEMMOVE is not set
|
||||||
|
# end of rt_memmove options
|
||||||
|
|
||||||
|
#
|
||||||
|
# rt_memcmp options
|
||||||
|
#
|
||||||
|
# CONFIG_RT_KLIBC_USING_USER_MEMCMP is not set
|
||||||
|
# CONFIG_RT_KLIBC_USING_LIBC_MEMCMP is not set
|
||||||
|
# end of rt_memcmp options
|
||||||
|
|
||||||
|
#
|
||||||
|
# rt_strstr options
|
||||||
|
#
|
||||||
|
# CONFIG_RT_KLIBC_USING_USER_STRSTR is not set
|
||||||
|
# CONFIG_RT_KLIBC_USING_LIBC_STRSTR is not set
|
||||||
|
# end of rt_strstr options
|
||||||
|
|
||||||
|
#
|
||||||
|
# rt_strcasecmp options
|
||||||
|
#
|
||||||
|
# CONFIG_RT_KLIBC_USING_USER_STRCASECMP is not set
|
||||||
|
# end of rt_strcasecmp options
|
||||||
|
|
||||||
|
#
|
||||||
|
# rt_strncpy options
|
||||||
|
#
|
||||||
|
# CONFIG_RT_KLIBC_USING_USER_STRNCPY is not set
|
||||||
|
# CONFIG_RT_KLIBC_USING_LIBC_STRNCPY is not set
|
||||||
|
# end of rt_strncpy options
|
||||||
|
|
||||||
|
#
|
||||||
|
# rt_strcpy options
|
||||||
|
#
|
||||||
|
# CONFIG_RT_KLIBC_USING_USER_STRCPY is not set
|
||||||
|
# CONFIG_RT_KLIBC_USING_LIBC_STRCPY is not set
|
||||||
|
# end of rt_strcpy options
|
||||||
|
|
||||||
|
#
|
||||||
|
# rt_strncmp options
|
||||||
|
#
|
||||||
|
# CONFIG_RT_KLIBC_USING_USER_STRNCMP is not set
|
||||||
|
# CONFIG_RT_KLIBC_USING_LIBC_STRNCMP is not set
|
||||||
|
# end of rt_strncmp options
|
||||||
|
|
||||||
|
#
|
||||||
|
# rt_strcmp options
|
||||||
|
#
|
||||||
|
# CONFIG_RT_KLIBC_USING_USER_STRCMP is not set
|
||||||
|
# CONFIG_RT_KLIBC_USING_LIBC_STRCMP is not set
|
||||||
|
# end of rt_strcmp options
|
||||||
|
|
||||||
|
#
|
||||||
|
# rt_strlen options
|
||||||
|
#
|
||||||
|
# CONFIG_RT_KLIBC_USING_USER_STRLEN is not set
|
||||||
|
# CONFIG_RT_KLIBC_USING_LIBC_STRLEN is not set
|
||||||
|
# end of rt_strlen options
|
||||||
|
|
||||||
|
#
|
||||||
|
# rt_strnlen options
|
||||||
|
#
|
||||||
|
# CONFIG_RT_KLIBC_USING_USER_STRNLEN is not set
|
||||||
|
# end of rt_strnlen options
|
||||||
|
|
||||||
|
# CONFIG_RT_UTEST_TC_USING_KLIBC is not set
|
||||||
|
# end of klibc options
|
||||||
|
|
||||||
CONFIG_RT_NAME_MAX=32
|
CONFIG_RT_NAME_MAX=32
|
||||||
# CONFIG_RT_USING_ARCH_DATA_TYPE is not set
|
# 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_NANO is not set
|
||||||
|
# CONFIG_RT_USING_SMART is not set
|
||||||
# CONFIG_RT_USING_AMP is not set
|
# CONFIG_RT_USING_AMP is not set
|
||||||
# CONFIG_RT_USING_SMP is not set
|
# CONFIG_RT_USING_SMP is not set
|
||||||
CONFIG_RT_CPUS_NR=1
|
CONFIG_RT_CPUS_NR=1
|
||||||
@ -15,6 +131,7 @@ CONFIG_RT_THREAD_PRIORITY_32=y
|
|||||||
# CONFIG_RT_THREAD_PRIORITY_256 is not set
|
# CONFIG_RT_THREAD_PRIORITY_256 is not set
|
||||||
CONFIG_RT_THREAD_PRIORITY_MAX=32
|
CONFIG_RT_THREAD_PRIORITY_MAX=32
|
||||||
CONFIG_RT_TICK_PER_SECOND=1000
|
CONFIG_RT_TICK_PER_SECOND=1000
|
||||||
|
CONFIG_RT_USING_OVERFLOW_CHECK=y
|
||||||
CONFIG_RT_USING_HOOK=y
|
CONFIG_RT_USING_HOOK=y
|
||||||
CONFIG_RT_HOOK_USING_FUNC_PTR=y
|
CONFIG_RT_HOOK_USING_FUNC_PTR=y
|
||||||
# CONFIG_RT_USING_HOOKLIST is not set
|
# CONFIG_RT_USING_HOOKLIST is not set
|
||||||
@ -28,25 +145,17 @@ CONFIG_RT_TIMER_THREAD_STACK_SIZE=2048
|
|||||||
# CONFIG_RT_USING_CPU_USAGE_TRACER is not set
|
# CONFIG_RT_USING_CPU_USAGE_TRACER is not set
|
||||||
|
|
||||||
#
|
#
|
||||||
# kservice optimization
|
# kservice options
|
||||||
#
|
#
|
||||||
# CONFIG_RT_USING_TINY_FFS is not set
|
# CONFIG_RT_USING_TINY_FFS is not set
|
||||||
# end of kservice optimization
|
# end of kservice options
|
||||||
|
|
||||||
#
|
|
||||||
# klibc optimization
|
|
||||||
#
|
|
||||||
# CONFIG_RT_KLIBC_USING_STDLIB is not set
|
|
||||||
# CONFIG_RT_KLIBC_USING_TINY_SIZE is not set
|
|
||||||
CONFIG_RT_KLIBC_USING_PRINTF_LONGLONG=y
|
|
||||||
# end of klibc optimization
|
|
||||||
|
|
||||||
CONFIG_RT_USING_DEBUG=y
|
CONFIG_RT_USING_DEBUG=y
|
||||||
CONFIG_RT_DEBUGING_ASSERT=y
|
CONFIG_RT_DEBUGING_ASSERT=y
|
||||||
CONFIG_RT_DEBUGING_COLOR=y
|
CONFIG_RT_DEBUGING_COLOR=y
|
||||||
CONFIG_RT_DEBUGING_CONTEXT=y
|
CONFIG_RT_DEBUGING_CONTEXT=y
|
||||||
# CONFIG_RT_DEBUGING_AUTO_INIT is not set
|
# CONFIG_RT_DEBUGING_AUTO_INIT is not set
|
||||||
CONFIG_RT_USING_OVERFLOW_CHECK=y
|
# CONFIG_RT_USING_CI_ACTION is not set
|
||||||
|
|
||||||
#
|
#
|
||||||
# Inter-Thread communication
|
# Inter-Thread communication
|
||||||
@ -81,7 +190,6 @@ CONFIG_RT_USING_DEVICE=y
|
|||||||
# CONFIG_RT_USING_DEVICE_OPS is not set
|
# CONFIG_RT_USING_DEVICE_OPS is not set
|
||||||
# CONFIG_RT_USING_INTERRUPT_INFO is not set
|
# CONFIG_RT_USING_INTERRUPT_INFO is not set
|
||||||
# CONFIG_RT_USING_THREADSAFE_PRINTF is not set
|
# CONFIG_RT_USING_THREADSAFE_PRINTF is not set
|
||||||
# CONFIG_RT_USING_SCHED_THREAD_CTX is not set
|
|
||||||
CONFIG_RT_USING_CONSOLE=y
|
CONFIG_RT_USING_CONSOLE=y
|
||||||
CONFIG_RT_CONSOLEBUF_SIZE=512
|
CONFIG_RT_CONSOLEBUF_SIZE=512
|
||||||
CONFIG_RT_CONSOLE_DEVICE_NAME="uart1"
|
CONFIG_RT_CONSOLE_DEVICE_NAME="uart1"
|
||||||
@ -95,6 +203,7 @@ CONFIG_ARCH_RISCV=y
|
|||||||
CONFIG_ARCH_RISCV_FPU=y
|
CONFIG_ARCH_RISCV_FPU=y
|
||||||
CONFIG_ARCH_RISCV_FPU_D=y
|
CONFIG_ARCH_RISCV_FPU_D=y
|
||||||
CONFIG_ARCH_RISCV64=y
|
CONFIG_ARCH_RISCV64=y
|
||||||
|
CONFIG_ARCH_USING_NEW_CTX_SWITCH=y
|
||||||
|
|
||||||
#
|
#
|
||||||
# RT-Thread Components
|
# RT-Thread Components
|
||||||
@ -142,10 +251,12 @@ CONFIG_RT_USING_SERIAL_V1=y
|
|||||||
# CONFIG_RT_USING_SERIAL_V2 is not set
|
# CONFIG_RT_USING_SERIAL_V2 is not set
|
||||||
CONFIG_RT_SERIAL_USING_DMA=y
|
CONFIG_RT_SERIAL_USING_DMA=y
|
||||||
CONFIG_RT_SERIAL_RB_BUFSZ=64
|
CONFIG_RT_SERIAL_RB_BUFSZ=64
|
||||||
|
# CONFIG_RT_USING_SERIAL_BYPASS is not set
|
||||||
# CONFIG_RT_USING_CAN is not set
|
# CONFIG_RT_USING_CAN is not set
|
||||||
# CONFIG_RT_USING_CPUTIME is not set
|
# CONFIG_RT_USING_CPUTIME is not set
|
||||||
# CONFIG_RT_USING_I2C is not set
|
# CONFIG_RT_USING_I2C is not set
|
||||||
# CONFIG_RT_USING_PHY is not set
|
# CONFIG_RT_USING_PHY is not set
|
||||||
|
# CONFIG_RT_USING_PHY_V2 is not set
|
||||||
# CONFIG_RT_USING_ADC is not set
|
# CONFIG_RT_USING_ADC is not set
|
||||||
# CONFIG_RT_USING_DAC is not set
|
# CONFIG_RT_USING_DAC is not set
|
||||||
# CONFIG_RT_USING_NULL is not set
|
# CONFIG_RT_USING_NULL is not set
|
||||||
@ -167,6 +278,7 @@ CONFIG_RT_SERIAL_RB_BUFSZ=64
|
|||||||
# CONFIG_RT_USING_LCD is not set
|
# CONFIG_RT_USING_LCD is not set
|
||||||
# CONFIG_RT_USING_HWCRYPTO is not set
|
# CONFIG_RT_USING_HWCRYPTO is not set
|
||||||
# CONFIG_RT_USING_WIFI is not set
|
# CONFIG_RT_USING_WIFI is not set
|
||||||
|
# CONFIG_RT_USING_BLK is not set
|
||||||
# CONFIG_RT_USING_VIRTIO is not set
|
# CONFIG_RT_USING_VIRTIO is not set
|
||||||
CONFIG_RT_USING_PIN=y
|
CONFIG_RT_USING_PIN=y
|
||||||
# CONFIG_RT_USING_KTIME is not set
|
# CONFIG_RT_USING_KTIME is not set
|
||||||
@ -390,6 +502,7 @@ CONFIG_RT_LIBC_TZ_DEFAULT_SEC=0
|
|||||||
# CONFIG_PKG_USING_MATTER_ADAPTATION_LAYER is not set
|
# CONFIG_PKG_USING_MATTER_ADAPTATION_LAYER is not set
|
||||||
# CONFIG_PKG_USING_LHC_MODBUS is not set
|
# CONFIG_PKG_USING_LHC_MODBUS is not set
|
||||||
# CONFIG_PKG_USING_QMODBUS is not set
|
# CONFIG_PKG_USING_QMODBUS is not set
|
||||||
|
# CONFIG_PKG_USING_PNET is not set
|
||||||
# end of IoT - internet of things
|
# end of IoT - internet of things
|
||||||
|
|
||||||
#
|
#
|
||||||
@ -522,6 +635,7 @@ CONFIG_RT_LIBC_TZ_DEFAULT_SEC=0
|
|||||||
# CONFIG_PKG_USING_ARMV7M_DWT_TOOL is not set
|
# CONFIG_PKG_USING_ARMV7M_DWT_TOOL is not set
|
||||||
# CONFIG_PKG_USING_VOFA_PLUS is not set
|
# CONFIG_PKG_USING_VOFA_PLUS is not set
|
||||||
# CONFIG_PKG_USING_ZDEBUG is not set
|
# CONFIG_PKG_USING_ZDEBUG is not set
|
||||||
|
# CONFIG_PKG_USING_RVBACKTRACE is not set
|
||||||
# end of tools packages
|
# end of tools packages
|
||||||
|
|
||||||
#
|
#
|
||||||
@ -533,7 +647,6 @@ CONFIG_RT_LIBC_TZ_DEFAULT_SEC=0
|
|||||||
#
|
#
|
||||||
# CONFIG_PKG_USING_RT_MEMCPY_CM is not set
|
# CONFIG_PKG_USING_RT_MEMCPY_CM is not set
|
||||||
# CONFIG_PKG_USING_RT_KPRINTF_THREADSAFE is not set
|
# CONFIG_PKG_USING_RT_KPRINTF_THREADSAFE is not set
|
||||||
# CONFIG_PKG_USING_RT_VSNPRINTF_FULL is not set
|
|
||||||
# end of enhanced kernel services
|
# end of enhanced kernel services
|
||||||
|
|
||||||
# CONFIG_PKG_USING_AUNITY is not set
|
# CONFIG_PKG_USING_AUNITY is not set
|
||||||
@ -611,10 +724,12 @@ CONFIG_RT_LIBC_TZ_DEFAULT_SEC=0
|
|||||||
# CONFIG_PKG_USING_FLASH_BLOB is not set
|
# CONFIG_PKG_USING_FLASH_BLOB is not set
|
||||||
# CONFIG_PKG_USING_MLIBC is not set
|
# CONFIG_PKG_USING_MLIBC is not set
|
||||||
# CONFIG_PKG_USING_TASK_MSG_BUS is not set
|
# CONFIG_PKG_USING_TASK_MSG_BUS is not set
|
||||||
|
# CONFIG_PKG_USING_UART_FRAMEWORK is not set
|
||||||
# CONFIG_PKG_USING_SFDB is not set
|
# CONFIG_PKG_USING_SFDB is not set
|
||||||
# CONFIG_PKG_USING_RTP is not set
|
# CONFIG_PKG_USING_RTP is not set
|
||||||
# CONFIG_PKG_USING_REB is not set
|
# CONFIG_PKG_USING_REB is not set
|
||||||
# CONFIG_PKG_USING_R_RHEALSTONE is not set
|
# CONFIG_PKG_USING_R_RHEALSTONE is not set
|
||||||
|
# CONFIG_PKG_USING_HEARTBEAT is not set
|
||||||
# end of system packages
|
# end of system packages
|
||||||
|
|
||||||
#
|
#
|
||||||
@ -711,6 +826,7 @@ CONFIG_RT_LIBC_TZ_DEFAULT_SEC=0
|
|||||||
# CONFIG_PKG_USING_MLX90632 is not set
|
# CONFIG_PKG_USING_MLX90632 is not set
|
||||||
# CONFIG_PKG_USING_MLX90393 is not set
|
# CONFIG_PKG_USING_MLX90393 is not set
|
||||||
# CONFIG_PKG_USING_MLX90392 is not set
|
# CONFIG_PKG_USING_MLX90392 is not set
|
||||||
|
# CONFIG_PKG_USING_MLX90394 is not set
|
||||||
# CONFIG_PKG_USING_MLX90397 is not set
|
# CONFIG_PKG_USING_MLX90397 is not set
|
||||||
# CONFIG_PKG_USING_MS5611 is not set
|
# CONFIG_PKG_USING_MS5611 is not set
|
||||||
# CONFIG_PKG_USING_MAX31865 is not set
|
# CONFIG_PKG_USING_MAX31865 is not set
|
||||||
@ -825,6 +941,8 @@ CONFIG_RT_LIBC_TZ_DEFAULT_SEC=0
|
|||||||
# CONFIG_PKG_USING_BT_MX01 is not set
|
# CONFIG_PKG_USING_BT_MX01 is not set
|
||||||
# CONFIG_PKG_USING_RGPOWER is not set
|
# CONFIG_PKG_USING_RGPOWER is not set
|
||||||
# CONFIG_PKG_USING_BT_MX02 is not set
|
# CONFIG_PKG_USING_BT_MX02 is not set
|
||||||
|
# CONFIG_PKG_USING_GC9A01 is not set
|
||||||
|
# CONFIG_PKG_USING_IK485 is not set
|
||||||
# CONFIG_PKG_USING_SPI_TOOLS is not set
|
# CONFIG_PKG_USING_SPI_TOOLS is not set
|
||||||
# end of peripheral libraries and drivers
|
# end of peripheral libraries and drivers
|
||||||
|
|
||||||
@ -934,6 +1052,7 @@ CONFIG_RT_LIBC_TZ_DEFAULT_SEC=0
|
|||||||
# CONFIG_PKG_USING_ARDUINO_MSGQ_C_CPP_DEMO is not set
|
# CONFIG_PKG_USING_ARDUINO_MSGQ_C_CPP_DEMO is not set
|
||||||
# CONFIG_PKG_USING_ARDUINO_SKETCH_LOADER_DEMO is not set
|
# CONFIG_PKG_USING_ARDUINO_SKETCH_LOADER_DEMO is not set
|
||||||
# CONFIG_PKG_USING_ARDUINO_ULTRASOUND_RADAR is not set
|
# CONFIG_PKG_USING_ARDUINO_ULTRASOUND_RADAR is not set
|
||||||
|
# CONFIG_PKG_USING_ARDUINO_RTDUINO_SENSORFUSION_SHIELD is not set
|
||||||
# CONFIG_PKG_USING_ARDUINO_NINEINONE_SENSOR_SHIELD is not set
|
# CONFIG_PKG_USING_ARDUINO_NINEINONE_SENSOR_SHIELD is not set
|
||||||
# CONFIG_PKG_USING_ARDUINO_SENSOR_KIT is not set
|
# CONFIG_PKG_USING_ARDUINO_SENSOR_KIT is not set
|
||||||
# CONFIG_PKG_USING_ARDUINO_MATLAB_SUPPORT is not set
|
# CONFIG_PKG_USING_ARDUINO_MATLAB_SUPPORT is not set
|
||||||
@ -1175,6 +1294,7 @@ CONFIG_BSP_UART_IRQ_BASE=30
|
|||||||
# CONFIG_BSP_USING_ADC is not set
|
# CONFIG_BSP_USING_ADC is not set
|
||||||
# CONFIG_BSP_USING_SPI is not set
|
# CONFIG_BSP_USING_SPI is not set
|
||||||
# CONFIG_BSP_USING_WDT is not set
|
# CONFIG_BSP_USING_WDT is not set
|
||||||
|
# CONFIG_BSP_USING_TIMER is not set
|
||||||
# CONFIG_BSP_USING_PWM is not set
|
# CONFIG_BSP_USING_PWM is not set
|
||||||
# CONFIG_BSP_USING_RTC is not set
|
# CONFIG_BSP_USING_RTC is not set
|
||||||
# end of General Drivers Configuration
|
# end of General Drivers Configuration
|
||||||
@ -1187,6 +1307,5 @@ CONFIG_BSP_GPIO_IRQ_BASE=41
|
|||||||
CONFIG_BSP_SYS_GPIO_IRQ_BASE=47
|
CONFIG_BSP_SYS_GPIO_IRQ_BASE=47
|
||||||
CONFIG_SOC_TYPE_SG2002=y
|
CONFIG_SOC_TYPE_SG2002=y
|
||||||
# CONFIG_BOARD_TYPE_MILKV_DUO is not set
|
# CONFIG_BOARD_TYPE_MILKV_DUO is not set
|
||||||
# CONFIG_BOARD_TYPE_MILKV_DUO_SPINOR is not set
|
|
||||||
CONFIG_BOARD_TYPE_MILKV_DUO256M=y
|
CONFIG_BOARD_TYPE_MILKV_DUO256M=y
|
||||||
# CONFIG_BOARD_TYPE_MILKV_DUO256M_SPINOR is not set
|
# CONFIG_BOARD_TYPE_MILKV_DUOS is not set
|
||||||
|
@ -58,18 +58,10 @@ choice
|
|||||||
select SOC_TYPE_CV180X
|
select SOC_TYPE_CV180X
|
||||||
bool "milkv-duo"
|
bool "milkv-duo"
|
||||||
|
|
||||||
config BOARD_TYPE_MILKV_DUO_SPINOR
|
|
||||||
select SOC_TYPE_CV180X
|
|
||||||
bool "milkv-duo-spinor"
|
|
||||||
|
|
||||||
config BOARD_TYPE_MILKV_DUO256M
|
config BOARD_TYPE_MILKV_DUO256M
|
||||||
select SOC_TYPE_SG2002
|
select SOC_TYPE_SG2002
|
||||||
bool "milkv-duo256m"
|
bool "milkv-duo256m"
|
||||||
|
|
||||||
config BOARD_TYPE_MILKV_DUO256M_SPINOR
|
|
||||||
select SOC_TYPE_SG2002
|
|
||||||
bool "milkv-duo256m-spinor"
|
|
||||||
|
|
||||||
config BOARD_TYPE_MILKV_DUOS
|
config BOARD_TYPE_MILKV_DUOS
|
||||||
select SOC_TYPE_SG2000
|
select SOC_TYPE_SG2000
|
||||||
bool "milkv-duos"
|
bool "milkv-duos"
|
||||||
|
@ -3,12 +3,82 @@
|
|||||||
|
|
||||||
/* RT-Thread Kernel */
|
/* RT-Thread Kernel */
|
||||||
|
|
||||||
|
/* klibc options */
|
||||||
|
|
||||||
|
/* rt_vsnprintf options */
|
||||||
|
|
||||||
|
#define RT_KLIBC_USING_VSNPRINTF_LONGLONG
|
||||||
|
#define RT_KLIBC_USING_VSNPRINTF_STANDARD
|
||||||
|
#define RT_KLIBC_USING_VSNPRINTF_DECIMAL_SPECIFIERS
|
||||||
|
#define RT_KLIBC_USING_VSNPRINTF_EXPONENTIAL_SPECIFIERS
|
||||||
|
#define RT_KLIBC_USING_VSNPRINTF_WRITEBACK_SPECIFIER
|
||||||
|
#define RT_KLIBC_USING_VSNPRINTF_CHECK_NUL_IN_FORMAT_SPECIFIER
|
||||||
|
#define RT_KLIBC_USING_VSNPRINTF_INTEGER_BUFFER_SIZE 32
|
||||||
|
#define RT_KLIBC_USING_VSNPRINTF_DECIMAL_BUFFER_SIZE 32
|
||||||
|
#define RT_KLIBC_USING_VSNPRINTF_FLOAT_PRECISION 6
|
||||||
|
#define RT_KLIBC_USING_VSNPRINTF_MAX_INTEGRAL_DIGITS_FOR_DECIMAL 9
|
||||||
|
#define RT_KLIBC_USING_VSNPRINTF_LOG10_TAYLOR_TERMS 4
|
||||||
|
/* end of rt_vsnprintf options */
|
||||||
|
|
||||||
|
/* rt_vsscanf options */
|
||||||
|
|
||||||
|
/* end of rt_vsscanf options */
|
||||||
|
|
||||||
|
/* rt_memset options */
|
||||||
|
|
||||||
|
/* end of rt_memset options */
|
||||||
|
|
||||||
|
/* rt_memcpy options */
|
||||||
|
|
||||||
|
/* end of rt_memcpy options */
|
||||||
|
|
||||||
|
/* rt_memmove options */
|
||||||
|
|
||||||
|
/* end of rt_memmove options */
|
||||||
|
|
||||||
|
/* rt_memcmp options */
|
||||||
|
|
||||||
|
/* end of rt_memcmp options */
|
||||||
|
|
||||||
|
/* rt_strstr options */
|
||||||
|
|
||||||
|
/* end of rt_strstr options */
|
||||||
|
|
||||||
|
/* rt_strcasecmp options */
|
||||||
|
|
||||||
|
/* end of rt_strcasecmp options */
|
||||||
|
|
||||||
|
/* rt_strncpy options */
|
||||||
|
|
||||||
|
/* end of rt_strncpy options */
|
||||||
|
|
||||||
|
/* rt_strcpy options */
|
||||||
|
|
||||||
|
/* end of rt_strcpy options */
|
||||||
|
|
||||||
|
/* rt_strncmp options */
|
||||||
|
|
||||||
|
/* end of rt_strncmp options */
|
||||||
|
|
||||||
|
/* rt_strcmp options */
|
||||||
|
|
||||||
|
/* end of rt_strcmp options */
|
||||||
|
|
||||||
|
/* rt_strlen options */
|
||||||
|
|
||||||
|
/* end of rt_strlen options */
|
||||||
|
|
||||||
|
/* rt_strnlen options */
|
||||||
|
|
||||||
|
/* end of rt_strnlen options */
|
||||||
|
/* end of klibc options */
|
||||||
#define RT_NAME_MAX 32
|
#define RT_NAME_MAX 32
|
||||||
#define RT_CPUS_NR 1
|
#define RT_CPUS_NR 1
|
||||||
#define RT_ALIGN_SIZE 8
|
#define RT_ALIGN_SIZE 8
|
||||||
#define RT_THREAD_PRIORITY_32
|
#define RT_THREAD_PRIORITY_32
|
||||||
#define RT_THREAD_PRIORITY_MAX 32
|
#define RT_THREAD_PRIORITY_MAX 32
|
||||||
#define RT_TICK_PER_SECOND 1000
|
#define RT_TICK_PER_SECOND 1000
|
||||||
|
#define RT_USING_OVERFLOW_CHECK
|
||||||
#define RT_USING_HOOK
|
#define RT_USING_HOOK
|
||||||
#define RT_HOOK_USING_FUNC_PTR
|
#define RT_HOOK_USING_FUNC_PTR
|
||||||
#define RT_USING_IDLE_HOOK
|
#define RT_USING_IDLE_HOOK
|
||||||
@ -18,19 +88,13 @@
|
|||||||
#define RT_TIMER_THREAD_PRIO 4
|
#define RT_TIMER_THREAD_PRIO 4
|
||||||
#define RT_TIMER_THREAD_STACK_SIZE 2048
|
#define RT_TIMER_THREAD_STACK_SIZE 2048
|
||||||
|
|
||||||
/* kservice optimization */
|
/* kservice options */
|
||||||
|
|
||||||
/* end of kservice optimization */
|
/* end of kservice options */
|
||||||
|
|
||||||
/* klibc optimization */
|
|
||||||
|
|
||||||
#define RT_KLIBC_USING_VSNPRINTF_LONGLONG
|
|
||||||
/* end of klibc optimization */
|
|
||||||
#define RT_USING_DEBUG
|
#define RT_USING_DEBUG
|
||||||
#define RT_DEBUGING_ASSERT
|
#define RT_DEBUGING_ASSERT
|
||||||
#define RT_DEBUGING_COLOR
|
#define RT_DEBUGING_COLOR
|
||||||
#define RT_DEBUGING_CONTEXT
|
#define RT_DEBUGING_CONTEXT
|
||||||
#define RT_USING_OVERFLOW_CHECK
|
|
||||||
|
|
||||||
/* Inter-Thread communication */
|
/* Inter-Thread communication */
|
||||||
|
|
||||||
@ -60,6 +124,7 @@
|
|||||||
#define ARCH_RISCV_FPU
|
#define ARCH_RISCV_FPU
|
||||||
#define ARCH_RISCV_FPU_D
|
#define ARCH_RISCV_FPU_D
|
||||||
#define ARCH_RISCV64
|
#define ARCH_RISCV64
|
||||||
|
#define ARCH_USING_NEW_CTX_SWITCH
|
||||||
|
|
||||||
/* RT-Thread Components */
|
/* RT-Thread Components */
|
||||||
|
|
||||||
|
@ -288,7 +288,6 @@ CONFIG_RT_DFS_ELM_MUTEX_TIMEOUT=3000
|
|||||||
|
|
||||||
CONFIG_RT_USING_DFS_DEVFS=y
|
CONFIG_RT_USING_DFS_DEVFS=y
|
||||||
CONFIG_RT_USING_DFS_ROMFS=y
|
CONFIG_RT_USING_DFS_ROMFS=y
|
||||||
# CONFIG_RT_USING_DFS_ROMFS_USER_ROOT is not set
|
|
||||||
# CONFIG_RT_USING_DFS_CROMFS is not set
|
# CONFIG_RT_USING_DFS_CROMFS is not set
|
||||||
# CONFIG_RT_USING_DFS_TMPFS is not set
|
# CONFIG_RT_USING_DFS_TMPFS is not set
|
||||||
# CONFIG_RT_USING_DFS_MQUEUE is not set
|
# CONFIG_RT_USING_DFS_MQUEUE is not set
|
||||||
@ -1380,7 +1379,6 @@ CONFIG_BSP_GPIO_IRQ_BASE=76
|
|||||||
CONFIG_BSP_SYS_GPIO_IRQ_BASE=86
|
CONFIG_BSP_SYS_GPIO_IRQ_BASE=86
|
||||||
CONFIG_SOC_TYPE_SG2002=y
|
CONFIG_SOC_TYPE_SG2002=y
|
||||||
CONFIG_BOARD_TYPE_MILKV_DUO256M=y
|
CONFIG_BOARD_TYPE_MILKV_DUO256M=y
|
||||||
# CONFIG_BOARD_TYPE_MILKV_DUO256M_SPINOR is not set
|
|
||||||
|
|
||||||
#
|
#
|
||||||
# General Drivers Configuration
|
# General Drivers Configuration
|
||||||
|
@ -42,10 +42,6 @@ choice
|
|||||||
select SOC_TYPE_SG2002
|
select SOC_TYPE_SG2002
|
||||||
bool "milkv-duo256m"
|
bool "milkv-duo256m"
|
||||||
|
|
||||||
config BOARD_TYPE_MILKV_DUO256M_SPINOR
|
|
||||||
select SOC_TYPE_SG2002
|
|
||||||
bool "milkv-duo256m-spinor"
|
|
||||||
|
|
||||||
endchoice
|
endchoice
|
||||||
|
|
||||||
source "$(BSP_DIR)/board/Kconfig"
|
source "$(BSP_DIR)/board/Kconfig"
|
||||||
|
@ -8,88 +8,7 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
#
|
#
|
||||||
# ------------rt_memset options------------
|
# rt_vsnprintf options
|
||||||
#
|
|
||||||
# CONFIG_RT_KLIBC_USING_USER_MEMSET is not set
|
|
||||||
# CONFIG_RT_KLIBC_USING_LIBC_MEMSET is not set
|
|
||||||
# CONFIG_RT_KLIBC_USING_TINY_MEMSET is not set
|
|
||||||
|
|
||||||
#
|
|
||||||
# ------------rt_memcpy options------------
|
|
||||||
#
|
|
||||||
# CONFIG_RT_KLIBC_USING_USER_MEMCPY is not set
|
|
||||||
# CONFIG_RT_KLIBC_USING_LIBC_MEMCPY is not set
|
|
||||||
# CONFIG_RT_KLIBC_USING_TINY_MEMCPY is not set
|
|
||||||
|
|
||||||
#
|
|
||||||
# ------------rt_memmove options------------
|
|
||||||
#
|
|
||||||
# CONFIG_RT_KLIBC_USING_USER_MEMMOVE is not set
|
|
||||||
# CONFIG_RT_KLIBC_USING_LIBC_MEMMOVE is not set
|
|
||||||
|
|
||||||
#
|
|
||||||
# ------------rt_memcmp options------------
|
|
||||||
#
|
|
||||||
# CONFIG_RT_KLIBC_USING_USER_MEMCMP is not set
|
|
||||||
# CONFIG_RT_KLIBC_USING_LIBC_MEMCMP is not set
|
|
||||||
|
|
||||||
#
|
|
||||||
# ------------rt_strstr options------------
|
|
||||||
#
|
|
||||||
# CONFIG_RT_KLIBC_USING_USER_STRSTR is not set
|
|
||||||
# CONFIG_RT_KLIBC_USING_LIBC_STRSTR is not set
|
|
||||||
|
|
||||||
#
|
|
||||||
# ------------rt_strcasecmp options------------
|
|
||||||
#
|
|
||||||
# CONFIG_RT_KLIBC_USING_USER_STRCASECMP is not set
|
|
||||||
|
|
||||||
#
|
|
||||||
# ------------rt_strncpy options------------
|
|
||||||
#
|
|
||||||
# CONFIG_RT_KLIBC_USING_USER_STRNCPY is not set
|
|
||||||
# CONFIG_RT_KLIBC_USING_LIBC_STRNCPY is not set
|
|
||||||
|
|
||||||
#
|
|
||||||
# ------------rt_strcpy options------------
|
|
||||||
#
|
|
||||||
# CONFIG_RT_KLIBC_USING_USER_STRCPY is not set
|
|
||||||
# CONFIG_RT_KLIBC_USING_LIBC_STRCPY is not set
|
|
||||||
|
|
||||||
#
|
|
||||||
# ------------rt_strncmp options------------
|
|
||||||
#
|
|
||||||
# CONFIG_RT_KLIBC_USING_USER_STRNCMP is not set
|
|
||||||
# CONFIG_RT_KLIBC_USING_LIBC_STRNCMP is not set
|
|
||||||
|
|
||||||
#
|
|
||||||
# ------------rt_strcmp options------------
|
|
||||||
#
|
|
||||||
# CONFIG_RT_KLIBC_USING_USER_STRCMP is not set
|
|
||||||
# CONFIG_RT_KLIBC_USING_LIBC_STRCMP is not set
|
|
||||||
|
|
||||||
#
|
|
||||||
# ------------rt_strlen options------------
|
|
||||||
#
|
|
||||||
# CONFIG_RT_KLIBC_USING_USER_STRLEN is not set
|
|
||||||
# CONFIG_RT_KLIBC_USING_LIBC_STRLEN is not set
|
|
||||||
|
|
||||||
#
|
|
||||||
# ------------rt_strlen options------------
|
|
||||||
#
|
|
||||||
|
|
||||||
#
|
|
||||||
# ------------rt_strnlen options------------
|
|
||||||
#
|
|
||||||
# CONFIG_RT_KLIBC_USING_USER_STRNLEN is not set
|
|
||||||
|
|
||||||
#
|
|
||||||
# ------------rt_vsscanf options------------
|
|
||||||
#
|
|
||||||
# CONFIG_RT_KLIBC_USING_LIBC_VSSCANF is not set
|
|
||||||
|
|
||||||
#
|
|
||||||
# ------------rt_vsnprintf options------------
|
|
||||||
#
|
#
|
||||||
# CONFIG_RT_KLIBC_USING_LIBC_VSNPRINTF is not set
|
# CONFIG_RT_KLIBC_USING_LIBC_VSNPRINTF is not set
|
||||||
CONFIG_RT_KLIBC_USING_VSNPRINTF_LONGLONG=y
|
CONFIG_RT_KLIBC_USING_VSNPRINTF_LONGLONG=y
|
||||||
@ -104,6 +23,99 @@ CONFIG_RT_KLIBC_USING_VSNPRINTF_DECIMAL_BUFFER_SIZE=32
|
|||||||
CONFIG_RT_KLIBC_USING_VSNPRINTF_FLOAT_PRECISION=6
|
CONFIG_RT_KLIBC_USING_VSNPRINTF_FLOAT_PRECISION=6
|
||||||
CONFIG_RT_KLIBC_USING_VSNPRINTF_MAX_INTEGRAL_DIGITS_FOR_DECIMAL=9
|
CONFIG_RT_KLIBC_USING_VSNPRINTF_MAX_INTEGRAL_DIGITS_FOR_DECIMAL=9
|
||||||
CONFIG_RT_KLIBC_USING_VSNPRINTF_LOG10_TAYLOR_TERMS=4
|
CONFIG_RT_KLIBC_USING_VSNPRINTF_LOG10_TAYLOR_TERMS=4
|
||||||
|
# end of rt_vsnprintf options
|
||||||
|
|
||||||
|
#
|
||||||
|
# rt_vsscanf options
|
||||||
|
#
|
||||||
|
# CONFIG_RT_KLIBC_USING_LIBC_VSSCANF is not set
|
||||||
|
# end of rt_vsscanf options
|
||||||
|
|
||||||
|
#
|
||||||
|
# rt_memset options
|
||||||
|
#
|
||||||
|
# CONFIG_RT_KLIBC_USING_USER_MEMSET is not set
|
||||||
|
# CONFIG_RT_KLIBC_USING_LIBC_MEMSET is not set
|
||||||
|
# CONFIG_RT_KLIBC_USING_TINY_MEMSET is not set
|
||||||
|
# end of rt_memset options
|
||||||
|
|
||||||
|
#
|
||||||
|
# rt_memcpy options
|
||||||
|
#
|
||||||
|
# CONFIG_RT_KLIBC_USING_USER_MEMCPY is not set
|
||||||
|
# CONFIG_RT_KLIBC_USING_LIBC_MEMCPY is not set
|
||||||
|
# CONFIG_RT_KLIBC_USING_TINY_MEMCPY is not set
|
||||||
|
# end of rt_memcpy options
|
||||||
|
|
||||||
|
#
|
||||||
|
# rt_memmove options
|
||||||
|
#
|
||||||
|
# CONFIG_RT_KLIBC_USING_USER_MEMMOVE is not set
|
||||||
|
# CONFIG_RT_KLIBC_USING_LIBC_MEMMOVE is not set
|
||||||
|
# end of rt_memmove options
|
||||||
|
|
||||||
|
#
|
||||||
|
# rt_memcmp options
|
||||||
|
#
|
||||||
|
# CONFIG_RT_KLIBC_USING_USER_MEMCMP is not set
|
||||||
|
# CONFIG_RT_KLIBC_USING_LIBC_MEMCMP is not set
|
||||||
|
# end of rt_memcmp options
|
||||||
|
|
||||||
|
#
|
||||||
|
# rt_strstr options
|
||||||
|
#
|
||||||
|
# CONFIG_RT_KLIBC_USING_USER_STRSTR is not set
|
||||||
|
# CONFIG_RT_KLIBC_USING_LIBC_STRSTR is not set
|
||||||
|
# end of rt_strstr options
|
||||||
|
|
||||||
|
#
|
||||||
|
# rt_strcasecmp options
|
||||||
|
#
|
||||||
|
# CONFIG_RT_KLIBC_USING_USER_STRCASECMP is not set
|
||||||
|
# end of rt_strcasecmp options
|
||||||
|
|
||||||
|
#
|
||||||
|
# rt_strncpy options
|
||||||
|
#
|
||||||
|
# CONFIG_RT_KLIBC_USING_USER_STRNCPY is not set
|
||||||
|
# CONFIG_RT_KLIBC_USING_LIBC_STRNCPY is not set
|
||||||
|
# end of rt_strncpy options
|
||||||
|
|
||||||
|
#
|
||||||
|
# rt_strcpy options
|
||||||
|
#
|
||||||
|
# CONFIG_RT_KLIBC_USING_USER_STRCPY is not set
|
||||||
|
# CONFIG_RT_KLIBC_USING_LIBC_STRCPY is not set
|
||||||
|
# end of rt_strcpy options
|
||||||
|
|
||||||
|
#
|
||||||
|
# rt_strncmp options
|
||||||
|
#
|
||||||
|
# CONFIG_RT_KLIBC_USING_USER_STRNCMP is not set
|
||||||
|
# CONFIG_RT_KLIBC_USING_LIBC_STRNCMP is not set
|
||||||
|
# end of rt_strncmp options
|
||||||
|
|
||||||
|
#
|
||||||
|
# rt_strcmp options
|
||||||
|
#
|
||||||
|
# CONFIG_RT_KLIBC_USING_USER_STRCMP is not set
|
||||||
|
# CONFIG_RT_KLIBC_USING_LIBC_STRCMP is not set
|
||||||
|
# end of rt_strcmp options
|
||||||
|
|
||||||
|
#
|
||||||
|
# rt_strlen options
|
||||||
|
#
|
||||||
|
# CONFIG_RT_KLIBC_USING_USER_STRLEN is not set
|
||||||
|
# CONFIG_RT_KLIBC_USING_LIBC_STRLEN is not set
|
||||||
|
# end of rt_strlen options
|
||||||
|
|
||||||
|
#
|
||||||
|
# rt_strnlen options
|
||||||
|
#
|
||||||
|
# CONFIG_RT_KLIBC_USING_USER_STRNLEN is not set
|
||||||
|
# end of rt_strnlen options
|
||||||
|
|
||||||
|
# CONFIG_RT_UTEST_TC_USING_KLIBC is not set
|
||||||
# end of klibc options
|
# end of klibc options
|
||||||
|
|
||||||
CONFIG_RT_NAME_MAX=8
|
CONFIG_RT_NAME_MAX=8
|
||||||
@ -144,6 +156,7 @@ CONFIG_RT_DEBUGING_COLOR=y
|
|||||||
CONFIG_RT_DEBUGING_CONTEXT=y
|
CONFIG_RT_DEBUGING_CONTEXT=y
|
||||||
# CONFIG_RT_DEBUGING_AUTO_INIT is not set
|
# CONFIG_RT_DEBUGING_AUTO_INIT is not set
|
||||||
# CONFIG_RT_DEBUGING_PAGE_LEAK is not set
|
# CONFIG_RT_DEBUGING_PAGE_LEAK is not set
|
||||||
|
# CONFIG_RT_USING_CI_ACTION is not set
|
||||||
|
|
||||||
#
|
#
|
||||||
# Inter-Thread communication
|
# Inter-Thread communication
|
||||||
@ -260,7 +273,6 @@ CONFIG_RT_DFS_ELM_MUTEX_TIMEOUT=3000
|
|||||||
|
|
||||||
CONFIG_RT_USING_DFS_DEVFS=y
|
CONFIG_RT_USING_DFS_DEVFS=y
|
||||||
CONFIG_RT_USING_DFS_ROMFS=y
|
CONFIG_RT_USING_DFS_ROMFS=y
|
||||||
# CONFIG_RT_USING_DFS_ROMFS_USER_ROOT is not set
|
|
||||||
CONFIG_RT_USING_DFS_PTYFS=y
|
CONFIG_RT_USING_DFS_PTYFS=y
|
||||||
# CONFIG_RT_USING_DFS_CROMFS is not set
|
# CONFIG_RT_USING_DFS_CROMFS is not set
|
||||||
CONFIG_RT_USING_DFS_TMPFS=y
|
CONFIG_RT_USING_DFS_TMPFS=y
|
||||||
@ -296,6 +308,7 @@ CONFIG_RT_USING_SERIAL_V1=y
|
|||||||
# CONFIG_RT_USING_SERIAL_V2 is not set
|
# CONFIG_RT_USING_SERIAL_V2 is not set
|
||||||
CONFIG_RT_SERIAL_USING_DMA=y
|
CONFIG_RT_SERIAL_USING_DMA=y
|
||||||
CONFIG_RT_SERIAL_RB_BUFSZ=64
|
CONFIG_RT_SERIAL_RB_BUFSZ=64
|
||||||
|
CONFIG_RT_USING_SERIAL_BYPASS=y
|
||||||
# CONFIG_RT_USING_CAN is not set
|
# CONFIG_RT_USING_CAN is not set
|
||||||
CONFIG_RT_USING_CPUTIME=y
|
CONFIG_RT_USING_CPUTIME=y
|
||||||
CONFIG_RT_USING_CPUTIME_RISCV=y
|
CONFIG_RT_USING_CPUTIME_RISCV=y
|
||||||
@ -324,6 +337,7 @@ CONFIG_RT_MMCSD_STACK_SIZE=8192
|
|||||||
CONFIG_RT_MMCSD_THREAD_PREORITY=22
|
CONFIG_RT_MMCSD_THREAD_PREORITY=22
|
||||||
CONFIG_RT_MMCSD_MAX_PARTITION=16
|
CONFIG_RT_MMCSD_MAX_PARTITION=16
|
||||||
# CONFIG_RT_SDIO_DEBUG is not set
|
# CONFIG_RT_SDIO_DEBUG is not set
|
||||||
|
# CONFIG_RT_USING_SDHCI is not set
|
||||||
# CONFIG_RT_USING_SPI is not set
|
# CONFIG_RT_USING_SPI is not set
|
||||||
CONFIG_RT_USING_WDT=y
|
CONFIG_RT_USING_WDT=y
|
||||||
# CONFIG_RT_USING_AUDIO is not set
|
# CONFIG_RT_USING_AUDIO is not set
|
||||||
@ -522,6 +536,7 @@ CONFIG_RT_USING_ADT_REF=y
|
|||||||
CONFIG_RT_USING_LWP=y
|
CONFIG_RT_USING_LWP=y
|
||||||
CONFIG_LWP_DEBUG=y
|
CONFIG_LWP_DEBUG=y
|
||||||
# CONFIG_LWP_DEBUG_INIT is not set
|
# CONFIG_LWP_DEBUG_INIT is not set
|
||||||
|
CONFIG_LWP_USING_RUNTIME=y
|
||||||
CONFIG_RT_LWP_MAX_NR=30
|
CONFIG_RT_LWP_MAX_NR=30
|
||||||
CONFIG_LWP_TASK_STACK_SIZE=16384
|
CONFIG_LWP_TASK_STACK_SIZE=16384
|
||||||
CONFIG_RT_CH_MSG_MAX_NR=1024
|
CONFIG_RT_CH_MSG_MAX_NR=1024
|
||||||
@ -680,6 +695,7 @@ CONFIG_LWP_PTY_MAX_PARIS_LIMIT=64
|
|||||||
# CONFIG_PKG_USING_MATTER_ADAPTATION_LAYER is not set
|
# CONFIG_PKG_USING_MATTER_ADAPTATION_LAYER is not set
|
||||||
# CONFIG_PKG_USING_LHC_MODBUS is not set
|
# CONFIG_PKG_USING_LHC_MODBUS is not set
|
||||||
# CONFIG_PKG_USING_QMODBUS is not set
|
# CONFIG_PKG_USING_QMODBUS is not set
|
||||||
|
# CONFIG_PKG_USING_PNET is not set
|
||||||
# end of IoT - internet of things
|
# end of IoT - internet of things
|
||||||
|
|
||||||
#
|
#
|
||||||
@ -707,6 +723,7 @@ CONFIG_LWP_PTY_MAX_PARIS_LIMIT=64
|
|||||||
# CONFIG_PKG_USING_JSMN is not set
|
# CONFIG_PKG_USING_JSMN is not set
|
||||||
# CONFIG_PKG_USING_AGILE_JSMN is not set
|
# CONFIG_PKG_USING_AGILE_JSMN is not set
|
||||||
# CONFIG_PKG_USING_PARSON is not set
|
# CONFIG_PKG_USING_PARSON is not set
|
||||||
|
# CONFIG_PKG_USING_RYAN_JSON is not set
|
||||||
# end of JSON: JavaScript Object Notation, a lightweight data-interchange format
|
# end of JSON: JavaScript Object Notation, a lightweight data-interchange format
|
||||||
|
|
||||||
#
|
#
|
||||||
@ -811,6 +828,7 @@ CONFIG_LWP_PTY_MAX_PARIS_LIMIT=64
|
|||||||
# CONFIG_PKG_USING_ARMV7M_DWT_TOOL is not set
|
# CONFIG_PKG_USING_ARMV7M_DWT_TOOL is not set
|
||||||
# CONFIG_PKG_USING_VOFA_PLUS is not set
|
# CONFIG_PKG_USING_VOFA_PLUS is not set
|
||||||
# CONFIG_PKG_USING_ZDEBUG is not set
|
# CONFIG_PKG_USING_ZDEBUG is not set
|
||||||
|
# CONFIG_PKG_USING_RVBACKTRACE is not set
|
||||||
# end of tools packages
|
# end of tools packages
|
||||||
|
|
||||||
#
|
#
|
||||||
@ -822,7 +840,6 @@ CONFIG_LWP_PTY_MAX_PARIS_LIMIT=64
|
|||||||
#
|
#
|
||||||
# CONFIG_PKG_USING_RT_MEMCPY_CM is not set
|
# CONFIG_PKG_USING_RT_MEMCPY_CM is not set
|
||||||
# CONFIG_PKG_USING_RT_KPRINTF_THREADSAFE is not set
|
# CONFIG_PKG_USING_RT_KPRINTF_THREADSAFE is not set
|
||||||
# CONFIG_PKG_USING_RT_VSNPRINTF_FULL is not set
|
|
||||||
# end of enhanced kernel services
|
# end of enhanced kernel services
|
||||||
|
|
||||||
# CONFIG_PKG_USING_AUNITY is not set
|
# CONFIG_PKG_USING_AUNITY is not set
|
||||||
@ -900,10 +917,12 @@ CONFIG_LWP_PTY_MAX_PARIS_LIMIT=64
|
|||||||
# CONFIG_PKG_USING_FLASH_BLOB is not set
|
# CONFIG_PKG_USING_FLASH_BLOB is not set
|
||||||
# CONFIG_PKG_USING_MLIBC is not set
|
# CONFIG_PKG_USING_MLIBC is not set
|
||||||
# CONFIG_PKG_USING_TASK_MSG_BUS is not set
|
# CONFIG_PKG_USING_TASK_MSG_BUS is not set
|
||||||
|
# CONFIG_PKG_USING_UART_FRAMEWORK is not set
|
||||||
# CONFIG_PKG_USING_SFDB is not set
|
# CONFIG_PKG_USING_SFDB is not set
|
||||||
# CONFIG_PKG_USING_RTP is not set
|
# CONFIG_PKG_USING_RTP is not set
|
||||||
# CONFIG_PKG_USING_REB is not set
|
# CONFIG_PKG_USING_REB is not set
|
||||||
# CONFIG_PKG_USING_R_RHEALSTONE is not set
|
# CONFIG_PKG_USING_R_RHEALSTONE is not set
|
||||||
|
# CONFIG_PKG_USING_HEARTBEAT is not set
|
||||||
# end of system packages
|
# end of system packages
|
||||||
|
|
||||||
#
|
#
|
||||||
@ -917,6 +936,8 @@ CONFIG_LWP_PTY_MAX_PARIS_LIMIT=64
|
|||||||
#
|
#
|
||||||
# STM32 HAL & SDK Drivers
|
# STM32 HAL & SDK Drivers
|
||||||
#
|
#
|
||||||
|
# CONFIG_PKG_USING_STM32F4_HAL_DRIVER is not set
|
||||||
|
# CONFIG_PKG_USING_STM32F4_CMSIS_DRIVER is not set
|
||||||
# CONFIG_PKG_USING_STM32L4_HAL_DRIVER is not set
|
# CONFIG_PKG_USING_STM32L4_HAL_DRIVER is not set
|
||||||
# CONFIG_PKG_USING_STM32L4_CMSIS_DRIVER is not set
|
# CONFIG_PKG_USING_STM32L4_CMSIS_DRIVER is not set
|
||||||
# CONFIG_PKG_USING_STM32WB55_SDK is not set
|
# CONFIG_PKG_USING_STM32WB55_SDK is not set
|
||||||
@ -998,6 +1019,7 @@ CONFIG_LWP_PTY_MAX_PARIS_LIMIT=64
|
|||||||
# CONFIG_PKG_USING_MLX90632 is not set
|
# CONFIG_PKG_USING_MLX90632 is not set
|
||||||
# CONFIG_PKG_USING_MLX90393 is not set
|
# CONFIG_PKG_USING_MLX90393 is not set
|
||||||
# CONFIG_PKG_USING_MLX90392 is not set
|
# CONFIG_PKG_USING_MLX90392 is not set
|
||||||
|
# CONFIG_PKG_USING_MLX90394 is not set
|
||||||
# CONFIG_PKG_USING_MLX90397 is not set
|
# CONFIG_PKG_USING_MLX90397 is not set
|
||||||
# CONFIG_PKG_USING_MS5611 is not set
|
# CONFIG_PKG_USING_MS5611 is not set
|
||||||
# CONFIG_PKG_USING_MAX31865 is not set
|
# CONFIG_PKG_USING_MAX31865 is not set
|
||||||
@ -1111,6 +1133,9 @@ CONFIG_LWP_PTY_MAX_PARIS_LIMIT=64
|
|||||||
# CONFIG_PKG_USING_SYSTEM_RUN_LED is not set
|
# CONFIG_PKG_USING_SYSTEM_RUN_LED is not set
|
||||||
# CONFIG_PKG_USING_BT_MX01 is not set
|
# CONFIG_PKG_USING_BT_MX01 is not set
|
||||||
# CONFIG_PKG_USING_RGPOWER is not set
|
# CONFIG_PKG_USING_RGPOWER is not set
|
||||||
|
# CONFIG_PKG_USING_BT_MX02 is not set
|
||||||
|
# CONFIG_PKG_USING_GC9A01 is not set
|
||||||
|
# CONFIG_PKG_USING_IK485 is not set
|
||||||
# CONFIG_PKG_USING_SPI_TOOLS is not set
|
# CONFIG_PKG_USING_SPI_TOOLS is not set
|
||||||
# end of peripheral libraries and drivers
|
# end of peripheral libraries and drivers
|
||||||
|
|
||||||
@ -1226,6 +1251,7 @@ CONFIG_PKG_ZLIB_VER="latest"
|
|||||||
# CONFIG_PKG_USING_ARDUINO_MSGQ_C_CPP_DEMO is not set
|
# CONFIG_PKG_USING_ARDUINO_MSGQ_C_CPP_DEMO is not set
|
||||||
# CONFIG_PKG_USING_ARDUINO_SKETCH_LOADER_DEMO is not set
|
# CONFIG_PKG_USING_ARDUINO_SKETCH_LOADER_DEMO is not set
|
||||||
# CONFIG_PKG_USING_ARDUINO_ULTRASOUND_RADAR is not set
|
# CONFIG_PKG_USING_ARDUINO_ULTRASOUND_RADAR is not set
|
||||||
|
# CONFIG_PKG_USING_ARDUINO_RTDUINO_SENSORFUSION_SHIELD is not set
|
||||||
# CONFIG_PKG_USING_ARDUINO_NINEINONE_SENSOR_SHIELD is not set
|
# CONFIG_PKG_USING_ARDUINO_NINEINONE_SENSOR_SHIELD is not set
|
||||||
# CONFIG_PKG_USING_ARDUINO_SENSOR_KIT is not set
|
# CONFIG_PKG_USING_ARDUINO_SENSOR_KIT is not set
|
||||||
# CONFIG_PKG_USING_ARDUINO_MATLAB_SUPPORT is not set
|
# CONFIG_PKG_USING_ARDUINO_MATLAB_SUPPORT is not set
|
||||||
@ -1482,9 +1508,7 @@ CONFIG_BSP_SYS_GPIO_IRQ_BASE=70
|
|||||||
CONFIG___STACKSIZE__=8192
|
CONFIG___STACKSIZE__=8192
|
||||||
CONFIG_SOC_TYPE_SG2002=y
|
CONFIG_SOC_TYPE_SG2002=y
|
||||||
# CONFIG_BOARD_TYPE_MILKV_DUO is not set
|
# CONFIG_BOARD_TYPE_MILKV_DUO is not set
|
||||||
# CONFIG_BOARD_TYPE_MILKV_DUO_SPINOR is not set
|
|
||||||
CONFIG_BOARD_TYPE_MILKV_DUO256M=y
|
CONFIG_BOARD_TYPE_MILKV_DUO256M=y
|
||||||
# CONFIG_BOARD_TYPE_MILKV_DUO256M_SPINOR is not set
|
|
||||||
# CONFIG_BOARD_TYPE_MILKV_DUOS is not set
|
# CONFIG_BOARD_TYPE_MILKV_DUOS is not set
|
||||||
CONFIG_BSP_ROOTFS_TYPE_DISKFS=y
|
CONFIG_BSP_ROOTFS_TYPE_DISKFS=y
|
||||||
# CONFIG_BSP_ROOTFS_TYPE_CROMFS is not set
|
# CONFIG_BSP_ROOTFS_TYPE_CROMFS is not set
|
||||||
|
@ -64,18 +64,10 @@ choice
|
|||||||
select SOC_TYPE_CV180X
|
select SOC_TYPE_CV180X
|
||||||
bool "milkv-duo"
|
bool "milkv-duo"
|
||||||
|
|
||||||
config BOARD_TYPE_MILKV_DUO_SPINOR
|
|
||||||
select SOC_TYPE_CV180X
|
|
||||||
bool "milkv-duo-spinor"
|
|
||||||
|
|
||||||
config BOARD_TYPE_MILKV_DUO256M
|
config BOARD_TYPE_MILKV_DUO256M
|
||||||
select SOC_TYPE_SG2002
|
select SOC_TYPE_SG2002
|
||||||
bool "milkv-duo256m"
|
bool "milkv-duo256m"
|
||||||
|
|
||||||
config BOARD_TYPE_MILKV_DUO256M_SPINOR
|
|
||||||
select SOC_TYPE_SG2002
|
|
||||||
bool "milkv-duo256m-spinor"
|
|
||||||
|
|
||||||
config BOARD_TYPE_MILKV_DUOS
|
config BOARD_TYPE_MILKV_DUOS
|
||||||
select SOC_TYPE_SG2000
|
select SOC_TYPE_SG2000
|
||||||
bool "milkv-duos"
|
bool "milkv-duos"
|
||||||
|
@ -12,9 +12,9 @@
|
|||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <drivers/dev_pin.h>
|
#include <drivers/dev_pin.h>
|
||||||
|
|
||||||
#if defined(BOARD_TYPE_MILKV_DUO256M) || defined(BOARD_TYPE_MILKV_DUO256M_SPINOR)
|
#if defined(BOARD_TYPE_MILKV_DUO256M)
|
||||||
#define LED_PIN "E02" /* Onboard LED pins */
|
#define LED_PIN "E02" /* Onboard LED pins */
|
||||||
#elif defined(BOARD_TYPE_MILKV_DUO) || defined(BOARD_TYPE_MILKV_DUO_SPINOR)
|
#elif defined(BOARD_TYPE_MILKV_DUO)
|
||||||
#define LED_PIN "C24" /* Onboard LED pins */
|
#define LED_PIN "C24" /* Onboard LED pins */
|
||||||
#elif defined(BOARD_TYPE_MILKV_DUOS)
|
#elif defined(BOARD_TYPE_MILKV_DUOS)
|
||||||
#define LED_PIN "A29" /* Onboard LED pins */
|
#define LED_PIN "A29" /* Onboard LED pins */
|
||||||
|
@ -5,48 +5,7 @@
|
|||||||
|
|
||||||
/* klibc options */
|
/* klibc options */
|
||||||
|
|
||||||
/* ------------rt_memset options------------ */
|
/* rt_vsnprintf options */
|
||||||
|
|
||||||
|
|
||||||
/* ------------rt_memcpy options------------ */
|
|
||||||
|
|
||||||
|
|
||||||
/* ------------rt_memmove options------------ */
|
|
||||||
|
|
||||||
|
|
||||||
/* ------------rt_memcmp options------------ */
|
|
||||||
|
|
||||||
|
|
||||||
/* ------------rt_strstr options------------ */
|
|
||||||
|
|
||||||
|
|
||||||
/* ------------rt_strcasecmp options------------ */
|
|
||||||
|
|
||||||
|
|
||||||
/* ------------rt_strncpy options------------ */
|
|
||||||
|
|
||||||
|
|
||||||
/* ------------rt_strcpy options------------ */
|
|
||||||
|
|
||||||
|
|
||||||
/* ------------rt_strncmp options------------ */
|
|
||||||
|
|
||||||
|
|
||||||
/* ------------rt_strcmp options------------ */
|
|
||||||
|
|
||||||
|
|
||||||
/* ------------rt_strlen options------------ */
|
|
||||||
|
|
||||||
|
|
||||||
/* ------------rt_strlen options------------ */
|
|
||||||
|
|
||||||
/* ------------rt_strnlen options------------ */
|
|
||||||
|
|
||||||
|
|
||||||
/* ------------rt_vsscanf options------------ */
|
|
||||||
|
|
||||||
|
|
||||||
/* ------------rt_vsnprintf options------------ */
|
|
||||||
|
|
||||||
#define RT_KLIBC_USING_VSNPRINTF_LONGLONG
|
#define RT_KLIBC_USING_VSNPRINTF_LONGLONG
|
||||||
#define RT_KLIBC_USING_VSNPRINTF_STANDARD
|
#define RT_KLIBC_USING_VSNPRINTF_STANDARD
|
||||||
@ -59,6 +18,59 @@
|
|||||||
#define RT_KLIBC_USING_VSNPRINTF_FLOAT_PRECISION 6
|
#define RT_KLIBC_USING_VSNPRINTF_FLOAT_PRECISION 6
|
||||||
#define RT_KLIBC_USING_VSNPRINTF_MAX_INTEGRAL_DIGITS_FOR_DECIMAL 9
|
#define RT_KLIBC_USING_VSNPRINTF_MAX_INTEGRAL_DIGITS_FOR_DECIMAL 9
|
||||||
#define RT_KLIBC_USING_VSNPRINTF_LOG10_TAYLOR_TERMS 4
|
#define RT_KLIBC_USING_VSNPRINTF_LOG10_TAYLOR_TERMS 4
|
||||||
|
/* end of rt_vsnprintf options */
|
||||||
|
|
||||||
|
/* rt_vsscanf options */
|
||||||
|
|
||||||
|
/* end of rt_vsscanf options */
|
||||||
|
|
||||||
|
/* rt_memset options */
|
||||||
|
|
||||||
|
/* end of rt_memset options */
|
||||||
|
|
||||||
|
/* rt_memcpy options */
|
||||||
|
|
||||||
|
/* end of rt_memcpy options */
|
||||||
|
|
||||||
|
/* rt_memmove options */
|
||||||
|
|
||||||
|
/* end of rt_memmove options */
|
||||||
|
|
||||||
|
/* rt_memcmp options */
|
||||||
|
|
||||||
|
/* end of rt_memcmp options */
|
||||||
|
|
||||||
|
/* rt_strstr options */
|
||||||
|
|
||||||
|
/* end of rt_strstr options */
|
||||||
|
|
||||||
|
/* rt_strcasecmp options */
|
||||||
|
|
||||||
|
/* end of rt_strcasecmp options */
|
||||||
|
|
||||||
|
/* rt_strncpy options */
|
||||||
|
|
||||||
|
/* end of rt_strncpy options */
|
||||||
|
|
||||||
|
/* rt_strcpy options */
|
||||||
|
|
||||||
|
/* end of rt_strcpy options */
|
||||||
|
|
||||||
|
/* rt_strncmp options */
|
||||||
|
|
||||||
|
/* end of rt_strncmp options */
|
||||||
|
|
||||||
|
/* rt_strcmp options */
|
||||||
|
|
||||||
|
/* end of rt_strcmp options */
|
||||||
|
|
||||||
|
/* rt_strlen options */
|
||||||
|
|
||||||
|
/* end of rt_strlen options */
|
||||||
|
|
||||||
|
/* rt_strnlen options */
|
||||||
|
|
||||||
|
/* end of rt_strnlen options */
|
||||||
/* end of klibc options */
|
/* end of klibc options */
|
||||||
#define RT_NAME_MAX 8
|
#define RT_NAME_MAX 8
|
||||||
#define RT_USING_SMART
|
#define RT_USING_SMART
|
||||||
@ -195,6 +207,7 @@
|
|||||||
#define RT_USING_SERIAL_V1
|
#define RT_USING_SERIAL_V1
|
||||||
#define RT_SERIAL_USING_DMA
|
#define RT_SERIAL_USING_DMA
|
||||||
#define RT_SERIAL_RB_BUFSZ 64
|
#define RT_SERIAL_RB_BUFSZ 64
|
||||||
|
#define RT_USING_SERIAL_BYPASS
|
||||||
#define RT_USING_CPUTIME
|
#define RT_USING_CPUTIME
|
||||||
#define RT_USING_CPUTIME_RISCV
|
#define RT_USING_CPUTIME_RISCV
|
||||||
#define CPUTIME_TIMER_FREQ 25000000
|
#define CPUTIME_TIMER_FREQ 25000000
|
||||||
@ -337,6 +350,7 @@
|
|||||||
/* end of Utilities */
|
/* end of Utilities */
|
||||||
#define RT_USING_LWP
|
#define RT_USING_LWP
|
||||||
#define LWP_DEBUG
|
#define LWP_DEBUG
|
||||||
|
#define LWP_USING_RUNTIME
|
||||||
#define RT_LWP_MAX_NR 30
|
#define RT_LWP_MAX_NR 30
|
||||||
#define LWP_TASK_STACK_SIZE 16384
|
#define LWP_TASK_STACK_SIZE 16384
|
||||||
#define RT_CH_MSG_MAX_NR 1024
|
#define RT_CH_MSG_MAX_NR 1024
|
||||||
|
@ -12,9 +12,9 @@ CPPDEFINES = []
|
|||||||
CPPPATH = [cwd]
|
CPPPATH = [cwd]
|
||||||
|
|
||||||
CHIP_TYPE = 'cv180x'
|
CHIP_TYPE = 'cv180x'
|
||||||
if GetDepend('BOARD_TYPE_MILKV_DUO256M') or GetDepend('BOARD_TYPE_MILKV_DUO256M_SPINOR') or GetDepend('BOARD_TYPE_MILKV_DUO256M_SPINAND') or GetDepend('BOARD_TYPE_MILKV_DUOS'):
|
if GetDepend('BOARD_TYPE_MILKV_DUO256M') or GetDepend('BOARD_TYPE_MILKV_DUOS'):
|
||||||
CHIP_TYPE = 'cv181x'
|
CHIP_TYPE = 'cv181x'
|
||||||
elif GetDepend('BOARD_TYPE_MILKV_DUO') or GetDepend('BOARD_TYPE_MILKV_DUO_SPINOR') or GetDepend('BOARD_TYPE_MILKV_DUO_SPINAND'):
|
elif GetDepend('BOARD_TYPE_MILKV_DUO'):
|
||||||
CHIP_TYPE = 'cv180x'
|
CHIP_TYPE = 'cv180x'
|
||||||
|
|
||||||
CPPPATH += [cwd + r'/libraries']
|
CPPPATH += [cwd + r'/libraries']
|
||||||
|
@ -154,7 +154,7 @@ static const struct rt_adc_ops _adc_ops =
|
|||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
#if defined(BOARD_TYPE_MILKV_DUO) || defined(BOARD_TYPE_MILKV_DUO_SPINOR)
|
#if defined(BOARD_TYPE_MILKV_DUO)
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* cv180xb supports
|
* cv180xb supports
|
||||||
@ -189,7 +189,7 @@ static const char *pinname_whitelist_adc3_nodie[] = {
|
|||||||
};
|
};
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#elif defined(BOARD_TYPE_MILKV_DUO256M) || defined(BOARD_TYPE_MILKV_DUO256M_SPINOR)
|
#elif defined(BOARD_TYPE_MILKV_DUO256M)
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* sg2002 supports
|
* sg2002 supports
|
||||||
|
@ -428,7 +428,7 @@ static void dw_iic_init(dw_iic_regs_t *iic_base)
|
|||||||
dw_iic_set_standard_scl_lcnt(iic_base, (((IC_CLK * 4700) / 1000U) - 1U));
|
dw_iic_set_standard_scl_lcnt(iic_base, (((IC_CLK * 4700) / 1000U) - 1U));
|
||||||
}
|
}
|
||||||
|
|
||||||
#if defined(BOARD_TYPE_MILKV_DUO) || defined(BOARD_TYPE_MILKV_DUO_SPINOR)
|
#if defined(BOARD_TYPE_MILKV_DUO)
|
||||||
|
|
||||||
#ifdef BSP_USING_I2C0
|
#ifdef BSP_USING_I2C0
|
||||||
static const char *pinname_whitelist_i2c0_scl[] = {
|
static const char *pinname_whitelist_i2c0_scl[] = {
|
||||||
@ -487,7 +487,7 @@ static const char *pinname_whitelist_i2c4_sda[] = {
|
|||||||
};
|
};
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#elif defined(BOARD_TYPE_MILKV_DUO256M) || defined(BOARD_TYPE_MILKV_DUO256M_SPINOR)
|
#elif defined(BOARD_TYPE_MILKV_DUO256M)
|
||||||
|
|
||||||
#ifdef BSP_USING_I2C0
|
#ifdef BSP_USING_I2C0
|
||||||
// I2C0 is not ALLOWED for Duo256
|
// I2C0 is not ALLOWED for Duo256
|
||||||
|
@ -137,7 +137,7 @@ static struct cvi_pwm_dev cvi_pwm[] =
|
|||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
#if defined(BOARD_TYPE_MILKV_DUO) || defined(BOARD_TYPE_MILKV_DUO_SPINOR)
|
#if defined(BOARD_TYPE_MILKV_DUO)
|
||||||
|
|
||||||
#ifdef BSP_USING_PWM0
|
#ifdef BSP_USING_PWM0
|
||||||
static const char *pinname_whitelist_pwm0[] = {
|
static const char *pinname_whitelist_pwm0[] = {
|
||||||
@ -209,7 +209,7 @@ static const char *pinname_whitelist_pwm15[] = {
|
|||||||
};
|
};
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#elif defined(BOARD_TYPE_MILKV_DUO256M) || defined(BOARD_TYPE_MILKV_DUO256M_SPINOR)
|
#elif defined(BOARD_TYPE_MILKV_DUO256M)
|
||||||
|
|
||||||
#ifdef BSP_USING_PWM0
|
#ifdef BSP_USING_PWM0
|
||||||
static const char *pinname_whitelist_pwm0[] = {
|
static const char *pinname_whitelist_pwm0[] = {
|
||||||
|
@ -225,7 +225,7 @@ static const struct rt_spi_ops _spi_ops =
|
|||||||
.xfer = spi_xfer,
|
.xfer = spi_xfer,
|
||||||
};
|
};
|
||||||
|
|
||||||
#if defined(BOARD_TYPE_MILKV_DUO) || defined(BOARD_TYPE_MILKV_DUO_SPINOR) || defined(BOARD_TYPE_MILKV_DUO256M) || defined(BOARD_TYPE_MILKV_DUO256M_SPINOR)
|
#if defined(BOARD_TYPE_MILKV_DUO) || defined(BOARD_TYPE_MILKV_DUO256M)
|
||||||
// For Duo / Duo 256m, only SPI2 are exported on board.
|
// For Duo / Duo 256m, only SPI2 are exported on board.
|
||||||
#ifdef BSP_USING_SPI0
|
#ifdef BSP_USING_SPI0
|
||||||
static const char *pinname_whitelist_spi0_sck[] = {
|
static const char *pinname_whitelist_spi0_sck[] = {
|
||||||
|
@ -240,7 +240,7 @@ static void rt_hw_uart_isr(int irqno, void *param)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#if defined(BOARD_TYPE_MILKV_DUO) || defined(BOARD_TYPE_MILKV_DUO_SPINOR)
|
#if defined(BOARD_TYPE_MILKV_DUO)
|
||||||
|
|
||||||
#ifdef BSP_USING_UART0
|
#ifdef BSP_USING_UART0
|
||||||
static const char *pinname_whitelist_uart0_rx[] = {
|
static const char *pinname_whitelist_uart0_rx[] = {
|
||||||
@ -301,7 +301,7 @@ static const char *pinname_whitelist_uart4_tx[] = {
|
|||||||
};
|
};
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#elif defined(BOARD_TYPE_MILKV_DUO256M) || defined(BOARD_TYPE_MILKV_DUO256M_SPINOR)
|
#elif defined(BOARD_TYPE_MILKV_DUO256M)
|
||||||
|
|
||||||
#ifdef BSP_USING_UART0
|
#ifdef BSP_USING_UART0
|
||||||
static const char *pinname_whitelist_uart0_rx[] = {
|
static const char *pinname_whitelist_uart0_rx[] = {
|
||||||
|
@ -22,23 +22,3 @@ lzma -c -9 -f -k ${PROJECT_PATH}/${IMAGE_NAME} > ${PROJECT_PATH}/dtb/${BOARD_TYP
|
|||||||
|
|
||||||
mkdir -p ${ROOT_PATH}/output/${BOARD_TYPE}
|
mkdir -p ${ROOT_PATH}/output/${BOARD_TYPE}
|
||||||
./mkimage -f ${PROJECT_PATH}/dtb/${BOARD_TYPE}/multi.its -r ${ROOT_PATH}/output/${BOARD_TYPE}/boot.${STORAGE_TYPE}
|
./mkimage -f ${PROJECT_PATH}/dtb/${BOARD_TYPE}/multi.its -r ${ROOT_PATH}/output/${BOARD_TYPE}/boot.${STORAGE_TYPE}
|
||||||
|
|
||||||
if [ "${STORAGE_TYPE}" == "spinor" ] || [ "${STORAGE_TYPE}" == "spinand" ]; then
|
|
||||||
|
|
||||||
check_bootloader || exit 0
|
|
||||||
|
|
||||||
pushd cvitek_bootloader
|
|
||||||
|
|
||||||
. env.sh
|
|
||||||
get_build_board ${BOARD_TYPE}
|
|
||||||
|
|
||||||
CHIP_ARCH_L=$(echo $CHIP_ARCH | tr '[:upper:]' '[:lower:]')
|
|
||||||
|
|
||||||
echo "board: ${MV_BOARD_LINK}"
|
|
||||||
|
|
||||||
IMGTOOL_PATH=build/tools/common/image_tool
|
|
||||||
FLASH_PARTITION_XML=build/boards/"${CHIP_ARCH_L}"/"${MV_BOARD_LINK}"/partition/partition_"${STORAGE_TYPE}".xml
|
|
||||||
python3 "$IMGTOOL_PATH"/raw2cimg.py "${ROOT_PATH}"/output/"${BOARD_TYPE}"/boot."$STORAGE_TYPE" "${ROOT_PATH}/output/${BOARD_TYPE}" "$FLASH_PARTITION_XML"
|
|
||||||
|
|
||||||
popd
|
|
||||||
fi
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user