Skip to content

Commit b9d801f

Browse files
committed
STM32: L0: adc struct member does not exist anymore
1 parent ea33f8b commit b9d801f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

targets/TARGET_STM/TARGET_STM32L0/analogin_api.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ int adc_inited = 0;
4141
void analogin_init(analogin_t *obj, PinName pin)
4242
{
4343
uint32_t function = (uint32_t)NC;
44-
obj->adc = (ADCName)NC;
44+
obj->handle.Instance = (ADC_TypeDef *)NC;
4545

4646
// ADC Internal Channels "pins" (Temperature, Vref, Vbat, ...)
4747
// are described in PinNames.h and PeripheralPins.c

0 commit comments

Comments
 (0)