Re: STM32F4 I2C driver


Jorge Ramirez <jorge.ramirez-ortiz@...>
 

On 06/12/2017 10:01 AM, Yannis Damigos wrote:
Hi Erwan,

I actually my plan is to finally create a generic i2c_ll_stm32 driver
but I started small with the stm32f4 finally because it is my first
attempt to code a driver and I only have stm32f1 and stm32f4
development boards.
Running just a diff on the i2c_ll_stm32fxxx header files, I could say
that there are two groups of stm32 soc families for the I2C LL API.
The first group contains the families F1, F4 and the second the
families F3, F7, L4.
So my i2c driver should work also for the F1 family with few
modifications, which I planned to test after the testing of i2c read
operation.

I will contact Jorge to coordinate our efforts on the st i2c ll driver.
hi Yannis,

This is great timing.

I have a working stm32f4x driver based on HAL (did a little bit of rework on one of Neil's Armstrong prototypes but nothing major just, enough to get it working).
I was only able to test the protocol on a logic analyzer though since my Grove-LCD seems dead.
And yes I also noticed two very different type of controllers.

I believe that now you have done the LL, adding some abstractions and adapting i2c_stm32lx.c shouldn't be too bad/
are you in IRC? my id is ldts . if you have some time later in the morning (I am in CEST time zone) we could discuss.

TIA
jorge

Join devel@lists.zephyrproject.org to automatically receive all group messages.