adc 驱动启用

Signed-off-by: a1012112796 <1012112796@qq.com>
This commit is contained in:
2023-01-11 10:33:31 +08:00
parent e639054d89
commit ba71d92b5b
6 changed files with 201 additions and 125 deletions

View File

@@ -297,7 +297,7 @@ static const struct rt_adc_ops stm_adc_ops =
.get_vref = stm32_adc_get_vref,
};
static int stm32_adc_init(void)
int stm32_adc_init(void)
{
int result = RT_EOK;
/* save adc name */
@@ -349,6 +349,6 @@ static int stm32_adc_init(void)
return result;
}
INIT_BOARD_EXPORT(stm32_adc_init);
// INIT_BOARD_EXPORT(stm32_adc_init);
#endif /* BSP_USING_ADC */