diff --git a/.github/workflows/main_matrix.yml b/.github/workflows/main_matrix.yml index 6c0f1a154c..691b400405 100644 --- a/.github/workflows/main_matrix.yml +++ b/.github/workflows/main_matrix.yml @@ -111,7 +111,7 @@ jobs: - board: rak4631_eink - board: monteops_hw1 - board: t-echo - - board: canary + - board: canaryone - board: pca10059_diy_eink - board: feather_diy - board: nano-g2-ultra diff --git a/bin/check-all.sh b/bin/check-all.sh index 47e52b401c..cdd1ceb9d2 100755 --- a/bin/check-all.sh +++ b/bin/check-all.sh @@ -13,7 +13,7 @@ if [[ $# -gt 0 ]]; then # can override which environment by passing arg BOARDS="$@" else - BOARDS="tlora-v2 tlora-v1 tlora_v1_3 tlora-v2-1-1.6 tbeam heltec-v1 heltec-v2.0 heltec-v2.1 tbeam0.7 meshtastic-diy-v1 rak4631 rak4631_eink rak11200 t-echo canary pca10059_diy_eink" + BOARDS="tlora-v2 tlora-v1 tlora_v1_3 tlora-v2-1-1.6 tbeam heltec-v1 heltec-v2.0 heltec-v2.1 tbeam0.7 meshtastic-diy-v1 rak4631 rak4631_eink rak11200 t-echo canaryone pca10059_diy_eink" fi echo "BOARDS:${BOARDS}" diff --git a/bin/check-dependencies.sh b/bin/check-dependencies.sh index 08d0366b28..52bc760890 100644 --- a/bin/check-dependencies.sh +++ b/bin/check-dependencies.sh @@ -8,7 +8,7 @@ if [[ $# -gt 0 ]]; then # can override which environment by passing arg BOARDS="$@" else - BOARDS="rak4631 rak4631_eink t-echo canary pca10059_diy_eink pico rak11200 tlora-v2 tlora-v1 tlora_v1_3 tlora-v2-1-1.6 tbeam heltec-v1 heltec-v2.0 heltec-v2.1 tbeam0.7 meshtastic-diy-v1 nano-g1 station-g1 m5stack-core m5stack-coreink tbeam-s3-core" + BOARDS="rak4631 rak4631_eink t-echo canaryone pca10059_diy_eink pico rak11200 tlora-v2 tlora-v1 tlora_v1_3 tlora-v2-1-1.6 tbeam heltec-v1 heltec-v2.0 heltec-v2.1 tbeam0.7 meshtastic-diy-v1 nano-g1 station-g1 m5stack-core m5stack-coreink tbeam-s3-core" fi echo "BOARDS:${BOARDS}" diff --git a/boards/canary.json b/boards/canaryone.json similarity index 95% rename from boards/canary.json rename to boards/canaryone.json index 917e0bd8b9..d8f966a475 100644 --- a/boards/canary.json +++ b/boards/canaryone.json @@ -8,9 +8,9 @@ "extra_flags": "-DARDUINO_NRF52840_CANARY -DNRF52840_XXAA", "f_cpu": "64000000L", "hwids": [["0x239A", "0x4405"]], - "usb_product": "Canary", + "usb_product": "CanaryOne", "mcu": "nrf52840", - "variant": "canary", + "variant": "canaryone", "variants_dir": "variants", "bsp": { "name": "adafruit" diff --git a/platformio.ini b/platformio.ini index 74536c19c4..cfc516d71c 100644 --- a/platformio.ini +++ b/platformio.ini @@ -18,7 +18,7 @@ default_envs = tbeam ;default_envs = tlora-t3s3-v1 ;default_envs = lora-relay-v1 # nrf board ;default_envs = t-echo -;default_envs = canary +;default_envs = canaryone ;default_envs = nrf52840dk-geeksville ;default_envs = native # lora-relay-v1 # nrf52840dk-geeksville # linux # or if you'd like to change the default to something like lora-relay-v1 put that here ;default_envs = nano-g1 diff --git a/protobufs b/protobufs index 092f7c0430..12c84bddb9 160000 --- a/protobufs +++ b/protobufs @@ -1 +1 @@ -Subproject commit 092f7c04305e6d8b6d4417a127fba695546857d8 +Subproject commit 12c84bddb9e910fd2d4429648f2306ca9f991e19 diff --git a/src/mesh/generated/meshtastic/mesh.pb.h b/src/mesh/generated/meshtastic/mesh.pb.h index 9ca9079399..15057785e7 100644 --- a/src/mesh/generated/meshtastic/mesh.pb.h +++ b/src/mesh/generated/meshtastic/mesh.pb.h @@ -64,7 +64,7 @@ typedef enum _meshtastic_HardwareModel { /* LoRAType device: https://loratype.org/ */ meshtastic_HardwareModel_LORA_TYPE = 19, /* CanaryRadio.io LLC Handheld https://canaryradio.io */ - meshtastic_HardwareModel_CANARY_V1_0 = 22, + meshtastic_HardwareModel_CANARYONE = 22, /* B&Q Consulting Station Edition G1: https://uniteng.com/wiki/doku.php?id=meshtastic:station */ meshtastic_HardwareModel_STATION_G1 = 25, /* RAK11310 (RP2040 + SX1262) */ diff --git a/src/modules/SerialModule.cpp b/src/modules/SerialModule.cpp index c56dab6b9d..820e1fb62b 100644 --- a/src/modules/SerialModule.cpp +++ b/src/modules/SerialModule.cpp @@ -58,7 +58,7 @@ SerialModule *serialModule; SerialModuleRadio *serialModuleRadio; -#if defined(TTGO_T_ECHO) || defined(CANARY_V1_0) +#if defined(TTGO_T_ECHO) || defined(CANARYONE) SerialModule::SerialModule() : StreamAPI(&Serial), concurrency::OSThread("SerialModule") {} static Print *serialPrint = &Serial; #else @@ -140,7 +140,7 @@ int32_t SerialModule::runOnce() Serial.begin(baud); Serial.setTimeout(moduleConfig.serial.timeout > 0 ? moduleConfig.serial.timeout : TIMEOUT); } -#elif !defined(TTGO_T_ECHO) && !defined(CANARY_V1_0) +#elif !defined(TTGO_T_ECHO) && !defined(CANARYONE) if (moduleConfig.serial.rxd && moduleConfig.serial.txd) { #ifdef ARCH_RP2040 Serial2.setFIFOSize(RX_BUFFER); @@ -188,7 +188,7 @@ int32_t SerialModule::runOnce() } } } -#if !defined(TTGO_T_ECHO) && !defined(CANARY_V1_0) +#if !defined(TTGO_T_ECHO) && !defined(CANARYONE) else { while (Serial2.available()) { serialPayloadSize = Serial2.readBytes(serialBytes, meshtastic_Constants_DATA_PAYLOAD_LEN); diff --git a/src/platform/nrf52/architecture.h b/src/platform/nrf52/architecture.h index 1b0232b092..35cd4fd84b 100644 --- a/src/platform/nrf52/architecture.h +++ b/src/platform/nrf52/architecture.h @@ -48,8 +48,8 @@ #define HW_VENDOR meshtastic_HardwareModel_T_ECHO #elif defined(NANO_G2_ULTRA) #define HW_VENDOR meshtastic_HardwareModel_NANO_G2_ULTRA -#elif defined(CANARY_V1_0) -#define HW_VENDOR meshtastic_HardwareModel_CANARY_V1_0 +#elif defined(CANARYONE) +#define HW_VENDOR meshtastic_HardwareModel_CANARYONE #elif defined(NORDIC_PCA10059) #define HW_VENDOR meshtastic_HardwareModel_NRF52840_PCA10059 #elif defined(PRIVATE_HW) || defined(FEATHER_DIY) diff --git a/variants/canary/platformio.ini b/variants/canaryone/platformio.ini similarity index 73% rename from variants/canary/platformio.ini rename to variants/canaryone/platformio.ini index 11b541fb25..d52bbb24a7 100644 --- a/variants/canary/platformio.ini +++ b/variants/canaryone/platformio.ini @@ -1,13 +1,13 @@ -; First prototype eink/nrf52840/sx1262 device -[env:canary] +; Public Beta oled/nrf52840/sx1262 device +[env:canaryone] extends = nrf52840_base -board = canary +board = canaryone debug_tool = jlink # add -DCFG_SYSVIEW if you want to use the Segger systemview tool for OS profiling. -build_flags = ${nrf52840_base.build_flags} -Ivariants/canary +build_flags = ${nrf52840_base.build_flags} -Ivariants/canaryone -L "${platformio.libdeps_dir}/${this.__env__}/BSEC2 Software Library/src/cortex-m4/fpv4-sp-d16-hard" -build_src_filter = ${nrf52_base.build_src_filter} +<../variants/canary> +build_src_filter = ${nrf52_base.build_src_filter} +<../variants/canaryone> lib_deps = ${nrf52840_base.lib_deps} adafruit/Adafruit BusIO@^1.13.2 diff --git a/variants/canary/variant.cpp b/variants/canaryone/variant.cpp similarity index 100% rename from variants/canary/variant.cpp rename to variants/canaryone/variant.cpp diff --git a/variants/canary/variant.h b/variants/canaryone/variant.h similarity index 98% rename from variants/canary/variant.h rename to variants/canaryone/variant.h index 9261f96794..702f7cabb0 100644 --- a/variants/canary/variant.h +++ b/variants/canaryone/variant.h @@ -16,8 +16,8 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ -#ifndef _VARIANT_CANARY_V1_0_ -#define _VARIANT_CANARY_V1_0_ +#ifndef _VARIANT_CANARYONE +#define _VARIANT_CANARYONE /** Master clock frequency */ #define VARIANT_MCK (64000000ul) @@ -34,7 +34,7 @@ extern "C" { #endif // __cplusplus -#define CANARY_V1_0 +#define CANARYONE #define GPIO_PORT0 0 #define GPIO_PORT1 32