"Sid Price" <sidpr...@softtools.com> wrote: > One more thing, I notice “adc_calibrate” is in adc_common_v2.c, > my build of libopencm3 is using adc_common_v1.c. Should I be > using v2?
Your "build" of libopencm3? adc v1 and adc v2 are for different versions of the ADC peripheral. You "choose" one or the other by choosing whether to use stm32f1, f4, f3, l1, l4, f0. Some of them have peripheral v1, some have periph v2. I would caution that particularly with some of the common shared files, the doxygen generated is sometimes both missing sections, and including inappropriate sections. Reading only the doxygen is quite likely to sometimes add to confusion. I'd love some work there. I have done, and will continue to do, work to try and standardize the apis for as many functions as possible, but yes, there are inconsistencies. If you're particularly looking at ADC for instance, try having a look at https://github.com/karlp/libopencm3-tests/tree/master/tests/adc-power particularly compare the f1 and f4 files there. Sincerely, Karl P > > Sid > > > > From: Sid Price [mailto:sidpr...@softtools.com] > Sent: Tuesday, January 31, 2017 5:02 PM > To: 'Chuck McManis' <chuck.mcma...@gmail.com>; 'Dave Hylands' > <dhyla...@gmail.com> Cc: > 'libopencm3-devel@lists.sourceforge.net' > <libopencm3-devel@lists.sourceforge.net> Subject: RE: > [libopencm3-devel] F4 GPIO header question > > > > 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 > <mailto:sidpr...@softtools.com> > Cc: > libopencm3-devel@lists.sourceforge.net > <mailto: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 <mailto: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 > <mailto: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
signature.html
Description: OpenPGP Digital Signature
------------------------------------------------------------------------------ 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