[env:rp2040-lora]
custom_meshtastic_hw_model = 30
custom_meshtastic_hw_model_slug = RP2040_LORA
custom_meshtastic_architecture = rp2040
custom_meshtastic_actively_supported = true
custom_meshtastic_support_level = 2
custom_meshtastic_display_name = RP2040 LoRa
custom_meshtastic_tags = Waveshare
custom_meshtastic_requires_dfu = true

extends = rp2040_base
board = rpipico
upload_protocol = picotool
# add our variants files to the include and src paths
build_flags =
  ${rp2040_base.build_flags}
  -D RP2040_LORA
  -I variants/rp2040/rp2040-lora
  -D DEBUG_RP2040_PORT=Serial
  -D HW_SPI1_DEVICE
debug_build_flags = ${rp2040_base.build_flags}, -g
debug_tool = cmsis-dap ; for e.g. Picotool
