aboutsummaryrefslogtreecommitdiffstats
path: root/libmaple/i2c.h
Commit message (Collapse)AuthorAgeFilesLines
* i2c: Renaming, type changes, exposing i2c_init(), documentation.Marti Bolivar2011-05-191-47/+85
| | | | | | | | | | | | | | | | | Changes to struct i2c_dev members: - uint8 clk_line's type is changing and is being renamed, is now rcc_clk_id clk_id - uint8 ev_nvic_line's type is changing to nvic_irq_num - uint8 er_nvic_line's type is changing to nvic_irq_num Previous names were badly typed and inconsistent with the rest of libmaple. Exposing i2c_init(), also for consistency. Adding/editing many Doxygen comments, for documentation and general housekeeping.
* i2c.h: fixing type of i2c_dev state member.Marti Bolivar2011-05-191-1/+1
| | | | | It's an i2c_state; calling it one. Previous uint8 type was broken since I2C_STATE_ERROR is negative.
* i2c: Various fixes, extensions, documentation.Perry Hung2011-05-121-20/+64
| | | | | | | | | | | | -Fix clock calculations for fast-mode support -Add I2C_REMAP option to remap i2c1 (untested) -Add I2C_BUS_RESET option to reset bus on initialization -Add optional timeout parameter -Doxygen comments -Various cleanup 10-bit slave addressing is untested until I have a device that speaks such.
* I2C fixup.Marti Bolivar2011-04-251-0/+1
| | | | Added i2c_init() for consistency with rest of libmaple.
* i2c cleanups.Marti Bolivar2011-04-141-63/+63
| | | | Whitespace and column width changes only.
* Reverting some "volatile" -> "__io" changes.Marti Bolivar2011-04-121-1/+1
| | | | See https://github.com/leaflabs/libmaple/commit/c57d760676b97a0fc9cb51db99c8400bae2cb3b7#commitcomment-338822
* Adding i2c2 and i2c fast modeAnton Eltchaninov2011-04-121-2/+3
| | | | Signed-off-by: Anton Eltchaninov <anton.eltchaninov@gmail.com>
* Changing usages of "volatile" to "__io".Marti Bolivar2011-04-121-1/+1
|
* Merge branch 'i2c-wip' into refactorPerry Hung2011-03-211-1/+1
| | | | | | | Conflicts: examples/test-fsmc.cpp libmaple/rules.mk wirish/boards.h
* Add rudimentary error handling for nack conditionPerry Hung2011-03-141-11/+32
|
* Fix merge error and compile error.Perry Hung2011-03-111-25/+91
|
* checkpointPerry Hung2011-02-261-0/+172