From e0a1855429a5edf6bac30031f3f7fc35f1553ec3 Mon Sep 17 00:00:00 2001 From: geeksville Date: Fri, 24 Apr 2020 08:38:00 -0700 Subject: [PATCH] Add PMU driver --- docs/software/nrf52-TODO.md | 9 ++++++--- platformio.ini | 3 ++- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/docs/software/nrf52-TODO.md b/docs/software/nrf52-TODO.md index 7437030df..3128fc099 100644 --- a/docs/software/nrf52-TODO.md +++ b/docs/software/nrf52-TODO.md @@ -8,9 +8,10 @@ Minimum items needed to make sure hardware is good. - DONE get old radio driver working on NRF52 - DONE basic test of BLE - DONE get a debug 'serial' console working via the ICE passthrough feater -- add PMU driver -- add new radio driver - possibly start with https://os.mbed.com/teams/Semtech/code/SX126xLib/ -- added UC1701 LCD driver. Still need to hook it to a subclass of (poorly named) OLEDDisplay, and override display() to stream bytes out to the screen. +- Use the PMU driver +- add a NEMA based GPS driver to test GPS +- Use new radio driver - possibly start with https://os.mbed.com/teams/Semtech/code/SX126xLib/ +- Use UC1701 LCD driver. Still need to create at startup and probe on SPI - test the LEDs - test the buttons - make a new boarddef with a variant.h file. Fix pins in that file. In particular (at least): @@ -24,6 +25,7 @@ Minimum items needed to make sure hardware is good. Needed to be fully functional at least at the same level of the ESP32 boards. At this point users would probably want them. +- use new LCD driver from screen.cpp. Still need to hook it to a subclass of (poorly named) OLEDDisplay, and override display() to stream bytes out to the screen. - get full BLE api working - we need to enable the external xtal for the sx1262 (on dio3) - figure out which regulator mode the sx1262 is operating in @@ -45,6 +47,7 @@ Needed to be fully functional at least at the same level of the ESP32 boards. At Nice ideas worth considering... +- make Lorro_BQ25703A read/write operations atomic, current version could let other threads sneak in (once we start using threads) - turn on DFU assistance in the appload using the nordic DFU helper lib call - make the segger logbuffer larger, move it to RAM that is preserved across reboots and support reading it out at runtime (to allow full log messages to be included in crash reports). Share this code with ESP32 - convert hardfaults/panics/asserts/wd exceptions into fault codes sent to phone diff --git a/platformio.ini b/platformio.ini index 5dee77968..f6af1af4b 100644 --- a/platformio.ini +++ b/platformio.ini @@ -74,7 +74,6 @@ lib_deps = https://github.com/meshtastic/arduino-fsm.git https://github.com/meshtastic/SparkFun_Ublox_Arduino_Library.git https://github.com/meshtastic/SX126x-Arduino.git - UC1701 ; Common settings for ESP targes, mixin with extends = esp32_base [esp32_base] @@ -137,6 +136,8 @@ lib_ignore = BluetoothOTA lib_deps = ${env.lib_deps} + UC1701 + https://github.com/meshtastic/BQ25703A.git monitor_port = /dev/ttyACM1 ; Set initial breakpoint (defaults to main)