1menu "Hardware Drivers Config" 2 3 menu "On-chip Peripheral Drivers" 4 source "$(BSP_DIR)/../libraries/m480/rtt_port/Kconfig" 5 endmenu 6 7 menu "On-board Peripheral Drivers" 8 9 config BSP_USING_NULINKME 10 bool "Enable UART0 for RTT Console(uart0)" 11 select BSP_USING_UART 12 select BSP_USING_UART0 13 default y 14 15 config BOARD_USING_IP101GR 16 bool "Enable ethernet phy supporting(over emac/mdio)" 17 select BSP_USING_EMAC 18 default n 19 20 config BOARD_USING_ESP8266 21 bool "ESP8266 Wi-Fi module supporting(over uart1)" 22 select BSP_USING_UART 23 select BSP_USING_UART1 24 select BSP_USING_UART1_RX_DMA 25 select BSP_USING_UART1_TX_DMA 26 select PKG_USING_AT_DEVICE 27 select AT_DEVICE_USING_ESP8266 28 select AT_DEVICE_ESP8266_INIT_ASYN 29 default n 30 31 config BOARD_USING_BMX055 32 bool "BMX055 9-axis sensor(over i2c2)" 33 select NU_PKG_USING_BMX055 34 select BSP_USING_I2C2 35 default n 36 37 config BOARD_USING_NAU88L25 38 bool "NAU88L25 Audio Codec supporting(over i2s, i2c2)" 39 select NU_PKG_USING_NAU88L25 40 select BSP_USING_I2C2 41 select BSP_USING_I2S 42 select BSP_USING_I2S0 43 default n 44 45 config BOARD_USING_STORAGE_SDCARD 46 bool "SDCARD supporting(over sdh0)" 47 select BSP_USING_SDH 48 select BSP_USING_SDH0 49 default n 50 51 config BOARD_USING_STORAGE_SPIFLASH 52 bool "SPIFLASH supporting(over qspi0)" 53 select BSP_USING_QSPI 54 select BSP_USING_QSPI0 55 default y 56 57 config BOARD_USING_USB_D_H 58 bool "Enable USB Device or Host function" 59 help 60 Choose this option if you need USB function. 61 62 if BOARD_USING_USB_D_H 63 choice 64 prompt "Select FS/HS USB Ports" 65 66 config BOARD_USING_HSUSBD 67 select BSP_USING_HSUSBD 68 bool "Enable HSUSBD(over USB2.0)" 69 help 70 Choose this option if you need HSUSBD function mode. 71 72 config BOARD_USING_HSUSBD_USBH 73 select BSP_USING_USBH 74 select BSP_USING_HSUSBD 75 bool "Enable HSUSBD(over USB2.0) and USBH(over USB1.1)" 76 help 77 Choose this option if you need HSUSBD and USBH function mode at the same time. 78 79 config BOARD_USING_HSUSBH 80 select BSP_USING_HSUSBH 81 bool "Enable HSUSBH(over USB2.0)" 82 help 83 Choose this option if you need HSUSBH function mode. 84 85 config BOARD_USING_HSUSBH_USBD 86 select BSP_USING_HSUSBH 87 select BSP_USING_USBD 88 bool "Enable HSUSBH(over USB2.0) and USBD(over USB1.1)" 89 help 90 Choose this option if you need HSUSBH and USBD function mode at the same time. 91 92 config BOARD_USING_HSOTG 93 select BSP_USING_HSOTG 94 bool "Enable HSOTG(over USB2.0)" 95 help 96 Choose this option if you need HSOTG function mode. 97 endchoice 98 endif 99 100 endmenu 101 102 menu "Board extended module drivers" 103 104 config BOARD_USING_MAX31875 105 bool "MAX31875 Temperature sensor(over i2c1)" 106 select NU_PKG_USING_MAX31875 107 select BSP_USING_I2C1 108 default n 109 110 config BOARD_USING_LCD_ILI9341 111 bool "LCD ILI9341 (over spi2)" 112 select RT_USING_TOUCH 113 select BSP_USING_SPI2 114 select BSP_USING_EADC 115 select BSP_USING_EADC0 116 select NU_PKG_USING_ADC_TOUCH 117 select NU_PKG_USING_ADC_TOUCH_SW 118 select NU_PKG_USING_ILI9341 119 select NU_PKG_USING_ILI9341_SPI 120 select NU_PKG_ILI9341_WITH_OFFSCREEN_FRAMEBUFFER 121 select NU_PKG_ILI9341_HORIZONTAL 122 default n 123 124 if BOARD_USING_LCD_ILI9341 125 126 config BOARD_USING_ILI9341_PIN_BACKLIGHT 127 int "Specify the pin index of backlight pin index" 128 range 0 127 129 default 69 130 131 config BOARD_USING_ILI9341_PIN_RESET 132 int "Specify the pin index of reset pin index" 133 range 0 127 134 default 19 135 136 config BOARD_USING_ILI9341_PIN_DC 137 int "Specify the pin index of data&command switching" 138 range 0 127 139 default 18 140 141 endif 142 143 endmenu 144 145 source "$(BSP_DIR)/../libraries/nu_packages/Kconfig" 146 147endmenu 148