Skip to content

Commit

Permalink
feat(devboard): Add initial support for Arduino Nano RP2040 Connect
Browse files Browse the repository at this point in the history
  • Loading branch information
ZZ-Cat committed Jan 21, 2024
1 parent c377dd8 commit 7181229
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -102,9 +102,14 @@ namespace hal
// Raspberry Pi RP2040 Architecture
#elif defined(ARDUINO_ARCH_RP2040)

// Arduino Nano RP2040 Connect
#if defined(ARDUINO_NANO_RP2040_CONNECT)
device.type.devboard = DEVBOARD_ARDUINO_NANO_RP2040_CONNECT;
#else
// The architecture and chip is known, but the board is not.
#warning "The target board is unknown. Please enable CRSF_DEBUG_ENABLED and CRSF_DEBUG_ENABLE_COMPATIBILITY_TABLE_OUTPUT in CFA_Config.hpp for more information."
device.type.devboard = DEVBOARD_IS_PERMISSIVELY_INCOMPATIBLE_UNKNOWN_BOARD;
#endif

// Arduino SAMD Architecture
#elif defined(ARDUINO_ARCH_SAMD)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,9 @@ namespace hal
// Arduino ESP32 boards.
DEVBOARD_ARDUINO_NANO_ESP32,

// Arduino RP2040 boards.
DEVBOARD_ARDUINO_NANO_RP2040_CONNECT,

// Arduino SAMD21 boards.
DEVBOARD_ARDUINO_MKR1000,
DEVBOARD_ARDUINO_MKRFOX1200,
Expand Down Expand Up @@ -162,6 +165,7 @@ namespace hal
"Adafruit Metro M4 Express",
"Adafruit Feather M4 CAN",
"Arduino Nano ESP32",
"Arduino Nano RP2040 Connect",
"Arduino MKR1000",
"Arduino MKRFOX1200",
"Arduino MKRGSM1400",
Expand Down
4 changes: 4 additions & 0 deletions targets/raspberrypi_unified_rp2040.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[env:nanorp2040connect]
platform = raspberrypi
board = nanorp2040connect

0 comments on commit 7181229

Please sign in to comment.