Hi Sid,
GPIO_MODE_ANALOG is defined in
include/libopencm3/stm32/common/gpio_common_f234.h which is eventually
#included when you include include/libopencm3/stm32/gpio.h
I see ADC_SMPR_SMP_28CYC defined in include/libopencm3/stm32/f4/adc.h
Looking at the datasheet I don't see a 28.5 cycles mode, but I do see 28
cycles.
On Tue, Jan 31, 2017 at 12:41 PM, Sid Price <[email protected]> wrote:
> The project I am porting to STM32F411RE makes use of an ADC, when looking
> at the f4/gpio.h file I don’t see “GPIO_CNF_INPUT_ANALOG” defined, in fact
> the F4 file has many defines not included. It is defined in the F1/gpio.h
> file. Does this mean the gpio.h header needs updating for the F4? How can I
> resolve this?
>
>
>
> Also, a similar situation exists for some ADC definitions. The define
> “ADC_SMPR_SMP_28DOT5CYC” is defined in f1/adc.h but not in f4/adc.h.
>
>
>
> Is it OK to use the F1 includes?
>
>
>
> Any input would be appreciated,
>
> Sid
>
>
>
> ------------------------------------------------------------
> ------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, SlashDot.org! http://sdm.link/slashdot
> _______________________________________________
> libopencm3-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/libopencm3-devel
>
>
--
Dave Hylands
Shuswap, BC, Canada
http://www.davehylands.com
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
libopencm3-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/libopencm3-devel