-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 04/23/2013 01:43 PM, j m wrote:
> thank you for your answer, but this it is if I have an external 
> pull-down resistor, I want the software to activate a pull-down on
> the entrance, I don't have external resistor.

No. These settings activate an internal, weak pull-down that is inside
the stm32f1 IC.

Best regards
Tomaž

> 2013/4/23 Tomaž Šolc <[email protected]
> <mailto:[email protected]>>
> 
> On 04/23/2013 11:31 AM, j m wrote:
>> Hello, I use libopencm3 with f1 stm32 for paparazzi autopilot 
>> (luftboot). I would like to force a pull-down resistor on PIN
>> PA9.
> 
>> I wanted to know how. If possible directly in libopencm3 file 
>> (gpio.h) for example, or in the luftboot.c file where I call 
>> libopencm3 ?
> 
> You should add the following to the part of your code that
> initializes GPIOs:
> 
> gpio_set_mode(GPIOA, GPIO_MODE_INPUT, GPIO_CNF_INPUT_PULL_UPDOWN, 
> GPIO9); gpio_clear(GPIOA, GPIO9);
> 
> Best regards Tomaž
> 
> 
> ------------------------------------------------------------------------------
>
> 
Try New Relic Now & We'll Send You this Cool Shirt
> New Relic is the only SaaS-based application performance
> monitoring service that delivers powerful full stack analytics.
> Optimize and monitor your browser, app, & servers with just a few
> lines of code. Try New Relic and get this awesome Nerd Life shirt! 
> http://p.sf.net/sfu/newrelic_d2d_apr 
> _______________________________________________ libopencm3-devel
> mailing list [email protected] 
> <mailto:[email protected]> 
> https://lists.sourceforge.net/lists/listinfo/libopencm3-devel
> 
> 
> 
> 
> ------------------------------------------------------------------------------
>
> 
Try New Relic Now & We'll Send You this Cool Shirt
> New Relic is the only SaaS-based application performance monitoring
> service that delivers powerful full stack analytics. Optimize and
> monitor your browser, app, & servers with just a few lines of code.
> Try New Relic and get this awesome Nerd Life shirt!
> http://p.sf.net/sfu/newrelic_d2d_apr
> 
> 
> 
> _______________________________________________ libopencm3-devel
> mailing list [email protected] 
> https://lists.sourceforge.net/lists/listinfo/libopencm3-devel

- -- 
Tomaž Šolc, research assistant
SensorLab, Jožef Stefan Institute
http://sensorlab.ijs.si
mail: [email protected]
blog: http://www.tablix.org/~avian/blog
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)

iQEcBAEBAgAGBQJRdnXYAAoJED848b3tOBsIQnYH/RK8I0YQZqHbcUNxo9e2Olij
nSjgdLNCu0HlW8mRh8/l5+hL6WslaR1t62LVyA4PwGrElDKMRPtFXD931GCCQ7Dw
ZIt1d3om3s2U5KXz3lVdZLa1GowfUKknLRMU6ipRWAumnzp6Qt8q2BhE/YOhda7G
Gzl/j0WYbpg1ZuJ5uMdwvhdQiKzjq0IPzVJfBSn14SRJ0L2rI2bgaUQzWUK2R9Ds
HzQYQ2TaxwkX3D1b8fnnYbXgn4pGvE83kdVADyUzp4HpY8oAZjT7X7fSkjr7c+J9
cGjrmmsSRwl0VFJIxsEErPND4yVH/3W7Inkyzb3m33g0KwWUbt+hVnGZamyI82M=
=JA14
-----END PGP SIGNATURE-----

------------------------------------------------------------------------------
Try New Relic Now & We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service 
that delivers powerful full stack analytics. Optimize and monitor your
browser, app, & servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_apr
_______________________________________________
libopencm3-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/libopencm3-devel

Reply via email to