As I remember, f0/f3 have a "new" i2c peripheral, so the
"i2c_common_all" filename is now outdated, it applied to f1, l1,
f2, f4, which was "all" at the time.

No-one to my memory has done much work at overhauling and
unifying the i2c layers for whole families, and it wouldn't
suprise me therefore if f0 i2c isn't as helpful as one might
hope.

Some of the code _may_ work, but you'd need to be digging in the
ref manuals to check, and testing on multiple hardware to do this
refactoring work.

Sorry about how long it took to reply to you, I kept putting it
off, then it just slipped beneahth my list of "mails I need to
reply to too"

Sincerely,
Karl P

Johan <[email protected]> wrote:
> I am trying to use I2C on STM32F0 with libopencm3.
> 
> I have found libopencm3/include/libopencm3/stm32/f0/i2c.h which
> does the register definitions. But it does not do #include
> <libopencm3/stm32/common/i2c_common_all.h> where it seems like
> alll functions like i2c_reset and so on exist.
> 
> Is there a reason for this, are the functions not supported on
> f0? In the f3 version the i2c.h defines function prototypes
> directly without using i2c_common_all.h.
> 
> Best regards
> Johan
> ------------------------------------------------------------------------------
> Mobile security can be enabling, not merely restricting.
> Employees who bring their own devices (BYOD) to work are irked
> by the imposition of MDM restrictions. Mobile Device Manager
> Plus allows you to control only the apps on BYO-devices by
> containerizing them, leaving personal data untouched!
> https://ad.doubleclick.net/ddm/clk/304595813;131938128;j_______________________________________________
> libopencm3-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/libopencm3-devel

Attachment: signature.asc
Description: OpenPGP Digital Signature

------------------------------------------------------------------------------
Mobile security can be enabling, not merely restricting. Employees who
bring their own devices (BYOD) to work are irked by the imposition of MDM
restrictions. Mobile Device Manager Plus allows you to control only the
apps on BYO-devices by containerizing them, leaving personal data untouched!
https://ad.doubleclick.net/ddm/clk/304595813;131938128;j
_______________________________________________
libopencm3-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/libopencm3-devel

Reply via email to