From 6526c62278c791b0f1af24bbf2a8b0318bc474a0 Mon Sep 17 00:00:00 2001 From: Matthias Prinke <83612361+matthias-bs@users.noreply.github.com> Date: Thu, 5 Sep 2024 20:29:13 +0200 Subject: [PATCH] Fix rp2040 clk init (#105) * Removed clocks_init() * Re-enabled Adafruit Feather RP2040 --- .github/workflows/CI.yml | 2 +- data/node_config.json | 2 +- src/rp2040/pico_rtc_utils.cpp | 3 ++- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 856882c..504071b 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -26,7 +26,7 @@ jobs: - esp32:esp32:m5stack_core2 - esp32:esp32:esp32s3_powerfeather - esp32:esp32:adafruit_feather_esp32s2 - #- rp2040:rp2040:adafruit_feather:dbgport=Serial + - rp2040:rp2040:adafruit_feather:dbgport=Serial runs-on: ubuntu-latest name: ${{ matrix.board }} diff --git a/data/node_config.json b/data/node_config.json index 56928f1..dc25a61 100644 --- a/data/node_config.json +++ b/data/node_config.json @@ -7,7 +7,7 @@ "powerfeather": { "battery_capacity": 2201, "supply_maintain_voltage": 4600, - "max_charge_current": 50, + "max_charge_current": 1000, "temperature_measurement": true, "battery_fuel_gauge": true } diff --git a/src/rp2040/pico_rtc_utils.cpp b/src/rp2040/pico_rtc_utils.cpp index 2f3be2c..e001c75 100644 --- a/src/rp2040/pico_rtc_utils.cpp +++ b/src/rp2040/pico_rtc_utils.cpp @@ -42,6 +42,8 @@ // History: // // 20231006 Created +// 20240905 Removed clocks_init() - not available/not required +// in pico-sdk v2.0.0 // // ToDo: // - @@ -155,7 +157,6 @@ void pico_sleep(unsigned duration) { // back from dormant state rosc_enable(); - clocks_init(); // --8<----- } #endif \ No newline at end of file