aboutsummaryrefslogtreecommitdiffstats
path: root/src/drivers
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch 'twimaster_rework' of https://github.com/Riksu9000/InfiniTime ↵Jean-François Milants2021-08-282-69/+42
|\ | | | | | | | | | | | | into Riksu9000-twimaster_rework # Conflicts: # src/systemtask/SystemTask.cpp
| * Use highest frequency and move mutex creation to InitRiku Isokoski2021-08-181-1/+4
| |
| * Simplify parameters and cleanupRiku Isokoski2021-08-162-45/+17
| |
| * Don't reconfigure pinsRiku Isokoski2021-08-121-6/+1
| |
| * Explicitly disable pullupRiku Isokoski2021-08-101-0/+2
| |
| * Only enable the bus when neededRiku Isokoski2021-08-101-2/+4
| |
| * Optimize twiMasterRiku Isokoski2021-08-092-22/+21
| |
* | Rework TouchHandler into not a taskRiku Isokoski2021-08-102-10/+5
| |
* | UpdateRiku Isokoski2021-07-181-1/+1
| |
* | Fix touch wakeup and code cleanupRiku Isokoski2021-07-162-5/+10
| |
* | Fix most issuesRiku Isokoski2021-07-162-31/+21
| |
* | Quick fixRiku Isokoski2021-07-151-1/+1
| |
* | New touch handler, with issuesRiku Isokoski2021-07-151-1/+11
|/
* Removed an illogical comparison from SystemInfo and St7789 driver (#449)Avamander2021-06-221-1/+2
| | | * Removed an illogical comparison
* Add support for BMA425 acceleration sensor. (#440)JF0022021-06-194-21/+556
| | | * Add support for BMA425 acceleration sensor.
* Fix fallthrough on case statement (#403)Jonathan Vander Mey2021-06-121-0/+1
|
* Move most of the code from the constructor of the objects statically ↵Jean-François Milants2021-06-124-5/+10
| | | | 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.
* Minor improvements: use std::make_unique when creating unique_ptr, check the ↵Jean-François Milants2021-06-101-4/+4
| | | | code is running from an IRQ before calling xQueueSendFromISR or xQueueSend)
* Initialize SystemTask, DisplayApp and HeartRateTask as global static ↵Jean-François Milants2021-06-062-3/+0
| | | | variable instead of variables on the heap. We don't need them on the heap as we know their size at build time, it'll reduce memory fragmentation and it'll make memory analysis easier.
* Changed access modified indentationAvamander2021-04-2411-23/+23
|
* Reformatted all the files according to clang-format styleAvamander2021-04-2423-521/+554
|
* 0.16.0 TWI problems fixJoaquim2021-04-105-50/+174
| | | | | | | | 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
* Merge branch 'develop' into motion-sensorJean-François Milants2021-04-091-44/+24
|\ | | | | | | | | | | | | | | | | | | | | | | # Conflicts: # src/CMakeLists.txt # src/displayapp/Apps.h # src/displayapp/DisplayApp.cpp # src/displayapp/DisplayApp.h # src/displayapp/lv_pinetime_theme.c # src/displayapp/screens/ApplicationList.cpp # src/drivers/TwiMaster.cpp # src/systemtask/SystemTask.h
| * Fix wake up lock in twiJoaquim2021-04-051-4/+2
| | | | | | | | optimize battery code
| * array in SettingWakeUp wrong sizeJoaquim José Almeida Pereira2021-04-051-1/+1
| |
| * double tap wakeup error fixJoaquim2021-04-041-2/+5
| | | | | | | | battery nonblocking read
| * Big UI and navigation RewriteJoaquim2021-04-041-44/+24
| | | | | | | | | | | | | | | | | | | | | | new navigation add some color to the apps redesign menus new settings menu new quick settings code clean up size reduction by converting navigation images to font and more...
* | TwiMaster is now based on the NRFX TWI driver, as it handles more edge cases ↵Jean-François Milants2021-04-084-201/+57
| | | | | | | | | | | | 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.
* | Reset the step count every day at midnight.Jean-François Milants2021-04-042-1/+7
| |
* | Handle return code from BMA driver, and set a flag is the initialization ↵Jean-François Milants2021-04-042-11/+17
| | | | | | | | fails. This allows to boot InfiniTime even if the device cannot initialize.
* | Code cleaning in BMA421 driver. Do the axis inversion in the driver and not ↵Jean-François Milants2021-04-042-55/+28
| | | | | | | | | | | | 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).
* | First integration of the motion sensor (bma 421) : step counting + wake on ↵Jean-François Milants2021-04-047-0/+12082
|/ | | | wrist rotation + app to see the value of the 3 axis in "real time".
* FIX screen corruption #213Joaquim2021-03-182-12/+3
|
* eliminated warnings in Hrs3300Niall Cooling2021-02-121-4/+5
|
* changed command MemoryDataAccessControl from 036 to 0x36 in St7789 classNiall Cooling2021-01-211-1/+1
|
* Add License/copyright info in HR related files.Jean-François Milants2021-01-171-1/+9
|
* First implementation of the HR sensor using 100% foss code (ported from waspos)Jean-François Milants2021-01-102-0/+155
|
* fix TWI includesokaestne2020-11-161-0/+2
|
* Include cleanup: driversokaestne2020-11-1517-34/+22
|
* Merge pull request #111 from JF002/fix-twi-hangJF0022020-10-274-23/+106
|\ | | | | Workaround for TWI driver freeze
| * Handle error code when calling TwiMaster::Read().JF2020-10-272-8/+10
| |
| * Workaround for bug https://github.com/JF002/Pinetime/issues/79 until a ↵JF2020-10-232-15/+96
| | | | | | | | | | | | | | | | 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.
* | Disable sleep mode on the SPI NOR Flash when the version is unknown. This is ↵JF2020-10-271-3/+3
|/ | | | | | 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.
* Fix race conditions during sleep/wakeup, where SPI/TWI could be disabled ↵JF2020-09-131-1/+3
| | | | while transaction were in progress (https://github.com/JF002/Pinetime/issues/60).
* Re-implement sleep/wakeup for touch panel, display, NOR Flash, SPI and TWI.JF2020-08-228-17/+62
|
* Fix most of the warnings. Remaining warnings come from nimble source code.JF2020-08-172-6/+3
|
* correct include headerfrederic lesur LESUR Frederic2020-07-211-2/+2
|
* correct bad including of sdk filesfrederic lesur LESUR Frederic2020-07-211-2/+2
| | | | (cherry picked from commit 8510e4436f6a2ac7b53fe8cb5010acb840c743b8)
* New implementation of the I²C/TWI driver.JF2020-07-194-47/+213
| | | | Fix reset timing and add dummy reading in Cst816S to fix init error on some devices.
* Fix #include that were pointing to my own FS instead of relative paths to ↵JF2020-06-161-1/+1
| | | | the SDK.