Gregory Nutt
2a751068e6
Without lowsyslog() *llerr() is not useful. Eliminate and replace with *err().
2016-06-20 12:44:38 -06:00
Gregory Nutt
43eb04bb8f
Without lowsyslog() *llinfo() is not useful. Eliminate and replace with *info().
2016-06-20 11:59:15 -06:00
Gregory Nutt
0bc40ee8e1
STM32: In big change off err() to info(), several debug statements lost their ll property.
2016-06-18 08:32:07 -06:00
Gregory Nutt
801d661423
Change *err() to either info() or err(ERROR:..), depending upon if an error has occurred.
2016-06-16 15:10:57 -06:00
Gregory Nutt
0c8c7fecf0
Add _ to the beginning of all debug macros to avoid name collisions
2016-06-16 12:33:32 -06:00
Gregory Nutt
5c89b18af8
Centralize definitions associated with CONFIG_DEBUG_I2C
2016-06-15 16:30:12 -06:00
Gregory Nutt
a1469a3e95
Add CONFIG_DEBUG_ERROR. Change names of *dbg() * *err()
2016-06-11 15:50:49 -06:00
Gregory Nutt
e99301d7c2
Rename *lldbg to *llerr
2016-06-11 14:55:27 -06:00
Gregory Nutt
1cdc746726
Rename CONFIG_DEBUG to CONFIG_DEBUG_FEATURES
2016-06-11 14:14:08 -06:00
Gregory Nutt
fc3540cffe
Replace all occurrences of vdbg with vinfo
2016-06-11 11:59:51 -06:00
Gregory Nutt
3a74a438d9
Rename CONFIG_DEBUG_VERBOSE to CONFIG_DEBUG_INFO
2016-06-11 11:50:18 -06:00
Gregory Nutt
4afc4964ed
SAM34 TWI: Missing semicolon
2016-05-25 13:05:03 -06:00
David Sidrane
fca329945b
This patch ensures that the TWIHS (i2c) hw get's its clock set when the sequence of
...
sam_i2cbus_initialize
sam_i2cbus_uninitialize
sam_i2cbus_initialize
Or twi_reset is called.
I found this a while back in the stm32 family, so there may be more arch-es with this sort of bug. I suppose any driver that has the notion of "do not set the freq if it is already set" could be suspect.
2016-05-23 13:38:34 -06:00
Gregory Nutt
4a8ac55c9d
All SAM TWI: g_twiops should be both static and const
2016-03-09 18:11:55 -06:00
Gregory Nutt
70e502adb0
Replace irqsave() with enter_critical_section(); replace irqrestore() with leave_critical_section()
2016-02-13 19:11:09 -06:00
Gregory Nutt
1e4f2ae2c1
Rename up_i2c initialize and uninitialize functions using the correct MCU-specific naming
2016-02-02 12:08:23 -06:00
Gregory Nutt
d2571985ef
I2C: up_i2creset should not be a global function; Now it is an I2C interface method
2016-02-02 11:21:45 -06:00
Gregory Nutt
c9a7d48cb2
I2C: Fix some compile time issues found with tools/testbuild.sh
2016-02-01 18:02:39 -06:00
Gregory Nutt
0693e76be8
I2C: Remove the setfrequency method from the interface
2016-02-01 16:30:29 -06:00
Gregory Nutt
a64f36a63e
I2C: Remove setaddress method
2016-02-01 12:14:20 -06:00
Gregory Nutt
ce988c7ed3
Remove the read and write methods from the I2C interface
2016-02-01 09:22:10 -06:00
Gregory Nutt
2171438c61
I2C_TRANSFER support is no longer optional
2016-01-31 14:00:53 -06:00
Gregory Nutt
531d73af41
Remove I2C slave methods from I2C master interface; rename i2c_dev_s to i2c_master_s.
2016-01-30 08:35:46 -06:00
Gregory Nutt
9f9b85a932
Move include/nuttx/i2c.h to include/nuttx/i2c/i2c_master.h
2016-01-30 07:59:44 -06:00
Gregory Nutt
c0fb4e34a7
I2C: Eliminate the I2C_WRITEREAD method
2016-01-26 10:23:09 -06:00
Gregory Nutt
b29ec04459
Trivial update to C comments
2016-01-01 12:17:40 -06:00
Gregory Nutt
3fdd914203
Costmetic fixes to C coding style
2015-10-05 17:13:53 -06:00
Gregory Nutt
7ced84c5f0
Standardize the width of all comment boxes in C files
2015-10-03 07:25:03 -06:00
Gregory Nutt
975d912b40
Cosmetic: Move # of pre-processior command to column 1
2015-09-05 09:07:37 -06:00
Alan Carvalho de Assis
2a10db2dbf
SAMA5D TWI: Fix typo in driver initialization logic.
2015-06-17 06:13:46 -06:00
Gregory Nutt
26cf5a35a9
SAMV71-XULT: Enable I2C and the I2C tool in the NSH configuration
2015-03-12 12:27:06 -06:00
Gregory Nutt
2bc16b2ba5
wdog.h does not contain any application interface, only internal OS interface. Further, it is non-standard. Move wdog.h from include/ to include/nuttx. For the same reason, move the description of the watchdog timer interfaces from the Users Guide to the Porting Guide.
2014-08-21 11:16:55 -06:00
Gregory Nutt
39183d37b8
Change all time conversions. Yech. New timer units in microseconds breaks all existing logic that used milliseconds in the conversions. Something likely got broken doing this, probably because I confused a MSEC2TICK conversion with a TICK2MSEC conversion. Also, the tickless OS no appears fully functional and passes the OS test on the simulator with no errors
2014-08-07 18:00:38 -06:00
Gregory Nutt
6563ae07c2
Don't have to set SDA high initially in I2C reset because that is done by the pin configuration
2014-07-09 17:17:32 -06:00
Gregory Nutt
0d4255257d
SAMA5 I2C Reset: More changes... still does not work right
2014-07-09 15:09:06 -06:00
Gregory Nutt
c1ca11331d
SAMA5 TWI: Some restructured needed by up_i2creset. Also timeout needs to vary with the size of the transfer and if debug is on or not
2014-07-09 13:39:10 -06:00
Gregory Nutt
ee351dc695
Use sam_pio_forceclk() so that we can read the current state of an open-drain output in the TWI reset logic.
2014-07-09 11:31:21 -06:00
Gregory Nutt
6c4f57b0dc
SAMA5 TWI: Add support for up_i2creset
2014-07-09 09:51:28 -06:00
Gregory Nutt
ae95f4e4d2
SAMA5D3/4 I2C: Test for read or write operation was reversed. How could this have worked before?
2014-07-07 09:54:43 -06:00
Gregory Nutt
56629f7fde
maXTouch: Fix test of I2C_TRANSFER return value
2014-07-06 08:51:38 -06:00
Gregory Nutt
596dbc20ef
SAMA5D4-EK: NSH should run at 528MHz
2014-07-02 15:31:52 -06:00
Gregory Nutt
30fc821bc8
SAMA5D4-EK: NSH configuration now has TWI0 enabled and supports the I2C tool
2014-07-02 13:51:57 -06:00
Gregory Nutt
23557d31bb
SAMA5: Add TWI3 support
2014-06-08 08:25:39 -06:00
Gregory Nutt
044f7209f6
SAMA5 TWI: If running from SDRAM, BOARD_MCK_FREQUENCY is not a constant and cannot be used in pre-processor conditionals
2014-04-16 12:09:55 -06:00
Gregory Nutt
27a7636440
SAMA5 TWI: Number of bytes transferred not be incremented on the first byte. From David Sidrane
2014-04-10 18:19:03 -06:00
Gregory Nutt
f8d608a054
Fix a typo that was cloned to several SAMA5 and MTD files
2013-12-21 09:45:27 -06:00
Gregory Nutt
a35d366dea
More OV2640 initialization logic
2013-12-10 09:10:39 -06:00
Gregory Nutt
1d40c068fb
SAMA5 TWI: Misc improvements during debug (still not getting interupts)
2013-09-12 12:25:31 -06:00
Gregory Nutt
3bb6a8b164
SAMA5 TWI: Cleanup compilation errors that occur when I2C debug is enabled
2013-09-12 09:46:20 -06:00
Gregory Nutt
950ea5830a
SAMA5 TWI: Add support for I2C readwrite and transfer methods
2013-09-11 17:52:23 -06:00