4
0
mirror of https://github.com/RT-Thread/rt-thread.git synced 2025-01-25 05:27:20 +08:00
xhackerustc e0e9eb8b15
[nxp/mcxn] add SPI6 support (#8704)
* [bsp][nxp] add missing drv_spi.h

Otherwise when building spi users such as u8g2, gcc will complain can't
find the drv_spi.h.

* [bsp][nxp] enable spi6

* [bsp][nxp] add spi sample code which uses spi6 to loopback

Connect spi6's MISO <--> MSIO, I.E P3_20 and P3_22 with Dupont Line
The sample usage and output would be:

msh >spi_sample
spi rbuf : 0 1 2 3 4 5 6 7 8 9 a b c d e f 10 11 12 13 14 15 16 17 18 19 1a 1b 1c 1d 1e 1f

spi loopback mode test over!
2024-04-04 20:08:39 -04:00

194 lines
4.8 KiB
Plaintext

menu "Hardware Drivers Config"
config SOC_MCXN947
bool
select SOC_MCXN947_SERIES
select RT_USING_COMPONENTS_INIT
select RT_USING_USER_MAIN
default y
menu "On-chip Peripheral Drivers"
config BSP_USING_DMA
bool "Enable DMA"
select RT_USING_DMA
default n
config BSP_USING_PIN
bool "Enable GPIO"
select RT_USING_PIN
default y
menuconfig BSP_USING_UART
bool "Enable UART"
default y
select RT_USING_SERIAL
if BSP_USING_UART
config BSP_USING_UART4
bool "Enable UART4"
default y
config BSP_USING_UART5
bool "Enable UART5"
default n
config BSP_USING_UART2
bool "Enable UART2"
default n
endif
menuconfig BSP_USING_I2C
config BSP_USING_I2C
bool "Enable I2C"
select RT_USING_I2C
default y
if BSP_USING_I2C
config BSP_USING_I2C0
bool "Enable Flexcomm0 I2C"
default y
config BSP_USING_I2C1
bool "Enable Flexcomm1 I2C"
default y
endif
menuconfig BSP_USING_SPI
config BSP_USING_SPI
bool "Enable SPI"
select RT_USING_SPI
default y
if BSP_USING_SPI
config BSP_USING_SPI3
bool "Enable Flexcomm3 as SPI"
default n
config BSP_USING_SPI6
bool "Enable Flexcomm6 as SPI"
default n
if BSP_USING_SPI6
config BSP_USING_SPI6_SAMPLE
bool "Enable SPI6 BUS Sample"
default n
endif
config BSP_USING_SPI7
bool "Enable Flexcomm7 as SPI"
default n
config BSP_USING_SPI8
bool "Enable Flexcomm8 as High Speed SPI"
default y
endif
menuconfig BSP_USING_ADC
config BSP_USING_ADC
bool "Enable ADC Channel"
select RT_USING_ADC
default y
if BSP_USING_ADC
config BSP_USING_ADC0
bool
default n
config BSP_USING_ADC0_CH0
bool "Enable ADC0 Channel0"
select BSP_USING_ADC0
default y
config BSP_USING_ADC0_CH1
bool "Enable ADC0 Channel1"
select BSP_USING_ADC0
default n
config BSP_USING_ADC0_CH8
bool "Enable ADC0 Channel8"
select BSP_USING_ADC0
default n
config BSP_USING_ADC0_CH13
bool "Enable ADC0 Channel13"
select BSP_USING_ADC0
default n
config BSP_USING_ADC0_CH26
bool "Enable ADC0 Channel26"
select BSP_USING_ADC0
default n
endif
menuconfig BSP_USING_DAC
config BSP_USING_DAC
bool "Enable DAC Channel"
select RT_USING_DAC
default y
if BSP_USING_DAC
config BSP_USING_DAC0
bool "Enable DAC0 Channel"
default n
config BSP_USING_DAC1
bool "Enable DAC1 Channel"
default n
config BSP_USING_DAC2
bool "Enable DAC2 Channel"
default n
endif
config BSP_USING_SDIO
bool "Enable SDIO SD Card Interface"
select RT_USING_SDIO
select RT_USING_DFS
select RT_USING_DFS_ELMFAT
default y
config BSP_USING_ETH
bool "Enable Ethernet"
default n
select RT_USING_LWIP
select RT_USING_NETDEV
select RT_USING_SAL
config BSP_USING_RTC
bool "Enable RTC"
select RT_USING_RTC
default y
config BSP_USING_WDT
bool "Enable WatchDog"
select RT_USING_WDT
default n
menuconfig BSP_USING_HWTIMER
config BSP_USING_HWTIMER
bool "Enable Timer"
select RT_USING_HWTIMER
default y
menuconfig BSP_USING_PWM
config BSP_USING_PWM
bool "Enable PWM"
select RT_USING_PWM
default y
if BSP_USING_PWM
config BSP_USING_LEDG_PWM
bool "Enable on-board green LED as PWM output (pwm0, channel 3)"
default y
endif
endmenu
menu "Board extended module Drivers"
endmenu
endmenu