summaryrefslogtreecommitdiff
path: root/src/drivers/TwiMaster.cpp
AgeCommit message (Collapse)Author
2021-11-15Update includes to to be relative to src directoryReinhold Gschweicher
Don't use relative imports like `../foo.h` as those depend on the relative position of both files. Rather than that use imports relative to the `src` directory, which explicitly is part of the include directories.
2021-08-18Use highest frequency and move mutex creation to InitRiku Isokoski
2021-08-16Simplify parameters and cleanupRiku Isokoski
2021-08-12Don't reconfigure pinsRiku Isokoski
2021-08-10Explicitly disable pullupRiku Isokoski
2021-08-10Only enable the bus when neededRiku Isokoski
2021-08-09Optimize twiMasterRiku Isokoski
2021-06-12Move most of the code from the constructor of the objects statically ↵Jean-François Milants
initialized in main() into Start()/Init() functions to avoid Static Initialization Order Fiasco (https://en.cppreference.com/w/cpp/language/siof). See https://github.com/JF002/InfiniTime/pull/415#issuecomment-859004238.
2021-04-24Reformatted all the files according to clang-format styleAvamander
2021-04-100.16.0 TWI problems fixJoaquim
More memory for freertos heap and timer stack Fix warning in watchface Fix number of bytes read by cst816 Debug app to show freertos tasks Increased the number of bytes of the twi write buffer
2021-04-08TwiMaster is now based on the NRFX TWI driver, as it handles more edge cases ↵Jean-François Milants
and workarounds for errors on the bus. Reset the TWI bus after the soft-reset of the motion sensor to workaround issues on the TWI bus.
2020-11-15Include cleanup: driversokaestne
2020-10-23Workaround for bug https://github.com/JF002/Pinetime/issues/79 until a ↵JF
better fix is found. When the driver is stuck in an infinite loop for more than ~2.5ms, the TWI device is re-init and the transaction is retried. Read() and Write() return an error code.
2020-09-13Fix race conditions during sleep/wakeup, where SPI/TWI could be disabled ↵JF
while transaction were in progress (https://github.com/JF002/Pinetime/issues/60).
2020-08-22Re-implement sleep/wakeup for touch panel, display, NOR Flash, SPI and TWI.JF
2020-07-20correct include headerfrederic lesur LESUR Frederic
2020-07-20correct bad including of sdk filesfrederic lesur LESUR Frederic
(cherry picked from commit 8510e4436f6a2ac7b53fe8cb5010acb840c743b8)
2020-07-19New implementation of the I²C/TWI driver.JF
Fix reset timing and add dummy reading in Cst816S to fix init error on some devices.