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?

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

Reply via email to