Me No Dev
55289a45af
Update IDF to 9274814 ( #767 )
...
* Update IDF to 9274814
* Fix error in i2c and Arduino
2017-10-24 00:21:00 +02:00
Jason K
11565343e6
Merge branch 'master' into master
2017-10-23 14:40:33 -04:00
chuck todd
a695187de8
Correct 10bit Device address handling.
...
The existing code did not follow protocol with 10bit addressed devices. Per _Philps/NXP Semiconductors UM10204 I2C-bus specification and user manual Rev. 6 4April2014_ pg.15 3.1.11 10-bit addressing:
~The first seven bits of the first byte are the combination of 1111 0xx of which the last two bits (xx) are the two Most-Significant Bits (MSB) of the 10-bit address; the eighth bit of the first byte is the R/!W! bit the determines the direction of the message~
2017-10-21 13:14:14 -06:00
Jason K
1270f40066
Add initial handling for long I2C reads.
2017-10-21 08:26:46 -04:00
chuck todd
7eff707ba6
Fix Early return when Address NAK is received ( #750 )
...
The i2cWrite() function was returning to the app before the i2c transaction had completed. This caused the next Wire() call to return a I2C_ERROR_BUSY.
2017-10-21 08:40:53 +02:00
me-no-dev
28be506ce3
uncomment I2C debug so it can be used
2017-09-29 21:24:06 +08:00
Jason K
0cd62852da
I2c reset functionality ( #678 )
...
* Addition of a i2cReset method and timeout handling for the case where the i2c hardware FSM (state machine) gets stuck in a busy state.
* Use newly added i2cReset function within the wire library.
2017-09-29 21:17:13 +08:00
me-no-dev
befebb7242
Change DPORT access macros
2017-05-15 20:53:09 +03:00
me-no-dev
90322ae7eb
Make I2C work reliably with interrupts
...
Thanks @marcmerlin and @MartyMacGyver
2017-03-26 00:27:27 +02:00
me-no-dev
8b96b1a5f4
update IDF libs and esptool.py
...
adds autoreset after firmware upload
2017-01-05 13:54:40 +02:00
me-no-dev
668c3811b8
Wire: wait while bus is busy if ack failed
2016-12-15 01:41:54 +02:00
me-no-dev
b86fb30b1d
cleanup read commands
2016-12-14 23:31:28 +02:00
me-no-dev
04e0902ca6
Wire: if we are reading only one byte, do not send empty read command
2016-12-14 18:43:32 +02:00
me-no-dev
917a4fd6f0
allow setting internal pull resistors for any mode and enable them for I2C
2016-12-14 13:11:10 +02:00
me-no-dev
c19fc061b0
Hopefully fix I2C/Wire
...
Tested with (all at the same time):
- MPU9250
- HTU21
- TMP102
- BMP180
- AM2320
- SSD1306
2016-12-14 02:41:22 +02:00
me-no-dev
8e7d00b9a8
i2c revert to old fifo write
2016-12-09 18:07:59 +02:00
Me No Dev
d1025b6b5d
Update esp32-hal-i2c.c
...
wait for data to be latched and increase timeout in attempt to fix clock stretch issues
Connected issues:
http://esp32.com/viewtopic.php?f=19&t=632&p=2832#p2801
https://github.com/espressif/arduino-esp32/issues/81
https://github.com/espressif/arduino-esp32/issues/53
https://github.com/espressif/arduino-esp32/issues/11
2016-12-09 12:51:36 +02:00
Me No Dev
be2a26b3ff
set SCL to OUTPUT_OPEN_DRAIN
...
fixes: https://github.com/espressif/arduino-esp32/issues/69
2016-11-25 11:25:50 +02:00
me-no-dev
c30012ab78
Add Kconfig for IDF and option to disable HAL mutexes
...
IDF Options:
- Autostart Arduino (implements app_main)
- Disable HAL locks
- Set HAL debug level
- Auto-connect STA if configured (else will connect after WiFi.begin())
2016-11-18 15:07:25 +02:00
me-no-dev
7abb15ca62
reset i2c cmd buffer before read/write
...
related to [issue
53](https://github.com/espressif/arduino-esp32/issues/53 )
2016-11-17 00:46:56 +02:00
me-no-dev
9116cc4311
remove unnecessary locks
2016-10-14 03:24:20 +03:00
me-no-dev
f9f895797a
return proper errors
2016-10-11 15:11:51 +03:00
me-no-dev
9ec4389889
implement thread-safe i2c
2016-10-11 14:20:02 +03:00
me-no-dev
3ecb32c4ba
Prevent I2C Bus locks and wrong data being sent on retry
2016-10-10 14:54:36 +03:00
me-no-dev
45f5449fbf
prevent some devices from locking the SCL line
2016-10-10 14:10:43 +03:00
me-no-dev
f3af437774
I2C SDA should properly register the ACK bit from some slaves
2016-10-10 13:53:55 +03:00
me-no-dev
cc3c55bbb1
fix i2c hal
2016-10-08 17:32:11 +03:00
me-no-dev
5f3a205955
initial import
2016-10-06 07:09:44 -06:00