[bsp][lpc55sxx]update drv_adc

This commit is contained in:
rose_man 2023-05-29 16:25:58 +08:00 committed by Man, Jianting (Meco)
parent ed4b4ca9e6
commit 31ede54ac7
2 changed files with 3 additions and 2 deletions

View File

@ -24,12 +24,12 @@
#include "fsl_lpadc.h" #include "fsl_lpadc.h"
#include <rtdevice.h> #include <rtdevice.h>
static rt_err_t lpc_lpadc_enabled(struct rt_adc_device *device, rt_uint32_t channel, rt_bool_t enabled) static rt_err_t lpc_lpadc_enabled(struct rt_adc_device *device, rt_int8_t channel, rt_bool_t enabled)
{ {
return RT_EOK; return RT_EOK;
} }
static rt_err_t lpc_lpadc_convert(struct rt_adc_device *device, rt_uint32_t channel, rt_uint32_t *value) static rt_err_t lpc_lpadc_convert(struct rt_adc_device *device, rt_int8_t channel, rt_uint32_t *value)
{ {
lpadc_conv_trigger_config_t mLpadcTriggerConfigStruct; lpadc_conv_trigger_config_t mLpadcTriggerConfigStruct;
lpadc_conv_command_config_t mLpadcCommandConfigStruct; lpadc_conv_command_config_t mLpadcCommandConfigStruct;

View File

@ -281,6 +281,7 @@ menu "Onboard Peripheral Drivers"
select BSP_USING_GPIO select BSP_USING_GPIO
select BSP_USING_ADC select BSP_USING_ADC
select BSP_USING_ADC0 select BSP_USING_ADC0
select BSP_USING_ADC0_CH0
select BSP_USING_PWM select BSP_USING_PWM
select BSP_USING_CTIMER1_MAT0 select BSP_USING_CTIMER1_MAT0
select BSP_USING_CTIMER2_MAT0 select BSP_USING_CTIMER2_MAT0