mirror of
https://github.com/meshtastic/firmware.git
synced 2025-07-31 02:45:41 +00:00
RP2040/RP2350: Migrate variants to new structure
This commit is contained in:
parent
855514b4f3
commit
411e952181
@ -2,12 +2,12 @@
|
||||
extends = rp2040_base
|
||||
board = rpipico
|
||||
upload_protocol = picotool
|
||||
|
||||
build_flags = ${rp2040_base.build_flags}
|
||||
build_flags =
|
||||
${rp2040_base.build_flags}
|
||||
-D RPI_PICO
|
||||
-Ivariants/ec_catsniffer
|
||||
-I variants/rp2040/ec_catsniffer
|
||||
-D DEBUG_RP2040_PORT=Serial
|
||||
# -DHW_SPI1_DEVICE
|
||||
; -D HW_SPI1_DEVICE
|
||||
lib_deps =
|
||||
${rp2040_base.lib_deps}
|
||||
debug_build_flags = ${rp2040_base.build_flags}, -g
|
@ -2,11 +2,11 @@
|
||||
extends = rp2040_base
|
||||
board = adafruit_feather
|
||||
upload_protocol = picotool
|
||||
|
||||
# add our variants files to the include and src paths
|
||||
build_flags = ${rp2040_base.build_flags}
|
||||
build_flags =
|
||||
${rp2040_base.build_flags}
|
||||
-D RP2040_FEATHER_RFM95
|
||||
-Ivariants/feather_rp2040_rfm95
|
||||
-I variants/rp2040/feather_rp2040_rfm95
|
||||
-D DEBUG_RP2040_PORT=Serial
|
||||
-D HW_SPI1_DEVICE
|
||||
lib_deps =
|
@ -3,11 +3,11 @@ extends = rp2040_base
|
||||
board = rpipico
|
||||
board_level = extra
|
||||
upload_protocol = picotool
|
||||
|
||||
# add our variants files to the include and src paths
|
||||
build_flags = ${rp2040_base.build_flags}
|
||||
build_flags =
|
||||
${rp2040_base.build_flags}
|
||||
-D PRIVATE_HW
|
||||
-Ivariants/nibble_rp2040
|
||||
-I variants/rp2040/nibble_rp2040
|
||||
-D DEBUG_RP2040_PORT=Serial
|
||||
-D HW_SPI1_DEVICE
|
||||
lib_deps =
|
@ -2,14 +2,14 @@
|
||||
extends = rp2040_base
|
||||
board = rakwireless_rak11300
|
||||
upload_protocol = picotool
|
||||
|
||||
# add our variants files to the include and src paths
|
||||
build_flags = ${rp2040_base.build_flags}
|
||||
build_flags =
|
||||
${rp2040_base.build_flags}
|
||||
-D RAK11310
|
||||
-Ivariants/rak11310
|
||||
-I variants/rp2040/rak11310
|
||||
-D DEBUG_RP2040_PORT=Serial
|
||||
-D RV3028_RTC=0x52
|
||||
build_src_filter = ${rp2040_base.build_src_filter} +<../variants/rak11310> +<mesh/eth/> +<mesh/api/> +<mqtt/>
|
||||
build_src_filter = ${rp2040_base.build_src_filter} +<../variants/rp2040/rak11310> +<mesh/eth/> +<mesh/api/> +<mqtt/>
|
||||
lib_deps =
|
||||
${rp2040_base.lib_deps}
|
||||
${networking_base.lib_deps}
|
@ -2,11 +2,11 @@
|
||||
extends = rp2040_base
|
||||
board = rpipico
|
||||
upload_protocol = picotool
|
||||
|
||||
# add our variants files to the include and src paths
|
||||
build_flags = ${rp2040_base.build_flags}
|
||||
build_flags =
|
||||
${rp2040_base.build_flags}
|
||||
-D RP2040_LORA
|
||||
-Ivariants/rp2040-lora
|
||||
-I variants/rp2040/rp2040-lora
|
||||
-D DEBUG_RP2040_PORT=Serial
|
||||
-D HW_SPI1_DEVICE
|
||||
lib_deps =
|
@ -12,11 +12,11 @@ debug_init_cmds =
|
||||
$LOAD_CMDS
|
||||
monitor init
|
||||
monitor reset halt
|
||||
|
||||
# add our variants files to the include and src paths
|
||||
build_flags = ${rp2040_base.build_flags}
|
||||
build_flags =
|
||||
${rp2040_base.build_flags}
|
||||
-DRPI_PICO
|
||||
-Ivariants/rpipico-slowclock
|
||||
-Ivariants/rp2040/rpipico-slowclock
|
||||
-DDEBUG_RP2040_PORT=Serial2
|
||||
-DHW_SPI1_DEVICE
|
||||
-g
|
@ -4,9 +4,10 @@ board = rpipico
|
||||
upload_protocol = picotool
|
||||
|
||||
# add our variants files to the include and src paths
|
||||
build_flags = ${rp2040_base.build_flags}
|
||||
build_flags =
|
||||
${rp2040_base.build_flags}
|
||||
-D RPI_PICO
|
||||
-Ivariants/rpipico
|
||||
-I variants/rp2040/rpipico
|
||||
-D DEBUG_RP2040_PORT=Serial
|
||||
-D HW_SPI1_DEVICE
|
||||
lib_deps =
|
@ -2,14 +2,14 @@
|
||||
extends = rp2040_base
|
||||
board = rpipicow
|
||||
upload_protocol = picotool
|
||||
|
||||
# add our variants files to the include and src paths
|
||||
build_flags = ${rp2040_base.build_flags}
|
||||
build_flags =
|
||||
${rp2040_base.build_flags}
|
||||
-D RPI_PICO
|
||||
-Ivariants/rpipicow
|
||||
-I variants/rp2040/rpipicow
|
||||
-D HW_SPI1_DEVICE
|
||||
-fexceptions # for exception handling in MQTT
|
||||
-D HAS_UDP_MULTICAST=1
|
||||
-fexceptions # for exception handling in MQTT
|
||||
build_src_filter = ${rp2040_base.build_src_filter} +<mesh/wifi/>
|
||||
lib_deps =
|
||||
${rp2040_base.lib_deps}
|
@ -7,7 +7,7 @@ upload_protocol = picotool
|
||||
# add our variants files to the include and src paths
|
||||
build_flags = ${rp2040_base.build_flags}
|
||||
-D SENSELORA_RP2040
|
||||
-Ivariants/senselora_rp2040
|
||||
-I variants/rp2040/senselora_rp2040
|
||||
-D DEBUG_RP2040_PORT=Serial
|
||||
lib_deps =
|
||||
${rp2040_base.lib_deps}
|
@ -6,6 +6,7 @@
|
||||
#define BUTTON_NEED_PULLUP
|
||||
|
||||
#define LED_PIN PIN_LED
|
||||
#define ledOff(pin) pinMode(pin, INPUT)
|
||||
|
||||
#undef BATTERY_PIN
|
||||
#define BATTERY_SENSE_RESOLUTION_BITS ADC_RESOLUTION
|
@ -4,9 +4,10 @@ board = rpipico2
|
||||
upload_protocol = picotool
|
||||
|
||||
# add our variants files to the include and src paths
|
||||
build_flags = ${rp2350_base.build_flags}
|
||||
build_flags =
|
||||
${rp2350_base.build_flags}
|
||||
-D RPI_PICO2
|
||||
-Ivariants/rpipico2
|
||||
-I variants/rp2350/rpipico2
|
||||
-D DEBUG_RP2040_PORT=Serial
|
||||
-D HW_SPI1_DEVICE
|
||||
lib_deps =
|
@ -13,9 +13,10 @@ debug_init_cmds =
|
||||
monitor reset halt
|
||||
|
||||
# add our variants files to the include and src paths
|
||||
build_flags = ${rp2350_base.build_flags}
|
||||
build_flags =
|
||||
${rp2350_base.build_flags}
|
||||
-DRPI_PICO2
|
||||
-Ivariants/rpipico2w
|
||||
-Ivariants/rp2350/rpipico2w
|
||||
# -DDEBUG_RP2040_PORT=Serial
|
||||
-DHW_SPI1_DEVICE
|
||||
-DARDUINO_RASPBERRY_PI_PICO_2W
|
Loading…
Reference in New Issue
Block a user