1menu "Hardware Drivers Config" 2 3config SOC_LPC55S28 4 bool 5 select SOC_LPC55S28_SERIES 6 select RT_USING_COMPONENTS_INIT 7 select RT_USING_USER_MAIN 8 default y 9 10menu "On-chip Peripheral Drivers" 11 12 config BSP_USING_DMA 13 bool "Enable DMA" 14 select RT_USING_DMA 15 default n 16 17 config BSP_USING_PIN 18 bool "Enable GPIO" 19 select RT_USING_PIN 20 default y 21 22 menuconfig BSP_USING_UART 23 config BSP_USING_UART 24 bool "Enable UART" 25 select RT_USING_UART 26 default y 27 28 if BSP_USING_UART 29 config BSP_USING_UART0 30 bool "Enable Flexcomm0 as UART" 31 default y 32 if BSP_USING_UART0 33 choice 34 prompt "Select UART0 badurate" 35 default HW_UART0_BAUDRATE_115200 36 37 config HW_UART0_BAUDRATE_9600 38 bool "Badurate 9600" 39 40 config HW_UART0_BAUDRATE_115200 41 bool "Badurate 115200" 42 endchoice 43 endif 44 45 config BSP_USING_UART2 46 bool "Enable Flexcomm2 as UART" 47 default n 48 if BSP_USING_UART2 49 choice 50 prompt "Select UART2 badurate" 51 default HW_UART2_BAUDRATE_115200 52 53 config HW_UART2_BAUDRATE_9600 54 bool "Badurate 9600" 55 56 config HW_UART2_BAUDRATE_115200 57 bool "Badurate 115200" 58 endchoice 59 endif 60 endif 61 62 63 menuconfig BSP_USING_I2C 64 config BSP_USING_I2C 65 bool "Enable I2C" 66 select RT_USING_I2C 67 default n 68 69 if BSP_USING_I2C 70 config BSP_USING_I2C1 71 bool "Enable Flexcomm1 I2C" 72 default n 73 if BSP_USING_I2C1 74 choice 75 prompt "Select I2C1 badurate" 76 default HW_I2C1_BAUDRATE_100kHZ 77 78 config HW_I2C1_BAUDRATE_100kHZ 79 bool "Badurate 100kHZ" 80 81 config HW_I2C1_BAUDRATE_400kHZ 82 bool "Badurate 400kHZ" 83 endchoice 84 endif 85 86 config BSP_USING_I2C4 87 bool "Enable Flexcomm4 I2C" 88 default n 89 if BSP_USING_I2C4 90 choice 91 prompt "Select I2C4 badurate" 92 default HW_I2C4_BAUDRATE_100kHZ 93 94 config HW_I2C4_BAUDRATE_100kHZ 95 bool "Badurate 100kHZ" 96 97 config HW_I2C4_BAUDRATE_400kHZ 98 bool "Badurate 400kHZ" 99 endchoice 100 endif 101 endif 102 103 menuconfig BSP_USING_SPI 104 config BSP_USING_SPI 105 bool "Enable SPI" 106 select RT_USING_SPI 107 default n 108 109 if BSP_USING_SPI 110 config BSP_USING_SPI3 111 bool "Enable Flexcomm3 as SPI" 112 default n 113 114 config BSP_USING_SPI8 115 bool "Enable Flexcomm8 as High Speed SPI" 116 default n 117 endif 118 119 menuconfig BSP_USING_ADC 120 config BSP_USING_ADC 121 bool "Enable ADC Channel" 122 select RT_USING_ADC 123 default n 124 125 if BSP_USING_ADC 126 config BSP_USING_ADC0_CH0 127 bool "Enable ADC0 Channel0" 128 default n 129 130 config BSP_USING_ADC0_CH1 131 bool "Enable ADC0 Channel1" 132 default n 133 endif 134 135 config BSP_USING_SDIO 136 bool "Enable SDIO SD Card Interface" 137 select RT_USING_SDIO 138 select RT_USING_DFS 139 select RT_USING_DFS_ELMFAT 140 default n 141 142 config BSP_USING_RTC 143 bool "Enable RTC" 144 select RT_USING_RTC 145 default n 146 147 config BSP_USING_WDT 148 bool "Enable WatchDog" 149 select RT_USING_WDT 150 default n 151 152 menuconfig BSP_USING_HWTIMER 153 config BSP_USING_HWTIMER 154 bool "Enable Timer" 155 select RT_USING_HWTIMER 156 default n 157 158 if BSP_USING_HWTIMER 159 config BSP_USING_CTIMER0 160 bool "Enable CIMER0" 161 default n 162 163 config BSP_USING_CTIMER1 164 bool "Enable CIMER1" 165 default n 166 167 config BSP_USING_CTIMER3 168 bool "Enable CIMER3" 169 default n 170 171 config BSP_USING_CTIMER4 172 bool "Enable CIMER4" 173 default n 174 endif 175 176 menuconfig BSP_USING_PWM 177 config BSP_USING_PWM 178 bool "Enable PWM" 179 select RT_USING_PWM 180 default n 181 182 if BSP_USING_PWM 183 config BSP_USING_CTIMER2_MAT0 184 bool "Enable CIMER2 Match0 as PWM output" 185 default n 186 187 config BSP_USING_CTIMER2_MAT1 188 bool "Enable CIMER2 Match1 as PWM output" 189 default n 190 191 config BSP_USING_CTIMER2_MAT2 192 bool "Enable CIMER2 Match2 as PWM output" 193 default n 194 endif 195endmenu 196 197menu "Onboard Peripheral Drivers" 198 config BSP_USING_MMA8562 199 bool "Enable MMA8562" 200 select BSP_USING_I2C4 201 default n 202 if BSP_USING_MMA8562 203 config BSP_USING_MMA8562I2C 204 string "the device name for 3-Axis Sensor" 205 default "i2c4" 206 endif 207 208endmenu 209 210menu "Board extended module Drivers" 211 212endmenu 213 214endmenu 215