Skip to content

error: 'LL_ADC_PATH_INTERNAL_VBAT' undeclared #2

@bartagergely

Description

@bartagergely

If

#define MICROPY_HW_ENABLE_ADC (1)

is set, then I got the following error during compiling:

In file included from machine_adc.c:29:
adc.h: In function 'adc_deselect_vbat':
adc.h:50:29: error: 'LL_ADC_PATH_INTERNAL_VBAT' undeclared (first use in this function)
   50 |         adc_common->CCR &= ~LL_ADC_PATH_INTERNAL_VBAT;
      |                             ^~~~~~~~~~~~~~~~~~~~~~~~~
adc.h:50:29: note: each undeclared identifier is reported only once for each function it appears in 
CC machine_timer.c
make: *** [build-WeAct_F411CE-MicroPython/machine_adc.o] Error 1
make: *** Waiting for unfinished jobs....

Any ideas how can I fix it?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions