[bsp][nxp]修复frdm_mcxn947上 adc设备无法注册及编译不过问题

驱动的Kconfig中添加 BSP_USING_ADC0 宏信息
芯片级的SConscript中添加缺失的 fsl_lpadc.c 和 fsl_spc.c
This commit is contained in:
ShaquilleLiu 2024-03-24 02:43:57 +08:00 committed by GitHub
parent 2cb9d2bc94
commit 0b0baf2e4f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 11 additions and 2 deletions

View File

@ -48,6 +48,7 @@ src += ['MCXN947/drivers/fsl_gpio.c']
src += ['MCXN947/drivers/fsl_i3c.c']
src += ['MCXN947/drivers/fsl_irtc.c']
src += ['MCXN947/drivers/fsl_itrc.c']
src += ['MCXN947/drivers/fsl_lpadc.c']
src += ['MCXN947/drivers/fsl_lpflexcomm.c']
src += ['MCXN947/drivers/fsl_lpi2c.c']
src += ['MCXN947/drivers/fsl_lpi2c_edma.c']
@ -57,6 +58,7 @@ src += ['MCXN947/drivers/fsl_lptmr.c']
src += ['MCXN947/drivers/fsl_lpuart.c']
src += ['MCXN947/drivers/fsl_mrt.c']
src += ['MCXN947/drivers/fsl_reset.c']
src += ['MCXN947/drivers/fsl_spc.c']
src += ['MCXN947/drivers/fsl_vref.c']
src += ['MCXN947/drivers/fsl_usdhc.c']

View File

@ -76,26 +76,33 @@ menu "On-chip Peripheral Drivers"
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