aboutsummaryrefslogtreecommitdiffstats
path: root/src/drivers
Commit message (Collapse)AuthorAgeFilesLines
* aod: porch control: 2Hz idle + 75Hz onmark90642024-08-052-14/+38
|
* aod: lower lcd voltagemark90642024-08-052-0/+9
|
* aod: lower voltage going to the displayJohn Crawford2024-08-052-0/+17
|
* aod: lower refresh rate when always onJohn Crawford2024-08-052-0/+44
|
* aod: switch to 8 colors when always onJohn Crawford2024-08-052-0/+24
|
* Batch display command argumentsmark90642024-06-192-35/+32
|
* Remove unnecessary BMA421 readsFelipe Martínez2024-06-021-7/+0
|
* Fix erratum 58 workaroundmark90642024-05-122-26/+43
|
* Include task header (Fixes sim)mark90642024-05-011-0/+1
|
* Move includes backmark90642024-05-012-3/+4
|
* Apply display driver datasheet delaysmark90642024-05-012-9/+45
|
* Use FreeRTOS delay instead of spinning the CPUmark90642024-05-011-7/+6
|
* Rename to pre-transaction hookmark90642024-05-016-10/+10
|
* Avoid storing lambdamark90642024-05-016-29/+14
|
* Refactor lambdasmark90642024-05-012-20/+18
|
* Use functional abstraction for hooksmark90642024-05-016-26/+36
|
* Refactor display WriteToRammark90642024-05-012-5/+4
|
* Remove task to notifymark90642024-05-012-14/+3
|
* SPI transaction hooksmark90642024-05-017-27/+50
|
* README: Fix broken URLsVictor Kareh2024-02-251-1/+1
|
* bma421: Change acceleration values to 'binary milli-G' unitsGraham Jones2024-02-112-2/+21
| | | Co-authored-by: FintasticMan <finlay.neon.kid@gmail.com>
* Remove GFX (and unused GFX dependencies)mark90642024-02-112-23/+0
|
* Application selection at build timeJean-François Milants2023-11-192-7/+7
| | | | | | | A list of "user applications" is built at compile time. It contains all the info needed to create the application at runtime (ptr to a create() function) and to display the app in the application menu. All applications declare a TypeTrait with these information. When a new app must be loaded, DisplayApp first check if this app is a System app (in which case it creates it like it did before). If it's not a System app, it looks for the app in the list of User applications and creates it if it found it. Those changes allow to more easily add new app and to select which app must be built into the firmware. Switch to C++20 (and fix a few issues in SpiMaster.cpp and Watchdog.cpp.
* ST7789 : do not reconfigure the reset pin to default during sleep.Jean-François Milants2023-06-041-1/+0
|
* Power optimization - Improve SPI sleep modeJean-François Milants2023-06-041-1/+1
| | | | Fix formatting issue in St7789.cpp
* Power optimization - Improve SPI sleep modeJean-François Milants2023-06-043-7/+9
| | | | ST7789 driver : replace the constant '26' with a named constant to specify the pin number of the reset pin of the LCD controller.
* Power optimization - Improve SPI sleep modeJean-François Milants2023-06-042-6/+0
| | | | | Calls to Spi::Init() are not needed, pin initialization is already done in ctor(). Remove calls to Spi::Sleep()/Spi::Wakeup() to ensure that SPI CS pins are kept high even in sleep mode.
* Power optimization - Improve SPI sleep modeJean-François Milants2023-06-044-1/+11
| | | | | | Ensure that all pins are set to their default configuration during sleep mode. Disable the workaround for FTPAN58 (SPI freezes when transfering a single byte) at the end of the transfer. This disables the resources needed for the workaround. Those changes reduce the power usage by 430-490µA.
* Power optimization - Enable HRS3300 (heart rate sensor) sleep mode.Jean-François Milants2023-06-041-1/+9
| | | | Put the HRS3300 to sleep mode when InfiniTime is going to sleep. This change reduces the power consumption by 130µA when the heart rate sensor is disabled.
* Refactor, document and fix the Watchdog driver (#1710)JF2023-04-302-55/+173
| | | | | | | * Refactor and document the Watchdog driver to make it more readable. Fix the configuration of the behaviours configuration that was not properly implemented (but it didn't cause any side effect since the correct value was eventually set in NRF_WDT->CONFIG). Fix the wrong interpretation of the reset reasons caused by implicit conversions of int to bool.
* Refactored Ppg for frequency based algorithm. (#1486)Ceimour2023-04-301-10/+14
| | | | | | | New implementation of the heart rate sensor data processing using a frequency based PPG algorithm. The HRS3300 settings are fine-tuned for better signal to noise at 10Hz. The measurement delay is now set to 100ms. Enable and use the ambient light sensor. FFT implementation based on ArduinoFFT (https://github.com/kosme/arduinoFFT, GPLv3.0).
* watchdog: Replace WatchdogView with const WatchdogRiku Isokoski2023-02-251-13/+0
|
* src: Enable unused parameter warningRiku Isokoski2023-01-244-34/+4
| | | | | | Fix warnings. Some clang-formatting was necessary. DebugPins is unused and was removed.
* Format header filesFinlay Davidson2023-01-096-0/+12
| | | | In my PR updating clang-format, I forgot to also format the headers.
* Update clang-{format,tidy} to 14Finlay Davidson2023-01-043-0/+5
| | | | | Also add configuration options only available in 13 and 14. Fixes warning about -fstack-usage in clang-tidy check.
* Add P8B mirrored version definition.izzeho2022-08-151-0/+14
|
* Add basic hardware configuration options for P8Christoph Honal2022-06-271-2/+2
| | | | | This enables the configuration of the LFCLK source, as well as the target hardware board pin configuration.
* System: Refactor pin and interrupt setupChristoph Honal2022-06-051-0/+2
| | | | | | This should ensure better readability of the pin setup procedure, as well as allow the configuration of the hardware button enable pin and the accelerometer interrupt pin via the pin mapping header.
* Fix various typosluz paz2022-06-052-3/+3
| | | | Found via `codespell -q 3 -S ./src/libs -L ans,doubleclick,trough`
* Apply clang-format to all C++ filesFinlay Davidson2022-06-057-47/+39
|
* Replace C-style casts with static_castFinlay Davidson2022-06-052-12/+20
|
* Remove lcd from DisplayAppRiku Isokoski2022-05-081-3/+3
|
* Fix large blacklevel step. Lower 25% of shades are now accessible.Riku Isokoski2022-04-292-6/+8
| | | | | | | | | There is a large step in brightness from level zero to level one. After experimenting with various ST7789 options, I found that decreasing VDV to 0x10 (-0.4V) fixes this issue. The gamma change reduced the average error in brightness, but with the underlying issue fixed, the gamma change has been reverted.
* Tweak gamma on ST7789 and match UI colorsRiku Isokoski2022-04-252-0/+8
| | | | | This change will increase the color accuracy of the PineTime and make UI development with the simulator easier.
* SpiNorFlash: use C++ style struct in C++ only headerReinhold Gschweicher2022-04-241-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | `SpiNorFlash.h` is a C++ header, but the `Identification` struct is created in a C style using `typedef struct`. Clang issues a warining about this discrepancy: ``` In file included from /home/nero/repos/pinetime/InfiniSim/InfiniTime/src/systemtask/SystemTask.cpp:13: /home/nero/repos/pinetime/InfiniSim/sim/drivers/SpiNorFlash.h:16:21: warning: anonymous non-C-compatible type given name for linkage purposes by typedef declaration; add a tag name here [-Wnon-c-typedef-for-linkage] typedef struct __attribute__((packed)) { ^ Identification /home/nero/repos/pinetime/InfiniSim/sim/drivers/SpiNorFlash.h:17:9: note: type is not C-compatible due to this default member initializer uint8_t manufacturer = 0; ^~~~~~~~~~~~~~~~~~~~ /home/nero/repos/pinetime/InfiniSim/sim/drivers/SpiNorFlash.h:20:9: note: type is given name 'Identification' for linkage purposes by this typedef declaration } Identification; ^ 1 warning generated. ``` The easy fix is to use a C++ style struct. Also includes code style fix from Riksu9000 Co-authored-by: Riku Isokoski <riksu9000@gmail.com>
* Merge pull request #531 from hatmajster/heart-rate-gain-settingJF2022-01-261-2/+2
|\ | | | | Heart rate sensor - HRS gain changed to x8
| * Hrs3300: changed default gain to x8hatmajster2022-01-251-2/+2
| |
* | changed ReadHrs and ReadAls to uint32, and did static_cast instead of hidden ↵Yehoshua Pesach Wallach2021-12-132-4/+4
| | | | | | | | cast when using it
* | order ReadHrs, ReadAls bitwise according to bit orderingYehoshua Pesach Wallach2021-12-131-2/+2
|/
* Move up file header include to topReinhold Gschweicher2021-11-152-2/+2
|