1# Copyright (c) 2016 Nordic Semiconductor ASA 2# SPDX-License-Identifier: Apache-2.0 3 4config HAS_NRFX 5 bool 6 7menu "nrfx drivers" 8 depends on HAS_NRFX 9 10config NRFX_ADC 11 bool "Enable ADC driver" 12 depends on HAS_HW_NRF_ADC 13 14config NRFX_CLOCK 15 bool "Enable CLOCK driver" 16 depends on HAS_HW_NRF_CLOCK 17 18config NRFX_CLOCK_LFXO_TWO_STAGE_ENABLED 19 bool "Enable two stage start sequence of the low frequency clock" 20 depends on NRFX_CLOCK 21 22config NRFX_COMP 23 bool "Enable COMP driver" 24 depends on HAS_HW_NRF_COMP 25 26config NRFX_DPPI 27 bool "Enable DPPI allocator" 28 depends on HAS_HW_NRF_DPPIC 29 30config NRFX_EGU 31 bool "Enable EGU driver" 32 depends on HAS_HW_NRF_EGU0 || HAS_HW_NRF_EGU1 || HAS_HW_NRF_EGU2 || \ 33 HAS_HW_NRF_EGU3 || HAS_HW_NRF_EGU4 || HAS_HW_NRF_EGU5 34 35config NRFX_EGU0 36 bool "Enable EGU0 instance" 37 depends on HAS_HW_NRF_EGU0 38 select NRFX_EGU 39 40config NRFX_EGU1 41 bool "Enable EGU1 instance" 42 depends on HAS_HW_NRF_EGU1 43 select NRFX_EGU 44 45config NRFX_EGU2 46 bool "Enable EGU2 instance" 47 depends on HAS_HW_NRF_EGU2 48 select NRFX_EGU 49 50config NRFX_EGU3 51 bool "Enable EGU3 instance" 52 depends on HAS_HW_NRF_EGU3 53 select NRFX_EGU 54 55config NRFX_EGU4 56 bool "Enable EGU4 instance" 57 depends on HAS_HW_NRF_EGU4 58 select NRFX_EGU 59 60config NRFX_EGU5 61 bool "Enable EGU5 instance" 62 depends on HAS_HW_NRF_EGU5 63 select NRFX_EGU 64 65config NRFX_GPIOTE 66 bool "Enable GPIOTE driver" 67 depends on HAS_HW_NRF_GPIOTE 68 69config NRFX_I2S 70 bool "Enable I2S driver" 71 depends on HAS_HW_NRF_I2S 72 73config NRFX_IPC 74 bool "Enable IPC driver" 75 depends on HAS_HW_NRF_IPC 76 77config NRFX_LPCOMP 78 bool "Enable LPCOMP driver" 79 depends on HAS_HW_NRF_LPCOMP 80 81config NRFX_NFCT 82 bool "Enable NFCT driver" 83 depends on HAS_HW_NRF_NFCT 84 select NRFX_TIMER4 if SOC_SERIES_NRF52X 85 select NRFX_TIMER2 if SOC_SERIES_NRF53X 86 87config NRFX_NVMC 88 bool "Enable NVMC driver" 89 90config NRFX_PDM 91 bool "Enable PDM driver" 92 depends on HAS_HW_NRF_PDM 93 94config NRFX_POWER 95 bool "Enable POWER driver" 96 depends on HAS_HW_NRF_POWER 97 # On SoCs featuring the USBREG peripheral, the POWER driver uses 98 # internally the USBREG driver. 99 select NRFX_USBREG if HAS_HW_NRF_USBREG 100 101config NRFX_PPI 102 bool "Enable PPI allocator" 103 depends on HAS_HW_NRF_PPI 104 105config NRFX_PWM 106 bool "Enable PWM driver" 107 depends on HAS_HW_NRF_PWM0 || HAS_HW_NRF_PWM1 || \ 108 HAS_HW_NRF_PWM2 || HAS_HW_NRF_PWM3 109 110config NRFX_PWM0 111 bool "Enable PWM0 instance" 112 depends on HAS_HW_NRF_PWM0 113 select NRFX_PWM 114 115config NRFX_PWM1 116 bool "Enable PWM1 instance" 117 depends on HAS_HW_NRF_PWM1 118 select NRFX_PWM 119 120config NRFX_PWM2 121 bool "Enable PWM2 instance" 122 depends on HAS_HW_NRF_PWM2 123 select NRFX_PWM 124 125config NRFX_PWM3 126 bool "Enable PWM3 instance" 127 depends on HAS_HW_NRF_PWM3 128 select NRFX_PWM 129 130config NRFX_QDEC 131 bool "Enable QDEC driver" 132 depends on HAS_HW_NRF_QDEC || HAS_HW_NRF_QDEC0 133 134config NRFX_QSPI 135 bool "Enable QSPI driver" 136 depends on HAS_HW_NRF_QSPI 137 138config NRFX_RNG 139 bool "Enable RNG driver" 140 depends on HAS_HW_NRF_RNG 141 142config NRFX_RTC 143 bool "Enable RTC driver" 144 depends on HAS_HW_NRF_RTC0 || HAS_HW_NRF_RTC1 || HAS_HW_NRF_RTC2 145 146config NRFX_RTC0 147 bool "Enable RTC0 instance" 148 depends on HAS_HW_NRF_RTC0 149 select NRFX_RTC 150 151config NRFX_RTC1 152 bool "Enable RTC1 instance" 153 depends on HAS_HW_NRF_RTC1 154 select NRFX_RTC 155 156config NRFX_RTC2 157 bool "Enable RTC2 instance" 158 depends on HAS_HW_NRF_RTC2 159 select NRFX_RTC 160 161config NRFX_SAADC 162 bool "Enable SAADC driver" 163 depends on HAS_HW_NRF_SAADC 164 165config NRFX_SPI 166 bool "Enable SPI driver" 167 depends on HAS_HW_NRF_SPI0 || HAS_HW_NRF_SPI1 || HAS_HW_NRF_SPI2 168 169config NRFX_SPI0 170 bool "Enable SPI0 instance" 171 depends on HAS_HW_NRF_SPI0 172 select NRFX_SPI 173 174config NRFX_SPI1 175 bool "Enable SPI1 instance" 176 depends on HAS_HW_NRF_SPI1 177 select NRFX_SPI 178 179config NRFX_SPI2 180 bool "Enable SPI2 instance" 181 depends on HAS_HW_NRF_SPI2 182 select NRFX_SPI 183 184config NRFX_SPIM 185 bool "Enable SPIM driver" 186 depends on HAS_HW_NRF_SPIM0 || HAS_HW_NRF_SPIM1 || \ 187 HAS_HW_NRF_SPIM2 || HAS_HW_NRF_SPIM3 || HAS_HW_NRF_SPIM4 188 189config NRFX_SPIM0 190 bool "Enable SPIM0 instance" 191 depends on HAS_HW_NRF_SPIM0 192 select NRFX_SPIM 193 194config NRFX_SPIM1 195 bool "Enable SPIM1 instance" 196 depends on HAS_HW_NRF_SPIM1 197 select NRFX_SPIM 198 199config NRFX_SPIM2 200 bool "Enable SPIM2 instance" 201 depends on HAS_HW_NRF_SPIM2 202 select NRFX_SPIM 203 204config NRFX_SPIM3 205 bool "Enable SPIM3 instance" 206 depends on HAS_HW_NRF_SPIM3 207 select NRFX_SPIM 208 209config NRFX_SPIM4 210 bool "Enable SPIM4 instance" 211 depends on HAS_HW_NRF_SPIM4 212 select NRFX_SPIM 213 214config NRFX_SPIS 215 bool "Enable SPIS driver" 216 depends on HAS_HW_NRF_SPIS0 || HAS_HW_NRF_SPIS1 || \ 217 HAS_HW_NRF_SPIS2 || HAS_HW_NRF_SPIS3 218 219config NRFX_SPIS0 220 bool "Enable SPIS0 instance" 221 depends on HAS_HW_NRF_SPIS0 222 select NRFX_SPIS 223 224config NRFX_SPIS1 225 bool "Enable SPIS1 instance" 226 depends on HAS_HW_NRF_SPIS1 227 select NRFX_SPIS 228 229config NRFX_SPIS2 230 bool "Enable SPIS2 instance" 231 depends on HAS_HW_NRF_SPIS2 232 select NRFX_SPIS 233 234config NRFX_SPIS3 235 bool "Enable SPIS3 instance" 236 depends on HAS_HW_NRF_SPIS3 237 select NRFX_SPIS 238 239config NRFX_SYSTICK 240 bool "Enable SYSTICK driver" 241 depends on CPU_CORTEX_M_HAS_SYSTICK 242 243config NRFX_TEMP 244 bool "Enable TEMP driver" 245 depends on HAS_HW_NRF_TEMP 246 247config NRFX_TIMER 248 bool "Enable TIMER driver" 249 depends on HAS_HW_NRF_TIMER0 || HAS_HW_NRF_TIMER1 || \ 250 HAS_HW_NRF_TIMER2 || HAS_HW_NRF_TIMER3 || \ 251 HAS_HW_NRF_TIMER4 252 253config NRFX_TIMER0 254 bool "Enable TIMER0 instance" 255 depends on HAS_HW_NRF_TIMER0 256 select NRFX_TIMER 257 258config NRFX_TIMER1 259 bool "Enable TIMER1 instance" 260 depends on HAS_HW_NRF_TIMER1 261 select NRFX_TIMER 262 263config NRFX_TIMER2 264 bool "Enable TIMER2 instance" 265 depends on HAS_HW_NRF_TIMER2 266 select NRFX_TIMER 267 268config NRFX_TIMER3 269 bool "Enable TIMER3 instance" 270 depends on HAS_HW_NRF_TIMER3 271 select NRFX_TIMER 272 273config NRFX_TIMER4 274 bool "Enable TIMER4 instance" 275 depends on HAS_HW_NRF_TIMER4 276 select NRFX_TIMER 277 278config NRFX_TWI 279 bool "Enable TWI driver" 280 depends on HAS_HW_NRF_TWI0 || HAS_HW_NRF_TWI1 281 282config NRFX_TWI0 283 bool "Enable TWI0 instance" 284 depends on HAS_HW_NRF_TWI0 285 select NRFX_TWI 286 287config NRFX_TWI1 288 bool "Enable TWI1 instance" 289 depends on HAS_HW_NRF_TWI1 290 select NRFX_TWI 291 292config NRFX_TWIM 293 bool "Enable TWIM driver" 294 depends on HAS_HW_NRF_TWIM0 || HAS_HW_NRF_TWIM1 || \ 295 HAS_HW_NRF_TWIM2 || HAS_HW_NRF_TWIM3 296 297config NRFX_TWIM0 298 bool "Enable TWIM0 instance" 299 depends on HAS_HW_NRF_TWIM0 300 select NRFX_TWIM 301 302config NRFX_TWIM1 303 bool "Enable TWIM1 instance" 304 depends on HAS_HW_NRF_TWIM1 305 select NRFX_TWIM 306 307config NRFX_TWIM2 308 bool "Enable TWIM2 instance" 309 depends on HAS_HW_NRF_TWIM2 310 select NRFX_TWIM 311 312config NRFX_TWIM3 313 bool "Enable TWIM3 instance" 314 depends on HAS_HW_NRF_TWIM3 315 select NRFX_TWIM 316 317config NRFX_TWIS 318 bool "Enable TWIS driver" 319 depends on HAS_HW_NRF_TWIS0 || HAS_HW_NRF_TWIS1 || \ 320 HAS_HW_NRF_TWIS2 || HAS_HW_NRF_TWIS3 321 322config NRFX_TWIS0 323 bool "Enable TWIS0 instance" 324 depends on HAS_HW_NRF_TWIS0 325 select NRFX_TWIS 326 327config NRFX_TWIS1 328 bool "Enable TWIS1 instance" 329 depends on HAS_HW_NRF_TWIS1 330 select NRFX_TWIS 331 332config NRFX_TWIS2 333 bool "Enable TWIS2 instance" 334 depends on HAS_HW_NRF_TWIS2 335 select NRFX_TWIS 336 337config NRFX_TWIS3 338 bool "Enable TWIS3 instance" 339 depends on HAS_HW_NRF_TWIS3 340 select NRFX_TWIS 341 342config NRFX_UART 343 bool "Enable UART driver" 344 depends on HAS_HW_NRF_UART0 345 346config NRFX_UART0 347 bool "Enable UART0 instance" 348 depends on HAS_HW_NRF_UART0 349 select NRFX_UART 350 351config NRFX_UARTE 352 bool "Enable UARTE driver" 353 depends on HAS_HW_NRF_UARTE0 || HAS_HW_NRF_UARTE1 || \ 354 HAS_HW_NRF_UARTE2 || HAS_HW_NRF_UARTE3 355 356config NRFX_UARTE0 357 bool "Enable UARTE0 instance" 358 depends on HAS_HW_NRF_UARTE0 359 select NRFX_UARTE 360 361config NRFX_UARTE1 362 bool "Enable UARTE1 instance" 363 depends on HAS_HW_NRF_UARTE1 364 select NRFX_UARTE 365 366config NRFX_UARTE2 367 bool "Enable UARTE2 instance" 368 depends on HAS_HW_NRF_UARTE2 369 select NRFX_UARTE 370 371config NRFX_UARTE3 372 bool "Enable UARTE3 instance" 373 depends on HAS_HW_NRF_UARTE3 374 select NRFX_UARTE 375 376config NRFX_USBD 377 bool "Enable USBD driver" 378 depends on HAS_HW_NRF_USBD 379 select NRFX_SYSTICK 380 381config NRFX_USBREG 382 bool "Enable USBREG driver" 383 depends on HAS_HW_NRF_USBREG 384 385config NRFX_WDT 386 bool "Enable WDT driver" 387 depends on HAS_HW_NRF_WDT || HAS_HW_NRF_WDT0 || HAS_HW_NRF_WDT1 388 389config NRFX_WDT0 390 bool "Enable WDT0 instance" 391 depends on HAS_HW_NRF_WDT || HAS_HW_NRF_WDT0 392 select NRFX_WDT 393 394config NRFX_WDT1 395 bool "Enable WDT1 instance" 396 depends on HAS_HW_NRF_WDT1 397 select NRFX_WDT 398 399config NRFX_PRS 400 bool "Enable Peripheral Resource Sharing module" 401 402config NRFX_PRS_BOX_0 403 bool "Enable PRS box 0" 404 select NRFX_PRS 405 406config NRFX_PRS_BOX_1 407 bool "Enable PRS box 1" 408 select NRFX_PRS 409 410config NRFX_PRS_BOX_2 411 bool "Enable PRS box 2" 412 select NRFX_PRS 413 414config NRFX_PRS_BOX_3 415 bool "Enable PRS box 3" 416 select NRFX_PRS 417 418config NRFX_PRS_BOX_4 419 bool "Enable PRS box 4" 420 select NRFX_PRS 421 422endmenu 423