Generally the F4 and the F1 can be thought of as having no common
peripherals. That is exacerbated by the way in which libopencm3 came to be
in that each "type" is in many ways its own little universe of APIs and
peripherals. Some work has been done to create common interfaces but much
work remains to be done. The ADC system in particular has undergone a lot
of changes that Karl Passon put in. If I were starting on a project like
this I would treat it as a port between two completely different systems,
fewer surprises that way, take the F1 code, figure out what it wants to do,
then read the F4 Doxygen API and figure out how to do that on an F4. Then
write new code.
--Chuck
On Tue, Jan 31, 2017 at 4:01 PM, Sid Price <sidpr...@softtools.com> wrote:
> Dave, Chuck, thanks for the pointers. I am, slowly working my way through
> the differences.
>
>
>
> There are a couple of methods for the ADC I can’t find in the libopencm3
> documentation so I assume they have been deprecated. For example, “adc_off,
> adc_reset_calibration, and adc_calibration.” Is the same functionality
> available with other methods?
>
> Sid
>
>
>
> *From:* Chuck McManis [mailto:chuck.mcma...@gmail.com]
> *Sent:* Tuesday, January 31, 2017 2:58 PM
> *To:* Sid Price <sidpr...@softtools.com>
> *Cc:* libopencm3-devel@lists.sourceforge.net
> *Subject:* Re: [libopencm3-devel] F4 GPIO header question
>
>
>
> That is correct Sid, the F1 and the F4 have different GPIO architectures
> so the flags are incompatible.
>
> --Chuck
>
>
>
>
>
> On Tue, Jan 31, 2017 at 12:41 PM, Sid Price <sidpr...@softtools.com>
> 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
> libopencm3-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/libopencm3-devel
>
>
>
------------------------------------------------------------------------------
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
libopencm3-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libopencm3-devel