Skip to content

Commit

Permalink
Fix rp2040 clk init (#105)
Browse files Browse the repository at this point in the history
* Removed clocks_init()

* Re-enabled Adafruit Feather RP2040
  • Loading branch information
matthias-bs committed Sep 5, 2024
1 parent e6fe10f commit 6526c62
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
2 changes: 1 addition & 1 deletion data/node_config.json
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down
3 changes: 2 additions & 1 deletion src/rp2040/pico_rtc_utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@
// History:
//
// 20231006 Created
// 20240905 Removed clocks_init() - not available/not required
// in pico-sdk v2.0.0
//
// ToDo:
// -
Expand Down Expand Up @@ -155,7 +157,6 @@ void pico_sleep(unsigned duration) {

// back from dormant state
rosc_enable();
clocks_init();
// --8<-----
}
#endif

0 comments on commit 6526c62

Please sign in to comment.