summaryrefslogtreecommitdiff
path: root/src/drivers
AgeCommit message (Collapse)AuthorFilesLines
2021-08-29Merge branch 'develop' into pinmaphubmartin4-102/+74
2021-08-28Merge branch 'twimaster_rework' of https://github.com/Riksu9000/InfiniTime ↵Jean-François Milants2-70/+43
into Riksu9000-twimaster_rework # Conflicts: # src/systemtask/SystemTask.cpp
2021-08-18Use highest frequency and move mutex creation to InitRiku Isokoski1-1/+4
2021-08-16Simplify parameters and cleanupRiku Isokoski2-45/+17
2021-08-12Don't reconfigure pinsRiku Isokoski1-6/+1
2021-08-10Rework TouchHandler into not a taskRiku Isokoski2-10/+5
2021-08-10Explicitly disable pullupRiku Isokoski1-0/+2
2021-08-10Only enable the bus when neededRiku Isokoski1-2/+4
2021-08-09Optimize twiMasterRiku Isokoski2-22/+21
2021-08-04Rename backlight level pinshubmartin1-3/+3
2021-08-03Cleanup, set Pinetime as defaulthubmartin1-41/+17
2021-08-03PinMap with namespace and constexprhubmartin3-9/+44
2021-08-02DRAFT: Put gpio pins to separate filehubmartin2-1/+27
2021-07-18UpdateRiku Isokoski1-1/+1
2021-07-16Fix touch wakeup and code cleanupRiku Isokoski2-5/+10
2021-07-16Fix most issuesRiku Isokoski2-31/+21
2021-07-15Quick fixRiku Isokoski1-1/+1
2021-07-15New touch handler, with issuesRiku Isokoski1-1/+11
2021-06-22Removed an illogical comparison from SystemInfo and St7789 driver (#449)Avamander1-1/+2
* Removed an illogical comparison
2021-06-19Add support for BMA425 acceleration sensor. (#440)JF0024-21/+556
* Add support for BMA425 acceleration sensor.
2021-06-12Fix fallthrough on case statement (#403)Jonathan Vander Mey1-0/+1
2021-06-12Move most of the code from the constructor of the objects statically ↵Jean-François Milants4-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.
2021-06-10Minor improvements: use std::make_unique when creating unique_ptr, check the ↵Jean-François Milants1-4/+4
code is running from an IRQ before calling xQueueSendFromISR or xQueueSend)
2021-06-06Initialize SystemTask, DisplayApp and HeartRateTask as global static ↵Jean-François Milants2-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.
2021-04-24Changed access modified indentationAvamander11-23/+23
2021-04-24Reformatted all the files according to clang-format styleAvamander23-540/+573
2021-04-100.16.0 TWI problems fixJoaquim5-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
2021-04-09Merge branch 'develop' into motion-sensorJean-François Milants1-50/+30
# 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
2021-04-08TwiMaster is now based on the NRFX TWI driver, as it handles more edge cases ↵Jean-François Milants4-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.
2021-04-05Fix wake up lock in twiJoaquim1-4/+2
optimize battery code
2021-04-05array in SettingWakeUp wrong sizeJoaquim José Almeida Pereira1-1/+1
2021-04-04Reset the step count every day at midnight.Jean-François Milants2-1/+7
2021-04-04Handle return code from BMA driver, and set a flag is the initialization ↵Jean-François Milants2-11/+17
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 Milants2-57/+30
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 Milants7-0/+12082
wrist rotation + app to see the value of the 3 axis in "real time".
2021-04-04double tap wakeup error fixJoaquim1-2/+5
battery nonblocking read
2021-04-04Big UI and navigation RewriteJoaquim1-50/+30
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...
2021-03-18FIX screen corruption #213Joaquim2-12/+3
2021-02-12eliminated warnings in Hrs3300Niall Cooling1-4/+5
2021-01-21changed command MemoryDataAccessControl from 036 to 0x36 in St7789 classNiall Cooling1-1/+1
2021-01-17Add License/copyright info in HR related files.Jean-François Milants1-1/+9
2021-01-10First implementation of the HR sensor using 100% foss code (ported from waspos)Jean-François Milants2-0/+155
2020-11-16fix TWI includesokaestne1-0/+2
2020-11-15Include cleanup: driversokaestne17-34/+22
2020-10-27Merge pull request #111 from JF002/fix-twi-hangJF0024-23/+106
Workaround for TWI driver freeze
2020-10-27Handle error code when calling TwiMaster::Read().JF2-8/+10
2020-10-27Disable sleep mode on the SPI NOR Flash when the version is unknown. This is ↵JF1-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.
2020-10-23Workaround for bug https://github.com/JF002/Pinetime/issues/79 until a ↵JF2-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.
2020-09-13Fix race conditions during sleep/wakeup, where SPI/TWI could be disabled ↵JF1-1/+3
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.JF8-17/+62