Federico Pellegrin
1779abafb5
periph/i2c: make sure i2c registers is big-endian on all archs
2019-05-29 05:15:23 +02:00
MrKevinWeiss
e14e6ead92
drivers/periph_common/i2c: Add not supported codes
...
This commit returns accurate error codes and prevents improper i2c states.
If since i2c_read_reg and i2c_write_reg are full frames the I2C_NOSTOP/START commands should not be supported
2018-12-10 09:49:18 +01:00
dylad
ef8ed2620c
periph_common/i2c: introduce new ret codes scheme
2018-07-25 12:01:34 +02:00
c2eb316039
drivers/i2c: improve common i2c driver
...
- fix reag/write regs function (NOSTART/NOSTOP flags missing)
- use ret variable name instead of err (cosmetic)
- split PERIPH_I2C_NEED_READ/WRITE_REGS to simplify cpu side implementation
2018-07-25 12:01:34 +02:00
d8e0745c06
drivers/periph_i2c: fix build issue with return code type
2018-07-25 12:01:34 +02:00
dylad
39cb0e2bdb
periph_common/i2c: fix ret code handling
...
Signed-off-by: dylad <dylan.laduranty@mesotic.com>
2018-07-25 12:01:34 +02:00
6f25886d77
drivers/periph/i2c: fixes issues in API
...
- non matching doxygen input parameter to i2c_write_reg
- non/matching missing function parameter
- invalid return type to i2c_release
2018-07-25 12:01:34 +02:00
dylad
7fccd21dad
periph/i2c: fix unspotted typos
...
Signed-off-by: dylad <dylan.laduranty@mesotic.com>
2018-07-25 12:01:34 +02:00
dylad
4a24ce8212
drivers/i2c: add default fallback wrappers
...
Signed-off-by: dylad <dylan.laduranty@mesotic.com>
2018-07-25 12:01:34 +02:00
dylad
496175b361
periph/i2c: add default fallback wrappers I2C functions
...
Signed-off-by: dylad <dylan.laduranty@mesotic.com>
2018-07-25 12:01:34 +02:00