olsndot/tests/i2c-master
Karl Palsson d30f38ed3c i2c-master: start extracting out i2c code
Working on f4 with an external sht21 i2c sensor.
Still lots of f4 specifics yet.  But, progress.
2017-02-21 23:32:50 +00:00
..
hw.h i2c-master: start progressing to extracting common i2c code 2017-02-21 23:11:43 +00:00
i2c-master.c i2c-master: start extracting out i2c code 2017-02-21 23:32:50 +00:00
i2c-master.h i2c-master: start extracting out i2c code 2017-02-21 23:32:50 +00:00
main-stm32f4-disco.c i2c-master: start extracting out i2c code 2017-02-21 23:32:50 +00:00
Makefile.stm32f4-disco i2c-master: start progressing to extracting common i2c code 2017-02-21 23:11:43 +00:00
README.md i2c: Initial stub import of old f4 code 2017-02-21 21:37:36 +00:00

i2c master mode tests.

While many of the disco boards have some form of i2c device onboard, which would, on the face of it, make testing easy, it's a different device on each board, and there are boards without it.

Instead, use a known I2C peripheral on all boards, and require/expect a known fixed i2c slave device. (Eventually, this will be a soft controllable i2c slave in the auto test setup ;)

Debug is via SWO wherever possible, PA2 (tx only) on less capable cores

Pinouts:

board SCLK SDA f4-disco PB8 PB9 i2c1