summaryrefslogtreecommitdiff
path: root/src/drivers
AgeCommit message (Collapse)Author
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.
2021-04-04Reset the step count every day at midnight.Jean-François Milants
2021-04-04Handle return code from BMA driver, and set a flag is the initialization ↵Jean-François Milants
fails. This allows to boot InfiniTime even if the device cannot initialize.
2021-04-04Code cleaning in BMA421 driver. Do the axis inversion in the driver and not ↵Jean-François Milants
in the application. NOTE: Axis remapping from the SDK do not apply to the "raw" X/Y/Z values returned to the sensor. According to the doc, the remapping is only applied to features, but I cannot check if it has any effect on step counting (I'm not sure I use it correctly, doc is not complete enough about this feature).
2021-04-04First integration of the motion sensor (bma 421) : step counting + wake on ↵Jean-François Milants
wrist rotation + app to see the value of the 3 axis in "real time".
2021-03-18FIX screen corruption #213Joaquim
2021-02-12eliminated warnings in Hrs3300Niall Cooling
2021-01-21changed command MemoryDataAccessControl from 036 to 0x36 in St7789 classNiall Cooling
2021-01-17Add License/copyright info in HR related files.Jean-François Milants
2021-01-10First implementation of the HR sensor using 100% foss code (ported from waspos)Jean-François Milants
2020-11-16fix TWI includesokaestne
2020-11-15Include cleanup: driversokaestne
2020-10-27Merge pull request #111 from JF002/fix-twi-hangJF002
Workaround for TWI driver freeze
2020-10-27Handle error code when calling TwiMaster::Read().JF
2020-10-27Disable sleep mode on the SPI NOR Flash when the version is unknown. This is ↵JF
because the current bootloader (which does not exposes its version) cannot initialize the chip when it's in sleep mode. This feature will be re-enabled when the bootloader expses it's version.
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-08-17Fix most of the warnings. Remaining warnings come from nimble source code.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.
2020-06-16Fix #include that were pointing to my own FS instead of relative paths to ↵JF
the SDK.
2020-06-07Fix reset reason (it returns the actual reset reason instead of hard coded ↵JF
'hard reset' value).
2020-06-01Encapsulate DFU Image buffering and writing into spi flash in DfuImage.JF
Add some const in SPI driver.
2020-05-24Add driver for writing into the internal flash.JF
Write the OK flag for mcuboot using this driver.
2020-05-24Fix race condition in SpiMaster.cpp.JF
2020-05-24Merge developJF
2020-05-17Improve SPI driver (use a mutex to prevent race conditions).JF
2020-05-11Fix race conditions on SPI and integrate the SPI NOR Flash driver into ↵JF
DFUService (WIP)
2020-05-07Add SPI NOR Flash driver, WIP.JF
2020-04-19Integration of nimble, work in progress.JF
Advertising is working.
2020-03-22Add new App : Sysinfo. It displays various info about the running system : ↵JF
version, date/time, battery, brightness and resetreason. It contains placeholder for future use (like mac address, uptime,...).
2020-03-11Backup and restore vertical scroll offset when goind to sleep/wakeup to ↵JF
avoid scrambled display on wake-up.
2020-03-08When a full screen refresh is done, apply a vertical scroll during the ↵JF
refresh. This makes the transition from one screen the another one smoother, even if the refresh rate is slow.
2020-03-08Do not copy LittleVgl object in DislayApp, use reference instead.JF
Make Cst816s, SpiMaster and St7789 not copiable and not movable
2020-03-03Merge branch 'littlevgl'JF
# Conflicts: # src/DisplayApp/Screens/Clock.cpp # src/DisplayApp/Screens/Clock.h
2020-03-01Add debugPins module that provides functions to set and clear debug GPIOs.JF
Disable logging once again.
2020-02-23Enable watchdog, and issue a WDT reset when the button is pushed for more ↵JF
than 7s.
2020-02-16Add touch panel port to lvgl.JF
PoC of user interaction with 3 screen (clock, menu and app).
2020-02-15Add support for hardware assisted vertical scrolling.JF
2020-02-12Log Touchpanel data (position + gesture!)JF
2020-02-08First quick'n'dirty integration of LittleVGL. Needs some cleaning.JF
2020-01-26GFX : wait end of transfert using a task notification.JF
Code cleaning in SpiMaster.
2020-01-26Better integration of SPI with DMA and IRQ. Using only 'End' IRQ. Perf could ↵JF
be improved by using 'Started' IRQ to prepare the next buffer while the current one is beeing sent.
2020-01-22[WIP] Max SPI speed reached (119ms for a full refresh. Theo max : 240*240*16 ↵JF
= 115.2ms) using IRQ and DMA. Code needs some cleaning before integration.
2020-01-22[WIP] Use IRQ in SPI driver to improve performancesJF
2020-01-19Implement the SPI driver using DMA.JF
2020-01-18Refactor ctor() and Ini() of SpiMaster.JF
2020-01-18Apply Hardware reset on display during wake-up, as softreset might not be ↵JF
enough to wake the display up.