2019-03-27 16:49:26 +08:00
|
|
|
|
|
|
|
config BSP_USING_WM_LIBRARIES
|
|
|
|
bool
|
|
|
|
select PKG_USING_WM_LIBRARIES
|
|
|
|
default y
|
|
|
|
|
|
|
|
menu "W60x Device config"
|
|
|
|
choice
|
2019-08-03 10:39:03 +08:00
|
|
|
prompt "SOC type"
|
|
|
|
default SOC_W600_A8xx
|
2019-03-27 16:49:26 +08:00
|
|
|
config SOC_W600_A8xx
|
|
|
|
bool "W600-A8xx"
|
|
|
|
config SOC_W601_A8xx
|
|
|
|
bool "W601-A8xx"
|
|
|
|
endchoice
|
2019-08-03 10:39:03 +08:00
|
|
|
|
|
|
|
choice
|
|
|
|
prompt "Board type"
|
|
|
|
if SOC_W600_A8xx
|
|
|
|
config W600_EV_BOARD
|
|
|
|
bool "W600_EV BOARD"
|
|
|
|
endif
|
|
|
|
if SOC_W601_A8xx
|
|
|
|
config W601_IOT_BOARD
|
|
|
|
bool "W601 IoT Board"
|
|
|
|
endif
|
|
|
|
config W60X_CUSTOM_BOARD
|
|
|
|
bool "Custom Board"
|
|
|
|
endchoice
|
2019-03-27 16:49:26 +08:00
|
|
|
endmenu
|
|
|
|
|
2019-08-03 10:39:03 +08:00
|
|
|
menu "On-chip Peripheral Drivers"
|
|
|
|
menuconfig BSP_USING_UART
|
|
|
|
bool "Using UART"
|
|
|
|
select RT_USING_SERIAL
|
|
|
|
default y
|
2019-03-27 16:49:26 +08:00
|
|
|
|
2019-08-03 10:39:03 +08:00
|
|
|
if BSP_USING_UART
|
|
|
|
config BSP_USING_UART0
|
|
|
|
bool "Enabel UART 0"
|
|
|
|
default y
|
2019-03-27 16:49:26 +08:00
|
|
|
|
2019-08-03 10:39:03 +08:00
|
|
|
if W600_EV_BOARD || W60X_CUSTOM_BOARD
|
2019-03-27 16:49:26 +08:00
|
|
|
config BSP_USING_UART1
|
|
|
|
bool "Enabel UART 1"
|
|
|
|
default n
|
|
|
|
|
|
|
|
if BSP_USING_UART1
|
|
|
|
config WM_UART1_BAUDRATE
|
|
|
|
int "UART1 baudrate"
|
|
|
|
default 115200
|
|
|
|
endif
|
2019-08-03 10:39:03 +08:00
|
|
|
endif
|
2019-03-27 16:49:26 +08:00
|
|
|
|
2019-08-03 10:39:03 +08:00
|
|
|
if W601_IOT_BOARD || W60X_CUSTOM_BOARD
|
2019-03-27 16:49:26 +08:00
|
|
|
config BSP_USING_UART2
|
|
|
|
bool "Enabel UART 2"
|
|
|
|
default n
|
|
|
|
|
|
|
|
if BSP_USING_UART2
|
|
|
|
config WM_UART2_BAUDRATE
|
|
|
|
int "UART2 baudrate"
|
|
|
|
default 115200
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
2019-08-03 10:39:03 +08:00
|
|
|
config BSP_USING_PIN
|
|
|
|
bool "Using PIN"
|
|
|
|
select RT_USING_PIN
|
|
|
|
default y
|
2019-03-27 16:49:26 +08:00
|
|
|
|
2019-08-03 10:39:03 +08:00
|
|
|
config BSP_USING_WIFI
|
|
|
|
bool "Using WIFI"
|
|
|
|
select RT_USING_WIFI
|
|
|
|
select RT_USING_LWIP
|
|
|
|
select PKG_USING_NETUTILS
|
|
|
|
select PKG_NETUTILS_NTP
|
|
|
|
select RT_USING_RTC
|
|
|
|
select RT_USING_SOFT_RTC if !BSP_USING_RTC
|
|
|
|
default y
|
2019-03-27 16:49:26 +08:00
|
|
|
|
2019-08-03 10:39:03 +08:00
|
|
|
if SOC_W601_A8xx
|
|
|
|
menuconfig BSP_USING_ADC
|
|
|
|
bool "Enable ADC"
|
|
|
|
select RT_USING_ADC
|
2019-03-27 16:49:26 +08:00
|
|
|
default n
|
|
|
|
|
2019-08-03 10:39:03 +08:00
|
|
|
if BSP_USING_ADC
|
|
|
|
config USING_CPU_TEMP
|
|
|
|
bool "Enable CPU Temperature"
|
|
|
|
config USING_ADC_CH1
|
|
|
|
bool "Enable ADC Channel 1"
|
|
|
|
config USING_ADC_CH2
|
|
|
|
bool "Enable ADC Channel 2"
|
|
|
|
config USING_ADC_CH3
|
|
|
|
bool "Enable ADC Channel 3"
|
|
|
|
config USING_ADC_CH4
|
|
|
|
bool "Enable ADC Channel 4"
|
|
|
|
config USING_ADC_CH5
|
|
|
|
bool "Enable ADC Channel 5"
|
|
|
|
config USING_ADC_CH6
|
|
|
|
bool "Enable ADC Channel 6"
|
|
|
|
config USING_ADC_CH7
|
|
|
|
bool "Enable ADC Channel 7"
|
|
|
|
config USING_ADC_CH8
|
|
|
|
bool "Enable ADC Channel 8"
|
2019-03-27 16:49:26 +08:00
|
|
|
endif
|
2019-08-03 10:39:03 +08:00
|
|
|
endif
|
2019-03-27 16:49:26 +08:00
|
|
|
|
2019-08-03 10:39:03 +08:00
|
|
|
menuconfig BSP_USING_HWTIMER
|
|
|
|
bool "Enable HWTIMER"
|
|
|
|
select RT_USING_HWTIMER
|
|
|
|
default n
|
2019-03-27 16:49:26 +08:00
|
|
|
|
2019-08-03 10:39:03 +08:00
|
|
|
if BSP_USING_HWTIMER
|
|
|
|
config USING_HW_TIMER1
|
|
|
|
bool "Enable hw timer1"
|
|
|
|
config USING_HW_TIMER2
|
|
|
|
bool "Enable hw timer2"
|
|
|
|
config USING_HW_TIMER3
|
|
|
|
bool "Enable hw timer3"
|
|
|
|
config USING_HW_TIMER4
|
|
|
|
bool "Enable hw timer4"
|
|
|
|
config USING_HW_TIMER5
|
|
|
|
bool "Enable hw timer5"
|
|
|
|
endif
|
2019-03-27 16:49:26 +08:00
|
|
|
|
2019-08-03 10:39:03 +08:00
|
|
|
menuconfig BSP_USING_PWM
|
|
|
|
bool "Enable PWM"
|
|
|
|
select RT_USING_PWM
|
|
|
|
default n
|
|
|
|
|
|
|
|
if BSP_USING_PWM
|
|
|
|
config USING_PWM_CH1
|
2022-03-21 22:04:37 +08:00
|
|
|
bool "Enable PWM channel 1"
|
2019-03-27 16:49:26 +08:00
|
|
|
default n
|
2019-08-03 10:39:03 +08:00
|
|
|
if USING_PWM_CH1
|
|
|
|
config WM_PWM_CH1_PIN
|
2022-03-21 22:04:37 +08:00
|
|
|
int "wm PWM channel 1 pin number"
|
2019-03-27 16:49:26 +08:00
|
|
|
default 23
|
2019-08-03 10:39:03 +08:00
|
|
|
endif
|
|
|
|
config USING_PWM_CH2
|
2022-03-21 22:04:37 +08:00
|
|
|
bool "Enable PWM channel 2"
|
2019-08-03 10:39:03 +08:00
|
|
|
default n
|
|
|
|
if USING_PWM_CH2
|
|
|
|
config WM_PWM_CH2_PIN
|
2022-03-21 22:04:37 +08:00
|
|
|
int "wm PWM channel 2 pin number"
|
2019-03-27 16:49:26 +08:00
|
|
|
default 22
|
2019-08-03 10:39:03 +08:00
|
|
|
endif
|
|
|
|
config USING_PWM_CH3
|
2022-03-21 22:04:37 +08:00
|
|
|
bool "Enable PWM channel 3"
|
2019-03-27 16:49:26 +08:00
|
|
|
default n
|
2019-08-03 10:39:03 +08:00
|
|
|
if USING_PWM_CH3
|
|
|
|
config WM_PWM_CH3_PIN
|
2022-03-21 22:04:37 +08:00
|
|
|
int "wm PWM channel 3 pin number"
|
2019-08-03 10:39:03 +08:00
|
|
|
default 21
|
|
|
|
endif
|
|
|
|
config USING_PWM_CH4
|
2022-03-21 22:04:37 +08:00
|
|
|
bool "Enable PWM channel 4"
|
2019-03-27 16:49:26 +08:00
|
|
|
default n
|
2019-08-03 10:39:03 +08:00
|
|
|
if USING_PWM_CH4
|
|
|
|
config WM_PWM_CH4_PIN
|
2022-03-21 22:04:37 +08:00
|
|
|
int "wm PWM channel 4 pin number"
|
2019-08-03 10:39:03 +08:00
|
|
|
default 37
|
|
|
|
endif
|
|
|
|
config USING_PWM_CH5
|
2022-03-21 22:04:37 +08:00
|
|
|
bool "Enable PWM channel 5"
|
2019-08-03 10:39:03 +08:00
|
|
|
default n
|
|
|
|
if USING_PWM_CH5
|
|
|
|
config WM_PWM_CH5_PIN
|
2022-03-21 22:04:37 +08:00
|
|
|
int "wm PWM channel 5 pin number"
|
2019-08-03 10:39:03 +08:00
|
|
|
default 19
|
|
|
|
endif
|
|
|
|
endif
|
2023-01-09 10:14:23 +08:00
|
|
|
|
2019-08-03 10:39:03 +08:00
|
|
|
config BSP_USING_I2C
|
|
|
|
bool "Enable I2C"
|
|
|
|
select RT_USING_I2C
|
|
|
|
default n
|
|
|
|
|
|
|
|
if BSP_USING_I2C
|
|
|
|
config WM_HW_I2C_FREQ
|
|
|
|
int "wm hardware I2C frequency(HZ)"
|
|
|
|
default 200000
|
|
|
|
endif
|
2019-03-27 16:49:26 +08:00
|
|
|
|
2019-08-03 10:39:03 +08:00
|
|
|
menuconfig BSP_USING_SOFT_I2C
|
|
|
|
bool "Enable SOFT I2C"
|
|
|
|
select RT_USING_I2C
|
|
|
|
select RT_USING_I2C_BITOPS
|
|
|
|
default n
|
|
|
|
|
|
|
|
if BSP_USING_SOFT_I2C
|
|
|
|
config BSP_USING_SOFT_I2C1
|
|
|
|
bool "Enabel SOFT I2C1"
|
2019-03-27 16:49:26 +08:00
|
|
|
default n
|
2023-01-09 10:14:23 +08:00
|
|
|
endif
|
2019-08-03 10:39:03 +08:00
|
|
|
|
|
|
|
if BSP_USING_SOFT_I2C
|
|
|
|
config BSP_USING_SOFT_I2C2
|
|
|
|
bool "Enabel SOFT I2C2"
|
2023-01-09 10:14:23 +08:00
|
|
|
default n
|
2019-03-27 16:49:26 +08:00
|
|
|
endif
|
|
|
|
|
2019-08-03 10:39:03 +08:00
|
|
|
menuconfig BSP_USING_SPI
|
|
|
|
bool "Enable SPI"
|
|
|
|
select RT_USING_SPI
|
|
|
|
default n
|
2019-03-27 16:49:26 +08:00
|
|
|
|
2019-08-03 10:39:03 +08:00
|
|
|
if BSP_USING_SPI
|
|
|
|
config WM_SPI_BUS_NAME
|
|
|
|
string "Set SPI BUS name"
|
|
|
|
default "spi0"
|
|
|
|
endif
|
2019-03-27 16:49:26 +08:00
|
|
|
|
2019-08-03 10:39:03 +08:00
|
|
|
config BSP_USING_WDT
|
|
|
|
bool "Enable WDT"
|
|
|
|
select RT_USING_WDT
|
|
|
|
default n
|
|
|
|
|
|
|
|
menuconfig BSP_USING_RTC
|
|
|
|
bool "Enable RTC"
|
|
|
|
select RT_USING_RTC
|
|
|
|
default n
|
|
|
|
|
|
|
|
if BSP_USING_RTC
|
|
|
|
config BSP_USING_ALARM
|
|
|
|
bool "Enable Alarm"
|
|
|
|
select RT_USING_ALARM
|
2019-03-27 16:49:26 +08:00
|
|
|
default n
|
2019-08-03 10:39:03 +08:00
|
|
|
endif
|
2019-03-27 16:49:26 +08:00
|
|
|
|
2019-08-03 10:39:03 +08:00
|
|
|
config BSP_USING_CRYPTO
|
|
|
|
bool "Enable Hardware Crypto"
|
|
|
|
select RT_USING_HWCRYPTO
|
|
|
|
select RT_HWCRYPTO_USING_AES
|
|
|
|
select RT_HWCRYPTO_USING_AES_ECB
|
|
|
|
select RT_HWCRYPTO_USING_AES_CBC
|
|
|
|
select RT_HWCRYPTO_USING_MD5
|
|
|
|
select RT_HWCRYPTO_USING_SHA1
|
|
|
|
select RT_HWCRYPTO_USING_RNG
|
|
|
|
select RT_HWCRYPTO_USING_CRC
|
|
|
|
select RT_HWCRYPTO_USING_CRC_07
|
|
|
|
select RT_HWCRYPTO_USING_CRC_8005
|
|
|
|
select RT_HWCRYPTO_USING_CRC_1021
|
|
|
|
select RT_HWCRYPTO_USING_CRC_04C11DB7
|
|
|
|
select RT_HWCRYPTO_USING_BIGNUM
|
|
|
|
select RT_HWCRYPTO_USING_BIGNUM_EXPTMOD
|
|
|
|
default n
|
2019-03-27 16:49:26 +08:00
|
|
|
|
2019-08-03 10:39:03 +08:00
|
|
|
config BSP_USING_STANDBY
|
|
|
|
bool "Enable standby"
|
|
|
|
default n
|
|
|
|
endmenu
|
|
|
|
|
|
|
|
menu "External Libraries"
|
|
|
|
config WM_USING_ONESHOT
|
|
|
|
bool "Using winner micro Oneshot"
|
|
|
|
select RT_USING_WIFI
|
|
|
|
default y
|
|
|
|
|
|
|
|
if WM_USING_ONESHOT
|
|
|
|
config WM_USING_ONESHOT_DEMO
|
|
|
|
bool "Using Oneshot Demo"
|
|
|
|
default y
|
|
|
|
endif
|
2019-03-27 16:49:26 +08:00
|
|
|
endmenu
|