[bsp][lpc55sxx]update drv_adc
This commit is contained in:
parent
ed4b4ca9e6
commit
31ede54ac7
|
@ -24,12 +24,12 @@
|
|||
#include "fsl_lpadc.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;
|
||||
}
|
||||
|
||||
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_command_config_t mLpadcCommandConfigStruct;
|
||||
|
|
|
@ -281,6 +281,7 @@ menu "Onboard Peripheral Drivers"
|
|||
select BSP_USING_GPIO
|
||||
select BSP_USING_ADC
|
||||
select BSP_USING_ADC0
|
||||
select BSP_USING_ADC0_CH0
|
||||
select BSP_USING_PWM
|
||||
select BSP_USING_CTIMER1_MAT0
|
||||
select BSP_USING_CTIMER2_MAT0
|
||||
|
|
Loading…
Reference in New Issue