| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243 |
- config BSP_USING_WM_LIBRARIES
- bool
- select PKG_USING_WM_LIBRARIES
- default y
- menu "W60x Device config"
- choice
- prompt "Device type"
- default SOC_W600-A8xx
- config SOC_W600_A8xx
- bool "W600-A8xx"
- config SOC_W601_A8xx
- bool "W601-A8xx"
- endchoice
- endmenu
- menu "Hardware Drivers Config"
- menu "On-chip Peripheral Drivers"
- menuconfig BSP_USING_UART
- bool "Using UART"
- select RT_USING_SERIAL
- default y
- if BSP_USING_UART
- config BSP_USING_UART0
- bool "Enabel UART 0"
- default y
- config BSP_USING_UART1
- bool "Enabel UART 1"
- default n
- if BSP_USING_UART1
- config WM_UART1_BAUDRATE
- int "UART1 baudrate"
- default 115200
- config WM_UART1_RX_PIN
- int "UART1 RX pin number"
- default 31
- config WM_UART1_TX_PIN
- int "UART1 TX pin number"
- default 32
- endif
- config BSP_USING_UART2
- bool "Enabel UART 2"
- default n
- if BSP_USING_UART2
- config WM_UART2_BAUDRATE
- int "UART2 baudrate"
- default 115200
- config WM_UART2_RX_PIN
- int "UART2 RX pin number"
- default 13
- config WM_UART2_TX_PIN
- int "UART2 TX pin number"
- default 14
- endif
- endif
- config BSP_USING_PIN
- bool "Using PIN"
- select RT_USING_PIN
- default y
- config BSP_USING_WIFI
- bool "Using WIFI"
- select RT_USING_WIFI
- select RT_USING_LWIP
- default y
- if SOC_W601_A8xx
- menuconfig BSP_USING_ADC
- bool "Enable ADC"
- select RT_USING_ADC
- default n
- 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"
- endif
- endif
- menuconfig BSP_USING_HWTIMER
- bool "Enable HWTIMER"
- select RT_USING_HWTIMER
- default n
- 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
- menuconfig BSP_USING_PWM
- bool "Enable PWM"
- select RT_USING_PWM
- default n
- if BSP_USING_PWM
- config USING_PWM_CH1
- bool "Enable pwm channel 1"
- default n
- if USING_PWM_CH1
- config WM_PWM_CH1_PIN
- int "wm pwm channel 1 pin number"
- default 23
- endif
- config USING_PWM_CH2
- bool "Enable pwm channel 2"
- default n
- if USING_PWM_CH2
- config WM_PWM_CH2_PIN
- int "wm pwm channel 2 pin number"
- default 22
- endif
- config USING_PWM_CH3
- bool "Enable pwm channel 3"
- default n
- if USING_PWM_CH3
- config WM_PWM_CH3_PIN
- int "wm pwm channel 3 pin number"
- default 21
- endif
- config USING_PWM_CH4
- bool "Enable pwm channel 4"
- default n
- if USING_PWM_CH4
- config WM_PWM_CH4_PIN
- int "wm pwm channel 4 pin number"
- default 20
- endif
- config USING_PWM_CH5
- bool "Enable pwm channel 5"
- default n
- if USING_PWM_CH5
- config WM_PWM_CH5_PIN
- int "wm pwm channel 5 pin number"
- default 19
- endif
- endif
- menuconfig 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
- config WM_I2C_DAT_PIN
- int "wm I2C DAT pin number"
- default 19
- config WM_I2C_SCL_PIN
- int "wm I2C SCL pin number"
- default 18
- endif
- menuconfig BSP_USING_SPI
- bool "Enable SPI"
- select RT_USING_SPI
- default n
-
- if BSP_USING_SPI
- config WM_SPI_CK_PIN
- int "wm SPI CK pin number"
- default 21
- config WM_SPI_DO_PIN
- int "wm SPI DO pin number"
- default 23
- config WM_SPI_DI_PIN
- int "wm SPI DI pin number"
- default 22
- endif
- 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
- default n
- endif
- config BSP_USING_STANDBY
- bool "Enable standby"
- default n
- endmenu
- menu "Offboard Peripheral Drivers"
- menuconfig BSP_USING_FLASH
- bool "Enable Flash"
- select RT_USING_SFUD
- select BSP_USING_SPI
- default n
- if BSP_USING_FLASH
- config SPI_Flash_BUS_NAME
- string "SPI BUS Name"
- default "spi0"
- config SPI_Flash_CS_PIN
- int "SPI Flash CS pin number"
- default 20
- endif
- endmenu
- endmenu
|