Commit Graph

20 Commits

Author SHA1 Message Date
Xiang Xiao
41d88f06e7 Run codespell -w with the latest dictonary again 2020-02-23 07:10:14 -06:00
Xiang Xiao
857158451b Unify the void cast usage
1.Remove void cast for function because many place ignore the returned value witout cast
2.Replace void cast for variable with UNUSED macro

Change-Id: Ie644129a563244a6397036789c4c3ea83c4e9b09
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-01-02 23:21:01 +08:00
David Alessio
839efa6669 Merged in david_alessio/apps/bugfix/i2ctool-dev-clobbers-slave-config (pull request #198)
Bugfix/i2ctool dev clobbers slave config

* friendlier I2C "knock-knock" uses only read request

    While many I2C slave devices have multiple indexed registers, some have
    only one register and it's not indexed.  For example, the I2C bus switch
    TCA9548A has only a Control Register, attempting to index to "Reg[0]"
    alters its contents to 0x00 disabling all subordinate buses.  This patch
    fixes that problem by simply trying to read something/anything from the
    slave.  This also helps coax out slaves with register files that start
    from a higher index, i.e. the AT24CS0x, FLASH chips with a UUID that
    appears as a 2nd I2C slave at (address+8), report their serial number at
    Reg[80]-Reg[8F] and will NAK a read of Reg[0].

* modify get/set to prevent write of reg index if not specifed

Approved-by: Gregory Nutt <gnutt@nuttx.org>
2019-08-20 20:29:21 +00:00
From: dongjiuzhu
2d4df65040 apps/system/i2c/i2c_get.c: Fix i2c_msg freq initialization problem. Typo prevent I2C frequency initialization in a struct i2c_msg. 2018-11-07 11:35:13 -06:00
Gregory Nutt
a1e5bf6bf3 apps/system/i2c: Adapt to rename I2C_M_RESTART->i2C_M_START. I2C_M_NOSTOP should be in flags of first message in every write-read and write-write mesage sequence. 2018-08-03 08:47:10 -06:00
Juha Niskanen
0bcd50d7a1 apps/: Make more globals static to avoid name clashes 2017-05-19 07:13:12 -06:00
Gregory Nutt
bb9b4c8063 Low level drive access functions should not generate output; it interferes with higher level formatting 2016-02-02 14:42:16 -06:00
Gregory Nutt
7c4f9eb8e9 I2CTOOL: Now uses the I2C driver instead of direct calls into the OS 2016-02-02 10:27:50 -06:00
Gregory Nutt
5ab3722d5d I2C: Remove the setfrequency method from the interface 2016-02-01 16:32:48 -06:00
Gregory Nutt
4e4dbda41e I2C: Add frequency to i2c_msg_s structure 2016-02-01 14:14:48 -06:00
Gregory Nutt
ae0a55de53 I2C: Remove setaddress method 2016-02-01 12:16:56 -06:00
Gregory Nutt
f0eb017434 Rename i2c_dev_s to i2c_master_s. 2016-01-30 08:37:28 -06:00
Gregory Nutt
c4395122f9 Move include/nuttx/i2c.h to include/nuttx/i2c/i2c_master.h 2016-01-30 08:00:59 -06:00
Gregory Nutt
a65262c899 P-code BINFMT: Add logic to pass information from the binfmt logic to the P-code interpreter. This includes some extension to the binfmt interfaces. 2014-05-08 16:58:10 -06:00
Gregory Nutt
f37d1c2a70 Update the displayed I2C on each get iteraction (not the same starting address). From Ryan VanSickle 2014-05-08 11:26:13 -06:00
patacongo
f8e08440f7 Email address change in apps/
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5143 42af7a65-404d-4744-a932-0658087f49c3
2012-09-13 16:58:49 +00:00
patacongo
9233cd668e Add I2C trace capability; Fix another STM32 I2C/FSMC bug; add verify command to the I2C tool
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3961 42af7a65-404d-4744-a932-0658087f49c3
2011-09-18 17:52:00 +00:00
patacongo
74ae84aa22 First cut at I2C tool
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3927 42af7a65-404d-4744-a932-0658087f49c3
2011-08-30 15:07:21 +00:00
patacongo
e1c666abbc More I2C tool logic
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3924 42af7a65-404d-4744-a932-0658087f49c3
2011-08-29 23:06:54 +00:00
patacongo
1008ae7196 Add framework for I2C tools
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3923 42af7a65-404d-4744-a932-0658087f49c3
2011-08-29 20:12:03 +00:00