2017-01-31 11:54:12 +08:00
|
|
|
menu "Device Drivers"
|
|
|
|
|
2017-06-06 18:18:44 +08:00
|
|
|
config RT_USING_DEVICE_IPC
|
|
|
|
bool "Using device drivers IPC"
|
|
|
|
default y
|
|
|
|
|
2018-06-30 10:36:31 +08:00
|
|
|
if RT_USING_DEVICE_IPC
|
|
|
|
config RT_PIPE_BUFSZ
|
|
|
|
int "Set pipe buffer size"
|
|
|
|
default 512
|
2019-03-17 16:01:12 +08:00
|
|
|
|
|
|
|
config RT_USING_SYSTEM_WORKQUEUE
|
2019-04-03 17:50:16 +08:00
|
|
|
bool "Using system default workqueue"
|
|
|
|
default n
|
2019-03-17 16:01:12 +08:00
|
|
|
|
|
|
|
if RT_USING_SYSTEM_WORKQUEUE
|
2019-04-03 17:50:16 +08:00
|
|
|
config RT_SYSTEM_WORKQUEUE_STACKSIZE
|
|
|
|
int "The stack size for system workqueue thread"
|
|
|
|
default 2048
|
2019-03-17 16:01:12 +08:00
|
|
|
|
2019-04-03 17:50:16 +08:00
|
|
|
config RT_SYSTEM_WORKQUEUE_PRIORITY
|
|
|
|
int "The priority level of system workqueue thread"
|
|
|
|
default 23
|
2019-03-17 16:01:12 +08:00
|
|
|
endif
|
2018-06-30 10:36:31 +08:00
|
|
|
endif
|
|
|
|
|
2017-01-31 11:54:12 +08:00
|
|
|
config RT_USING_SERIAL
|
2017-06-06 18:18:44 +08:00
|
|
|
bool "Using serial device drivers"
|
2017-12-30 17:31:22 +08:00
|
|
|
select RT_USING_DEVICE_IPC
|
2017-12-31 14:44:04 +08:00
|
|
|
select RT_USING_DEVICE
|
2017-06-06 18:18:44 +08:00
|
|
|
default y
|
2017-01-31 11:54:12 +08:00
|
|
|
|
2018-12-08 11:37:13 +08:00
|
|
|
if RT_USING_SERIAL
|
|
|
|
config RT_SERIAL_USING_DMA
|
|
|
|
bool "Enable serial DMA mode"
|
|
|
|
default y
|
2019-01-28 13:54:20 +08:00
|
|
|
|
|
|
|
config RT_SERIAL_RB_BUFSZ
|
2019-01-30 09:24:47 +08:00
|
|
|
int "Set RX buffer size"
|
|
|
|
default 64
|
2019-01-28 13:54:20 +08:00
|
|
|
|
|
|
|
endif
|
2018-12-08 11:37:13 +08:00
|
|
|
|
2017-01-31 11:54:12 +08:00
|
|
|
config RT_USING_CAN
|
2017-06-06 18:18:44 +08:00
|
|
|
bool "Using CAN device drivers"
|
|
|
|
default n
|
2017-01-31 11:54:12 +08:00
|
|
|
|
2018-03-04 22:35:07 +08:00
|
|
|
if RT_USING_CAN
|
|
|
|
config RT_CAN_USING_HDR
|
|
|
|
bool "Enable CAN hardware filter"
|
2019-06-15 11:52:11 +08:00
|
|
|
default n
|
2018-03-04 22:35:07 +08:00
|
|
|
endif
|
|
|
|
|
2017-01-31 11:54:12 +08:00
|
|
|
config RT_USING_HWTIMER
|
2017-06-06 18:18:44 +08:00
|
|
|
bool "Using hardware timer device drivers"
|
|
|
|
default n
|
2017-01-31 11:54:12 +08:00
|
|
|
|
2017-12-23 23:34:23 +08:00
|
|
|
config RT_USING_CPUTIME
|
|
|
|
bool "Enable CPU time for high resolution clock counter"
|
|
|
|
default n
|
|
|
|
help
|
|
|
|
When enable this option, the BSP should provide a rt_clock_cputime_ops
|
|
|
|
for CPU time by:
|
2017-12-31 14:44:04 +08:00
|
|
|
const static struct rt_clock_cputime_ops _ops = {...};
|
|
|
|
clock_cpu_setops(&_ops);
|
2017-12-23 23:34:23 +08:00
|
|
|
|
2017-12-31 14:44:04 +08:00
|
|
|
Then user can use high resolution clock counter with:
|
2017-12-23 23:34:23 +08:00
|
|
|
|
2017-12-31 14:44:04 +08:00
|
|
|
ts1 = clock_cpu_gettime();
|
|
|
|
ts2 = clock_cpu_gettime();
|
|
|
|
|
|
|
|
/* and get the ms of delta tick with API: */
|
|
|
|
ms_tick = clock_cpu_millisecond(t2 - t1);
|
|
|
|
us_tick = clock_cpu_microsecond(t2 - t1);
|
2017-12-23 23:34:23 +08:00
|
|
|
|
2018-07-18 11:05:39 +08:00
|
|
|
if RT_USING_CPUTIME
|
2017-12-23 23:34:23 +08:00
|
|
|
config RT_USING_CPUTIME_CORTEXM
|
|
|
|
bool "Use DWT for CPU time"
|
|
|
|
default y
|
|
|
|
depends on ARCH_ARM_CORTEX_M3 || ARCH_ARM_CORTEX_M4 || ARCH_ARM_CORTEX_M7
|
|
|
|
help
|
2018-07-18 11:05:39 +08:00
|
|
|
Some Cortex-M3/4/7 MCU has Data Watchpoint and Trace Register, use
|
2017-12-23 23:34:23 +08:00
|
|
|
the cycle counter in DWT for CPU time.
|
|
|
|
endif
|
|
|
|
|
2017-01-31 11:54:12 +08:00
|
|
|
config RT_USING_I2C
|
2017-06-06 18:18:44 +08:00
|
|
|
bool "Using I2C device drivers"
|
|
|
|
default n
|
2017-10-09 15:12:42 +08:00
|
|
|
|
2017-10-09 11:30:30 +08:00
|
|
|
if RT_USING_I2C
|
2019-11-26 07:41:43 +08:00
|
|
|
config RT_I2C_DEBUG
|
2020-03-05 09:20:05 +08:00
|
|
|
bool "Use I2C debug message"
|
2019-11-26 07:41:43 +08:00
|
|
|
default n
|
|
|
|
|
2017-10-09 11:30:30 +08:00
|
|
|
config RT_USING_I2C_BITOPS
|
2017-10-09 15:12:42 +08:00
|
|
|
bool "Use GPIO to simulate I2C"
|
2017-10-09 11:30:30 +08:00
|
|
|
default y
|
2020-08-04 15:11:48 +08:00
|
|
|
|
2020-08-04 15:10:43 +08:00
|
|
|
if RT_USING_I2C_BITOPS
|
2020-09-23 17:17:20 +08:00
|
|
|
config RT_I2C_BITOPS_DEBUG
|
2020-08-05 10:06:20 +08:00
|
|
|
bool "Use simulate I2C debug message"
|
|
|
|
default n
|
|
|
|
endif
|
2019-11-26 07:41:43 +08:00
|
|
|
endif
|
|
|
|
|
2020-10-12 18:15:01 +08:00
|
|
|
config RT_USING_PHY
|
|
|
|
bool "Using ethernet phy device drivers"
|
|
|
|
default n
|
|
|
|
|
2017-01-31 11:54:12 +08:00
|
|
|
config RT_USING_PIN
|
2017-06-06 18:18:44 +08:00
|
|
|
bool "Using generic GPIO device drivers"
|
|
|
|
default y
|
2017-01-31 11:54:12 +08:00
|
|
|
|
2018-11-19 19:04:44 +08:00
|
|
|
config RT_USING_ADC
|
|
|
|
bool "Using ADC device drivers"
|
|
|
|
default n
|
|
|
|
|
2020-06-23 10:43:18 +08:00
|
|
|
config RT_USING_DAC
|
|
|
|
bool "Using DAC device drivers"
|
|
|
|
default n
|
|
|
|
|
2018-06-07 21:23:22 +08:00
|
|
|
config RT_USING_PWM
|
|
|
|
bool "Using PWM device drivers"
|
|
|
|
default n
|
|
|
|
|
2017-01-31 11:54:12 +08:00
|
|
|
config RT_USING_MTD_NOR
|
2017-06-06 18:18:44 +08:00
|
|
|
bool "Using MTD Nor Flash device drivers"
|
|
|
|
default n
|
2017-01-31 11:54:12 +08:00
|
|
|
|
|
|
|
config RT_USING_MTD_NAND
|
2017-06-06 18:18:44 +08:00
|
|
|
bool "Using MTD Nand Flash device drivers"
|
|
|
|
default n
|
2017-10-09 15:12:42 +08:00
|
|
|
|
|
|
|
if RT_USING_MTD_NAND
|
|
|
|
config RT_MTD_NAND_DEBUG
|
|
|
|
bool "Enable MTD Nand operations debug information"
|
|
|
|
default n
|
|
|
|
endif
|
2017-01-31 11:54:12 +08:00
|
|
|
|
2018-10-29 09:49:12 +08:00
|
|
|
config RT_USING_PM
|
|
|
|
bool "Using Power Management device drivers"
|
|
|
|
default n
|
|
|
|
|
2017-01-31 11:54:12 +08:00
|
|
|
config RT_USING_RTC
|
2017-06-06 18:18:44 +08:00
|
|
|
bool "Using RTC device drivers"
|
|
|
|
default n
|
2017-01-31 11:54:12 +08:00
|
|
|
|
2018-02-16 13:06:15 +08:00
|
|
|
if RT_USING_RTC
|
2019-03-14 18:05:31 +08:00
|
|
|
config RT_USING_ALARM
|
|
|
|
bool "Using RTC alarm"
|
|
|
|
default n
|
|
|
|
|
|
|
|
config RT_USING_SOFT_RTC
|
|
|
|
bool "Using software simulation RTC device"
|
|
|
|
default n
|
|
|
|
|
|
|
|
config RTC_SYNC_USING_NTP
|
|
|
|
bool "Using NTP auto sync RTC time"
|
|
|
|
depends on PKG_NETUTILS_NTP
|
|
|
|
default y
|
|
|
|
|
|
|
|
if RTC_SYNC_USING_NTP
|
|
|
|
config RTC_NTP_FIRST_SYNC_DELAY
|
|
|
|
int "NTP first sync delay time(second) for network connect"
|
|
|
|
default 30
|
|
|
|
config RTC_NTP_SYNC_PERIOD
|
|
|
|
int "NTP auto sync period(second)"
|
|
|
|
default 3600
|
|
|
|
endif
|
2018-02-16 13:06:15 +08:00
|
|
|
endif
|
|
|
|
|
2017-01-31 11:54:12 +08:00
|
|
|
config RT_USING_SDIO
|
2017-06-06 18:18:44 +08:00
|
|
|
bool "Using SD/MMC device drivers"
|
|
|
|
default n
|
2017-01-31 11:54:12 +08:00
|
|
|
|
2018-06-23 11:23:59 +08:00
|
|
|
if RT_USING_SDIO
|
|
|
|
config RT_SDIO_STACK_SIZE
|
|
|
|
int "The stack size for sdio irq thread"
|
|
|
|
default 512
|
|
|
|
|
|
|
|
config RT_SDIO_THREAD_PRIORITY
|
|
|
|
int "The priority level value of sdio irq thread"
|
|
|
|
default 15
|
|
|
|
|
|
|
|
config RT_MMCSD_STACK_SIZE
|
|
|
|
int "The stack size for mmcsd thread"
|
|
|
|
default 1024
|
|
|
|
|
|
|
|
config RT_MMCSD_THREAD_PREORITY
|
|
|
|
int "The priority level value of mmcsd thread"
|
|
|
|
default 22
|
|
|
|
|
|
|
|
config RT_MMCSD_MAX_PARTITION
|
|
|
|
int "mmcsd max partition"
|
|
|
|
default 16
|
2018-09-05 14:50:43 +08:00
|
|
|
config RT_SDIO_DEBUG
|
|
|
|
bool "Enable SDIO debug log output"
|
|
|
|
default n
|
2018-06-23 11:23:59 +08:00
|
|
|
endif
|
|
|
|
|
2017-01-31 11:54:12 +08:00
|
|
|
config RT_USING_SPI
|
2017-06-06 18:18:44 +08:00
|
|
|
bool "Using SPI Bus/Device device drivers"
|
|
|
|
default n
|
2017-01-31 11:54:12 +08:00
|
|
|
|
2018-11-26 13:34:33 +08:00
|
|
|
if RT_USING_SPI
|
|
|
|
config RT_USING_QSPI
|
|
|
|
bool "Enable QSPI mode"
|
|
|
|
default n
|
|
|
|
|
2018-02-06 20:26:49 +08:00
|
|
|
config RT_USING_SPI_MSD
|
|
|
|
bool "Using SD/TF card driver with spi"
|
|
|
|
select RT_USING_DFS
|
|
|
|
default n
|
|
|
|
|
2017-09-29 16:57:17 +08:00
|
|
|
config RT_USING_SFUD
|
|
|
|
bool "Using Serial Flash Universal Driver"
|
|
|
|
default n
|
2019-05-29 13:53:27 +08:00
|
|
|
help
|
|
|
|
An using JEDEC's SFDP standard serial (SPI) flash universal driver library
|
|
|
|
|
2018-07-18 11:05:39 +08:00
|
|
|
if RT_USING_SFUD
|
2017-09-29 16:57:17 +08:00
|
|
|
config RT_SFUD_USING_SFDP
|
|
|
|
bool "Using auto probe flash JEDEC SFDP parameter"
|
|
|
|
default y
|
2018-07-18 11:05:39 +08:00
|
|
|
|
2017-09-29 16:57:17 +08:00
|
|
|
config RT_SFUD_USING_FLASH_INFO_TABLE
|
|
|
|
bool "Using defined supported flash chip information table"
|
|
|
|
default y
|
2018-11-24 15:02:53 +08:00
|
|
|
|
|
|
|
config RT_SFUD_USING_QSPI
|
|
|
|
bool "Using QSPI mode support"
|
2018-11-26 13:34:33 +08:00
|
|
|
select RT_USING_QSPI
|
2018-11-24 15:02:53 +08:00
|
|
|
default n
|
2018-07-18 11:05:39 +08:00
|
|
|
|
2019-12-03 15:52:39 +08:00
|
|
|
config RT_SFUD_SPI_MAX_HZ
|
|
|
|
int "Default spi maximum speed(HZ)"
|
|
|
|
range 0 50000000
|
|
|
|
default 50000000
|
|
|
|
help
|
|
|
|
Read the JEDEC SFDP command must run at 50 MHz or less,and you also can use rt_spi_configure(); to config spi speed.
|
|
|
|
|
2018-04-19 19:40:47 +08:00
|
|
|
config RT_DEBUG_SFUD
|
2017-09-29 16:57:17 +08:00
|
|
|
bool "Show more SFUD debug information"
|
|
|
|
default n
|
|
|
|
endif
|
2018-07-18 11:05:39 +08:00
|
|
|
|
2017-06-06 18:18:44 +08:00
|
|
|
config RT_USING_ENC28J60
|
|
|
|
bool "Using ENC28J60 SPI Ethernet network interface"
|
|
|
|
select RT_USING_LWIP
|
|
|
|
default n
|
2017-01-31 11:54:12 +08:00
|
|
|
|
2017-06-06 18:18:44 +08:00
|
|
|
config RT_USING_SPI_WIFI
|
|
|
|
bool "Using RW009/007 SPI Wi-Fi wireless interface"
|
|
|
|
select RT_USING_LWIP
|
|
|
|
default n
|
|
|
|
endif
|
2017-01-31 11:54:12 +08:00
|
|
|
|
|
|
|
config RT_USING_WDT
|
2017-06-06 18:18:44 +08:00
|
|
|
bool "Using Watch Dog device drivers"
|
|
|
|
default n
|
2017-01-31 11:54:12 +08:00
|
|
|
|
2018-09-15 09:54:18 +08:00
|
|
|
config RT_USING_AUDIO
|
|
|
|
bool "Using Audio device drivers"
|
|
|
|
default n
|
2019-08-06 11:36:50 +08:00
|
|
|
|
|
|
|
if RT_USING_AUDIO
|
|
|
|
config RT_AUDIO_REPLAY_MP_BLOCK_SIZE
|
2020-03-05 09:20:05 +08:00
|
|
|
int "Replay memory pool block size"
|
2019-08-06 11:36:50 +08:00
|
|
|
default 4096
|
|
|
|
|
|
|
|
config RT_AUDIO_REPLAY_MP_BLOCK_COUNT
|
2020-03-05 09:20:05 +08:00
|
|
|
int "Replay memory pool block count"
|
2019-08-06 11:36:50 +08:00
|
|
|
default 2
|
|
|
|
|
|
|
|
config RT_AUDIO_RECORD_PIPE_SIZE
|
|
|
|
int "Record pipe size"
|
|
|
|
default 2048
|
|
|
|
endif
|
2018-09-15 09:54:18 +08:00
|
|
|
|
2019-02-12 10:15:26 +08:00
|
|
|
config RT_USING_SENSOR
|
|
|
|
bool "Using Sensor device drivers"
|
|
|
|
select RT_USING_PIN
|
|
|
|
default n
|
|
|
|
|
|
|
|
if RT_USING_SENSOR
|
2019-02-13 15:07:11 +08:00
|
|
|
config RT_USING_SENSOR_CMD
|
|
|
|
bool "Using Sensor cmd"
|
2019-02-12 10:15:26 +08:00
|
|
|
default y
|
|
|
|
endif
|
|
|
|
|
2019-06-18 11:06:18 +08:00
|
|
|
config RT_USING_TOUCH
|
|
|
|
bool "Using Touch device drivers"
|
|
|
|
default n
|
|
|
|
|
2019-07-15 18:17:53 +08:00
|
|
|
menuconfig RT_USING_HWCRYPTO
|
|
|
|
bool "Using Hardware Crypto drivers"
|
2019-05-24 20:04:27 +08:00
|
|
|
default n
|
|
|
|
|
|
|
|
if RT_USING_HWCRYPTO
|
|
|
|
config RT_HWCRYPTO_DEFAULT_NAME
|
|
|
|
string "Hardware crypto device name"
|
|
|
|
default "hwcryto"
|
|
|
|
|
|
|
|
config RT_HWCRYPTO_IV_MAX_SIZE
|
|
|
|
int "IV max size"
|
|
|
|
default "16"
|
|
|
|
|
2019-06-05 14:49:19 +08:00
|
|
|
config RT_HWCRYPTO_KEYBIT_MAX_SIZE
|
2019-05-24 20:04:27 +08:00
|
|
|
int "Key max bit length"
|
|
|
|
default 256
|
|
|
|
|
|
|
|
config RT_HWCRYPTO_USING_GCM
|
|
|
|
bool "Using Hardware GCM"
|
|
|
|
default n
|
|
|
|
|
|
|
|
config RT_HWCRYPTO_USING_AES
|
|
|
|
bool "Using Hardware AES"
|
|
|
|
default n
|
|
|
|
|
|
|
|
if RT_HWCRYPTO_USING_AES
|
|
|
|
config RT_HWCRYPTO_USING_AES_ECB
|
|
|
|
bool "Using Hardware AES ECB mode"
|
|
|
|
default y
|
|
|
|
|
|
|
|
config RT_HWCRYPTO_USING_AES_CBC
|
|
|
|
bool "Using Hardware AES CBC mode"
|
|
|
|
default n
|
|
|
|
|
|
|
|
config RT_HWCRYPTO_USING_AES_CFB
|
|
|
|
bool "Using Hardware AES CFB mode"
|
|
|
|
default n
|
|
|
|
|
|
|
|
config RT_HWCRYPTO_USING_AES_CTR
|
|
|
|
bool "Using Hardware AES CTR mode"
|
|
|
|
default n
|
|
|
|
|
|
|
|
config RT_HWCRYPTO_USING_AES_OFB
|
|
|
|
bool "Using Hardware AES OFB mode"
|
|
|
|
default n
|
|
|
|
endif
|
|
|
|
|
|
|
|
config RT_HWCRYPTO_USING_DES
|
|
|
|
bool "Using Hardware DES"
|
|
|
|
default n
|
|
|
|
|
|
|
|
if RT_HWCRYPTO_USING_DES
|
|
|
|
config RT_HWCRYPTO_USING_DES_ECB
|
|
|
|
bool "Using Hardware DES ECB mode"
|
|
|
|
default y
|
|
|
|
|
|
|
|
config RT_HWCRYPTO_USING_DES_CBC
|
|
|
|
bool "Using Hardware DES CBC mode"
|
|
|
|
default n
|
|
|
|
endif
|
|
|
|
|
|
|
|
config RT_HWCRYPTO_USING_3DES
|
|
|
|
bool "Using Hardware 3DES"
|
|
|
|
default n
|
|
|
|
|
|
|
|
if RT_HWCRYPTO_USING_3DES
|
|
|
|
config RT_HWCRYPTO_USING_3DES_ECB
|
|
|
|
bool "Using Hardware 3DES ECB mode"
|
|
|
|
default y
|
|
|
|
|
|
|
|
config RT_HWCRYPTO_USING_3DES_CBC
|
|
|
|
bool "Using Hardware 3DES CBC mode"
|
|
|
|
default n
|
|
|
|
endif
|
|
|
|
|
|
|
|
config RT_HWCRYPTO_USING_RC4
|
|
|
|
bool "Using Hardware RC4"
|
|
|
|
default n
|
|
|
|
|
|
|
|
config RT_HWCRYPTO_USING_MD5
|
|
|
|
bool "Using Hardware MD5"
|
|
|
|
default n
|
|
|
|
|
|
|
|
config RT_HWCRYPTO_USING_SHA1
|
|
|
|
bool "Using Hardware SHA1"
|
|
|
|
default n
|
|
|
|
|
|
|
|
config RT_HWCRYPTO_USING_SHA2
|
|
|
|
bool "Using Hardware SHA2"
|
|
|
|
default n
|
|
|
|
|
|
|
|
if RT_HWCRYPTO_USING_SHA2
|
|
|
|
config RT_HWCRYPTO_USING_SHA2_224
|
|
|
|
bool "Using Hardware SHA2_224 mode"
|
|
|
|
default n
|
|
|
|
|
|
|
|
config RT_HWCRYPTO_USING_SHA2_256
|
|
|
|
bool "Using Hardware SHA2_256 mode"
|
|
|
|
default y
|
|
|
|
|
|
|
|
config RT_HWCRYPTO_USING_SHA2_384
|
|
|
|
bool "Using Hardware SHA2_384 mode"
|
|
|
|
default n
|
|
|
|
|
|
|
|
config RT_HWCRYPTO_USING_SHA2_512
|
|
|
|
bool "Using Hardware SHA2_512 mode"
|
|
|
|
default n
|
|
|
|
endif
|
|
|
|
|
|
|
|
config RT_HWCRYPTO_USING_RNG
|
|
|
|
bool "Using Hardware RNG"
|
|
|
|
default n
|
|
|
|
|
|
|
|
config RT_HWCRYPTO_USING_CRC
|
|
|
|
bool "Using Hardware CRC"
|
|
|
|
default n
|
|
|
|
|
|
|
|
if RT_HWCRYPTO_USING_CRC
|
|
|
|
config RT_HWCRYPTO_USING_CRC_07
|
|
|
|
bool "Using Hardware CRC-8 0x07 polynomial"
|
|
|
|
default n
|
|
|
|
|
|
|
|
config RT_HWCRYPTO_USING_CRC_8005
|
|
|
|
bool "Using Hardware CRC-16 0x8005 polynomial"
|
|
|
|
default n
|
|
|
|
|
|
|
|
config RT_HWCRYPTO_USING_CRC_1021
|
|
|
|
bool "Using Hardware CRC-16 0x1021 polynomial"
|
|
|
|
default n
|
|
|
|
|
|
|
|
config RT_HWCRYPTO_USING_CRC_3D65
|
|
|
|
bool "Using Hardware CRC-16 0x3D65 polynomial"
|
|
|
|
default n
|
|
|
|
|
|
|
|
config RT_HWCRYPTO_USING_CRC_04C11DB7
|
|
|
|
bool "Using Hardware CRC-32 0x04C11DB7 polynomial"
|
|
|
|
default n
|
|
|
|
endif
|
|
|
|
|
|
|
|
config RT_HWCRYPTO_USING_BIGNUM
|
|
|
|
bool "Using Hardware bignum"
|
|
|
|
default n
|
|
|
|
|
|
|
|
if RT_HWCRYPTO_USING_BIGNUM
|
|
|
|
config RT_HWCRYPTO_USING_BIGNUM_EXPTMOD
|
|
|
|
bool "Using Hardware bignum expt_mod operation"
|
|
|
|
default y
|
|
|
|
|
|
|
|
config RT_HWCRYPTO_USING_BIGNUM_MULMOD
|
|
|
|
bool "Using Hardware bignum mul_mod operation"
|
|
|
|
default y
|
|
|
|
|
|
|
|
config RT_HWCRYPTO_USING_BIGNUM_MUL
|
|
|
|
bool "Using Hardware bignum mul operation"
|
|
|
|
default n
|
|
|
|
|
|
|
|
config RT_HWCRYPTO_USING_BIGNUM_ADD
|
|
|
|
bool "Using Hardware bignum add operation"
|
|
|
|
default n
|
|
|
|
|
|
|
|
config RT_HWCRYPTO_USING_BIGNUM_SUB
|
|
|
|
bool "Using Hardware bignum sub operation"
|
|
|
|
default n
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
2019-08-30 15:38:05 +08:00
|
|
|
config RT_USING_PULSE_ENCODER
|
|
|
|
bool "Using PULSE ENCODER device drivers"
|
2019-08-09 18:37:16 +08:00
|
|
|
default n
|
|
|
|
|
2019-08-21 10:40:20 +08:00
|
|
|
config RT_USING_INPUT_CAPTURE
|
|
|
|
bool "Using INPUT CAPTURE device drivers"
|
2019-08-13 20:14:45 +08:00
|
|
|
default n
|
|
|
|
|
2019-08-21 10:40:20 +08:00
|
|
|
if RT_USING_INPUT_CAPTURE
|
|
|
|
config RT_INPUT_CAPTURE_RB_SIZE
|
|
|
|
int "Set input capture ringbuffer size"
|
2019-08-13 20:14:45 +08:00
|
|
|
default 100
|
|
|
|
endif
|
|
|
|
|
2019-07-15 18:17:53 +08:00
|
|
|
menuconfig RT_USING_WIFI
|
|
|
|
bool "Using Wi-Fi framework"
|
|
|
|
default n
|
2017-01-31 11:54:12 +08:00
|
|
|
|
2018-06-06 11:03:09 +08:00
|
|
|
if RT_USING_WIFI
|
2018-09-15 09:54:18 +08:00
|
|
|
config RT_WLAN_DEVICE_STA_NAME
|
2019-07-15 18:17:53 +08:00
|
|
|
string "The device name for station"
|
2018-09-15 09:54:18 +08:00
|
|
|
default "wlan0"
|
|
|
|
|
|
|
|
config RT_WLAN_DEVICE_AP_NAME
|
2019-07-15 18:17:53 +08:00
|
|
|
string "The device name for ap"
|
2018-09-15 09:54:18 +08:00
|
|
|
default "wlan1"
|
|
|
|
|
|
|
|
config RT_WLAN_SSID_MAX_LENGTH
|
2019-07-15 18:17:53 +08:00
|
|
|
int "SSID maximum length"
|
2018-09-15 09:54:18 +08:00
|
|
|
default 32
|
|
|
|
|
|
|
|
config RT_WLAN_PASSWORD_MAX_LENGTH
|
2019-07-15 18:17:53 +08:00
|
|
|
int "Password maximum length"
|
2018-09-15 09:54:18 +08:00
|
|
|
default 32
|
|
|
|
|
2019-07-15 18:17:53 +08:00
|
|
|
config RT_WLAN_DEV_EVENT_NUM
|
|
|
|
int "Driver events maxcount"
|
|
|
|
default 2
|
|
|
|
|
|
|
|
config RT_WLAN_MANAGE_ENABLE
|
|
|
|
bool "Connection management Enable"
|
2018-06-06 11:07:50 +08:00
|
|
|
default y
|
2018-06-06 11:03:09 +08:00
|
|
|
|
2019-07-15 18:17:53 +08:00
|
|
|
if RT_WLAN_MANAGE_ENABLE
|
|
|
|
config RT_WLAN_SCAN_WAIT_MS
|
|
|
|
int "Set scan timeout time(ms)"
|
|
|
|
default 10000
|
2018-06-06 11:03:09 +08:00
|
|
|
|
2019-07-15 18:17:53 +08:00
|
|
|
config RT_WLAN_CONNECT_WAIT_MS
|
|
|
|
int "Set connect timeout time(ms)"
|
|
|
|
default 10000
|
2018-06-06 11:03:09 +08:00
|
|
|
|
2019-07-15 18:17:53 +08:00
|
|
|
config RT_WLAN_SCAN_SORT
|
|
|
|
bool "Automatic sorting of scan results"
|
|
|
|
default y
|
2018-06-06 11:03:09 +08:00
|
|
|
|
2019-07-15 18:17:53 +08:00
|
|
|
config RT_WLAN_MSH_CMD_ENABLE
|
|
|
|
bool "MSH command Enable"
|
|
|
|
default y
|
2018-09-15 09:54:18 +08:00
|
|
|
|
2019-07-15 18:17:53 +08:00
|
|
|
config RT_WLAN_AUTO_CONNECT_ENABLE
|
|
|
|
bool "Auto connect Enable"
|
|
|
|
select RT_WLAN_CFG_ENABLE
|
|
|
|
select RT_WLAN_WORK_THREAD_ENABLE
|
|
|
|
default y
|
2019-07-25 10:30:54 +08:00
|
|
|
|
|
|
|
if RT_WLAN_AUTO_CONNECT_ENABLE
|
|
|
|
config AUTO_CONNECTION_PERIOD_MS
|
|
|
|
int "Auto connect period(ms)"
|
|
|
|
default 2000
|
|
|
|
endif
|
2019-07-15 18:17:53 +08:00
|
|
|
endif
|
2018-09-15 09:54:18 +08:00
|
|
|
|
2019-07-15 18:17:53 +08:00
|
|
|
config RT_WLAN_CFG_ENABLE
|
|
|
|
bool "WiFi information automatically saved Enable"
|
|
|
|
default y
|
|
|
|
|
|
|
|
if RT_WLAN_CFG_ENABLE
|
|
|
|
config RT_WLAN_CFG_INFO_MAX
|
|
|
|
int "Maximum number of WiFi information automatically saved"
|
|
|
|
default 3
|
|
|
|
endif
|
|
|
|
|
|
|
|
config RT_WLAN_PROT_ENABLE
|
|
|
|
bool "Transport protocol manage Enable"
|
|
|
|
default y
|
|
|
|
|
|
|
|
if RT_WLAN_PROT_ENABLE
|
|
|
|
config RT_WLAN_PROT_NAME_LEN
|
|
|
|
int "Transport protocol name length"
|
|
|
|
default 8
|
|
|
|
|
|
|
|
config RT_WLAN_PROT_MAX
|
|
|
|
int "Transport protocol maxcount"
|
|
|
|
default 2
|
|
|
|
|
|
|
|
config RT_WLAN_DEFAULT_PROT
|
|
|
|
string "Default transport protocol"
|
|
|
|
default "lwip"
|
|
|
|
|
|
|
|
config RT_WLAN_PROT_LWIP_ENABLE
|
|
|
|
bool "LWIP transport protocol Enable"
|
|
|
|
select RT_USING_LWIP
|
|
|
|
default y
|
|
|
|
|
|
|
|
if RT_WLAN_PROT_LWIP_ENABLE
|
|
|
|
config RT_WLAN_PROT_LWIP_NAME
|
|
|
|
string "LWIP transport protocol name"
|
|
|
|
default "lwip"
|
|
|
|
|
|
|
|
config RT_WLAN_PROT_LWIP_PBUF_FORCE
|
|
|
|
bool "Forced use of PBUF transmission"
|
|
|
|
default n
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
|
|
|
config RT_WLAN_WORK_THREAD_ENABLE
|
|
|
|
bool "WLAN work queue thread Enable"
|
|
|
|
default y
|
|
|
|
|
|
|
|
if RT_WLAN_WORK_THREAD_ENABLE
|
|
|
|
config RT_WLAN_WORKQUEUE_THREAD_NAME
|
|
|
|
string "WLAN work queue thread name"
|
|
|
|
default "wlan"
|
|
|
|
|
|
|
|
config RT_WLAN_WORKQUEUE_THREAD_SIZE
|
|
|
|
int "WLAN work queue thread size"
|
|
|
|
default 2048
|
|
|
|
|
|
|
|
config RT_WLAN_WORKQUEUE_THREAD_PRIO
|
|
|
|
int "WLAN work queue thread priority"
|
|
|
|
default 15
|
|
|
|
endif
|
2018-09-19 15:06:05 +08:00
|
|
|
|
|
|
|
menuconfig RT_WLAN_DEBUG
|
|
|
|
bool "Enable WLAN Debugging Options"
|
|
|
|
default n
|
|
|
|
|
|
|
|
if RT_WLAN_DEBUG
|
|
|
|
config RT_WLAN_CMD_DEBUG
|
|
|
|
bool "Enable Debugging of wlan_cmd.c"
|
|
|
|
default n
|
|
|
|
|
|
|
|
config RT_WLAN_MGNT_DEBUG
|
|
|
|
bool "Enable Debugging of wlan_mgnt.c"
|
|
|
|
default n
|
|
|
|
|
|
|
|
config RT_WLAN_DEV_DEBUG
|
|
|
|
bool "Enable Debugging of wlan_dev.c"
|
|
|
|
default n
|
|
|
|
|
|
|
|
config RT_WLAN_PROT_DEBUG
|
|
|
|
bool "Enable Debugging of wlan_prot.c"
|
|
|
|
default n
|
|
|
|
|
|
|
|
config RT_WLAN_CFG_DEBUG
|
|
|
|
bool "Enable Debugging of wlan_cfg.c"
|
|
|
|
default n
|
|
|
|
|
|
|
|
config RT_WLAN_LWIP_DEBUG
|
|
|
|
bool "Enable Debugging of wlan_lwip.c"
|
|
|
|
default n
|
|
|
|
endif
|
2018-09-15 09:54:18 +08:00
|
|
|
endif
|
2018-05-29 10:10:42 +08:00
|
|
|
|
2017-11-16 14:51:04 +08:00
|
|
|
menu "Using USB"
|
|
|
|
config RT_USING_USB_HOST
|
|
|
|
bool "Using USB host"
|
|
|
|
default n
|
2017-06-06 18:18:44 +08:00
|
|
|
|
2017-11-16 14:51:04 +08:00
|
|
|
if RT_USING_USB_HOST
|
2017-12-14 22:45:12 +08:00
|
|
|
config RT_USBH_MSTORAGE
|
|
|
|
bool "Enable Udisk Drivers"
|
2017-11-16 14:51:04 +08:00
|
|
|
default n
|
2017-12-14 22:45:12 +08:00
|
|
|
if RT_USBH_MSTORAGE
|
|
|
|
config UDISK_MOUNTPOINT
|
|
|
|
string "Udisk mount dir"
|
|
|
|
default "/"
|
|
|
|
endif
|
2017-11-16 14:51:04 +08:00
|
|
|
endif
|
|
|
|
config RT_USING_USB_DEVICE
|
|
|
|
bool "Using USB device"
|
|
|
|
default n
|
2018-04-23 20:09:01 +08:00
|
|
|
if RT_USING_USB_DEVICE || RT_USING_USB_HOST
|
|
|
|
config RT_USBD_THREAD_STACK_SZ
|
|
|
|
int "usb thread stack size"
|
|
|
|
default 4096
|
|
|
|
endif
|
2017-11-16 14:51:04 +08:00
|
|
|
if RT_USING_USB_DEVICE
|
2018-03-09 15:28:57 +08:00
|
|
|
config USB_VENDOR_ID
|
2018-03-09 15:21:33 +08:00
|
|
|
hex "USB Vendor ID"
|
|
|
|
default 0x0FFE
|
2018-03-09 15:28:57 +08:00
|
|
|
config USB_PRODUCT_ID
|
2018-03-09 15:21:33 +08:00
|
|
|
hex "USB Product ID"
|
|
|
|
default 0x0001
|
2018-07-18 11:05:39 +08:00
|
|
|
|
2017-11-16 14:51:04 +08:00
|
|
|
config RT_USB_DEVICE_COMPOSITE
|
|
|
|
bool "Enable composite device"
|
|
|
|
default n
|
|
|
|
choice
|
|
|
|
prompt "Device type"
|
2018-04-24 15:00:33 +08:00
|
|
|
default _RT_USB_DEVICE_NONE
|
2017-11-16 14:51:04 +08:00
|
|
|
depends on !RT_USB_DEVICE_COMPOSITE
|
2018-04-24 15:00:33 +08:00
|
|
|
config _RT_USB_DEVICE_NONE
|
|
|
|
bool "Using custom class by register interface"
|
|
|
|
select RT_USB_DEVICE_NONE
|
2017-11-16 14:51:04 +08:00
|
|
|
config _RT_USB_DEVICE_CDC
|
|
|
|
bool "Enable to use device as CDC device"
|
|
|
|
select RT_USB_DEVICE_CDC
|
|
|
|
config _RT_USB_DEVICE_MSTORAGE
|
|
|
|
bool "Enable to use device as Mass Storage device"
|
|
|
|
select RT_USB_DEVICE_MSTORAGE
|
|
|
|
config _RT_USB_DEVICE_HID
|
|
|
|
bool "Enable to use device as HID device"
|
|
|
|
select RT_USB_DEVICE_HID
|
2017-11-24 22:57:22 +08:00
|
|
|
config _RT_USB_DEVICE_RNDIS
|
|
|
|
bool "Enable to use device as rndis device"
|
|
|
|
select RT_USB_DEVICE_RNDIS
|
|
|
|
depends on RT_USING_LWIP
|
2017-11-21 22:37:22 +08:00
|
|
|
config _RT_USB_DEVICE_ECM
|
|
|
|
bool "Enable to use device as ecm device"
|
|
|
|
select RT_USB_DEVICE_ECM
|
|
|
|
depends on RT_USING_LWIP
|
2017-11-23 00:37:21 +08:00
|
|
|
config _RT_USB_DEVICE_WINUSB
|
|
|
|
bool "Enable to use device as winusb device"
|
|
|
|
select RT_USB_DEVICE_WINUSB
|
2019-09-19 21:00:05 +08:00
|
|
|
config _RT_USB_DEVICE_AUDIO
|
|
|
|
bool "Enable to use device as audio device"
|
|
|
|
select RT_USB_DEVICE_AUDIO
|
2017-11-16 14:51:04 +08:00
|
|
|
endchoice
|
|
|
|
if RT_USB_DEVICE_COMPOSITE
|
|
|
|
config RT_USB_DEVICE_CDC
|
|
|
|
bool "Enable to use device as CDC device"
|
2018-04-24 15:00:33 +08:00
|
|
|
default n
|
|
|
|
config RT_USB_DEVICE_NONE
|
2018-07-28 20:22:47 +08:00
|
|
|
bool
|
2017-11-16 14:51:04 +08:00
|
|
|
default y
|
|
|
|
config RT_USB_DEVICE_MSTORAGE
|
|
|
|
bool "Enable to use device as Mass Storage device"
|
|
|
|
default n
|
|
|
|
config RT_USB_DEVICE_HID
|
|
|
|
bool "Enable to use device as HID device"
|
|
|
|
default n
|
2017-11-24 22:57:22 +08:00
|
|
|
config RT_USB_DEVICE_RNDIS
|
|
|
|
bool "Enable to use device as rndis device"
|
|
|
|
default n
|
|
|
|
depends on RT_USING_LWIP
|
2017-11-21 22:37:22 +08:00
|
|
|
config RT_USB_DEVICE_ECM
|
|
|
|
bool "Enable to use device as ecm device"
|
|
|
|
default n
|
|
|
|
depends on RT_USING_LWIP
|
2017-11-23 00:37:21 +08:00
|
|
|
config RT_USB_DEVICE_WINUSB
|
|
|
|
bool "Enable to use device as winusb device"
|
|
|
|
default n
|
2019-09-19 21:00:05 +08:00
|
|
|
config RT_USB_DEVICE_AUDIO
|
|
|
|
bool "Enable to use device as audio device"
|
|
|
|
default n
|
2017-11-16 14:51:04 +08:00
|
|
|
endif
|
2018-10-26 14:29:22 +08:00
|
|
|
if RT_USB_DEVICE_CDC
|
|
|
|
config RT_VCOM_TASK_STK_SIZE
|
|
|
|
int "virtual com thread stack size"
|
|
|
|
default 512
|
2020-01-17 15:42:56 +08:00
|
|
|
config RT_CDC_RX_BUFSIZE
|
|
|
|
int "virtual com rx buffer size"
|
|
|
|
default 128
|
2018-10-26 14:29:22 +08:00
|
|
|
config RT_VCOM_TX_USE_DMA
|
|
|
|
bool "Enable to use dma for vcom tx"
|
|
|
|
default n
|
|
|
|
config RT_VCOM_SERNO
|
|
|
|
string "serial number of virtual com"
|
|
|
|
default "32021919830108"
|
|
|
|
config RT_VCOM_SER_LEN
|
|
|
|
int "serial number length of virtual com"
|
|
|
|
default 14
|
|
|
|
config RT_VCOM_TX_TIMEOUT
|
|
|
|
int "tx timeout(ticks) of virtual com"
|
|
|
|
default 1000
|
|
|
|
endif
|
2018-03-09 15:21:33 +08:00
|
|
|
if RT_USB_DEVICE_WINUSB
|
|
|
|
config RT_WINUSB_GUID
|
|
|
|
string "Guid for winusb"
|
|
|
|
default "{6860DC3C-C05F-4807-8807-1CA861CC1D66}"
|
|
|
|
endif
|
2017-11-29 18:33:09 +08:00
|
|
|
if RT_USB_DEVICE_MSTORAGE
|
|
|
|
config RT_USB_MSTORAGE_DISK_NAME
|
|
|
|
string "msc class disk name"
|
|
|
|
default "flash0"
|
|
|
|
endif
|
2019-06-10 14:10:08 +08:00
|
|
|
|
|
|
|
if RT_USB_DEVICE_RNDIS
|
|
|
|
config RNDIS_DELAY_LINK_UP
|
|
|
|
bool "Delay linkup media connection"
|
2019-06-11 15:32:37 +08:00
|
|
|
select RT_USING_TIMER_SOFT
|
2019-06-10 14:10:08 +08:00
|
|
|
default n
|
|
|
|
endif
|
|
|
|
|
2017-11-16 14:51:04 +08:00
|
|
|
if RT_USB_DEVICE_HID
|
|
|
|
config RT_USB_DEVICE_HID_KEYBOARD
|
|
|
|
bool "Use to HID device as Keyboard"
|
|
|
|
default n
|
|
|
|
if RT_USB_DEVICE_HID_KEYBOARD
|
|
|
|
config RT_USB_DEVICE_HID_KEYBOARD_NUMBER
|
|
|
|
int "Number of Keyboard(max 3)"
|
|
|
|
default 1
|
|
|
|
range 1 3
|
|
|
|
endif
|
|
|
|
config RT_USB_DEVICE_HID_MOUSE
|
|
|
|
bool "Use to HID device as Mouse"
|
|
|
|
default n
|
|
|
|
config RT_USB_DEVICE_HID_GENERAL
|
|
|
|
bool "Use to HID device as General HID device"
|
|
|
|
default y
|
|
|
|
if RT_USB_DEVICE_HID_GENERAL
|
|
|
|
config RT_USB_DEVICE_HID_GENERAL_OUT_REPORT_LENGTH
|
|
|
|
int "General HID device out report length"
|
|
|
|
default 63
|
|
|
|
range 0 63
|
|
|
|
|
|
|
|
config RT_USB_DEVICE_HID_GENERAL_IN_REPORT_LENGTH
|
|
|
|
int "General HID device in report length"
|
|
|
|
default 63
|
|
|
|
range 0 63
|
|
|
|
endif
|
|
|
|
config RT_USB_DEVICE_HID_MEDIA
|
|
|
|
bool "Use to HID device as media keyboard"
|
|
|
|
default y
|
|
|
|
endif
|
2019-09-19 21:00:05 +08:00
|
|
|
if RT_USB_DEVICE_AUDIO
|
|
|
|
config RT_USB_DEVICE_AUDIO_MIC
|
|
|
|
bool "Use usb mic device as audio device"
|
|
|
|
default n
|
|
|
|
if RT_USB_DEVICE_AUDIO_MIC
|
|
|
|
config RT_USBD_MIC_DEVICE_NAME
|
|
|
|
string "audio mic device name"
|
|
|
|
default "mic0"
|
|
|
|
endif
|
|
|
|
config RT_USB_DEVICE_AUDIO_SPEAKER
|
|
|
|
bool "Use usb speaker device as audio device"
|
|
|
|
default n
|
|
|
|
if RT_USB_DEVICE_AUDIO_SPEAKER
|
|
|
|
config RT_USBD_SPEAKER_DEVICE_NAME
|
|
|
|
string "audio speaker device name"
|
|
|
|
default "sound0"
|
|
|
|
endif
|
|
|
|
endif
|
2017-11-16 14:51:04 +08:00
|
|
|
endif
|
|
|
|
endmenu
|
2017-01-31 11:54:12 +08:00
|
|
|
endmenu
|