From 46d9bc5e6fe0a23449b730b284023c9dfa87138c Mon Sep 17 00:00:00 2001 From: tuxphone <67556506+tuxphone@users.noreply.github.com> Date: Sun, 27 Sep 2020 17:18:08 +0200 Subject: [PATCH] not used anymore --- MeshRadio.h | 70 ----------------------------------------------------- 1 file changed, 70 deletions(-) delete mode 100644 MeshRadio.h diff --git a/MeshRadio.h b/MeshRadio.h deleted file mode 100644 index f2395c4..0000000 --- a/MeshRadio.h +++ /dev/null @@ -1,70 +0,0 @@ -// CONFIGURATION HERE -#define HW_VERSION_EU865 // define your region here. For US, use HW_VERSION_US, for CN use HW_VERSION_CN etc. -#define TX_OUTPUT_POWER 14 // output power in dB, keep in mind the maximums set by law and the hardware -#define MESHTASTIC_SPEED 1 // 0 = short range, 1 = medium range, 2 = long range, 3 = very long range -char MESHTASTIC_NAME[12] = {"Default"}; // Channel Name, but without "-Xy" suffix , e.g. use "Test" instead of "Test-A" -// END OF CONFIGURATION - -#define MESHTASTIC_PSK { 0xd4, 0xf1, 0xbb, 0x3a, 0x20, 0x29, 0x07, 0x59, 0xf0, 0xbc, 0xff, 0xab, 0xcf, 0x4e, 0x69, 0xbf } - -#define RGB_GREEN 0x000300 // receive mode -#define RGB_RED 0x030000 // send mode - -#define LORA_PREAMBLE_LENGTH 32 // Same for Tx and Rx -#define LORA_SYMBOL_TIMEOUT 0 // Symbols -#define RX_TIMEOUT_VALUE 1000 -#define MAX_PAYLOAD_LENGTH 0xFF // max payload (see \cores\asr650x\device\asr6501_lrwan\radio.c --> MaxPayloadLength) -#define ID_BUFFER_SIZE 32 - -// US channel settings -#define CH0_US 903.08f // MHz -#define CH_SPACING_US 2.16f // MHz -#define NUM_CHANNELS_US 13 - -// EU433 channel settings -#define CH0_EU433 433.175f // MHz -#define CH_SPACING_EU433 0.2f // MHz -#define NUM_CHANNELS_EU433 8 - -// EU865 channel settings -#define CH0_EU865 865.2f // MHz -#define CH_SPACING_EU865 0.3f // MHz -#define NUM_CHANNELS_EU865 10 - -// CN channel settings -#define CH0_CN 470.0f // MHz -#define CH_SPACING_CN 2.0f // MHz FIXME, this is just a guess for 470-510 -#define NUM_CHANNELS_CN 20 - -// JP channel settings -#define CH0_JP 920.0f // MHz -#define CH_SPACING_JP 0.5f // MHz FIXME, this is just a guess for 920-925 -#define NUM_CHANNELS_JP 10 - -// FIXME add defs for other regions and use them here -#ifdef HW_VERSION_US -#define CH0 CH0_US -#define CH_SPACING CH_SPACING_US -#define NUM_CHANNELS NUM_CHANNELS_US -#elif defined(HW_VERSION_EU433) -#define CH0 CH0_EU433 -#define CH_SPACING CH_SPACING_EU433 -#define NUM_CHANNELS NUM_CHANNELS_EU433 -#elif defined(HW_VERSION_EU865) -#define CH0 CH0_EU865 -#define CH_SPACING CH_SPACING_EU865 -#define NUM_CHANNELS NUM_CHANNELS_EU865 -#elif defined(HW_VERSION_CN) -#define CH0 CH0_CN -#define CH_SPACING CH_SPACING_CN -#define NUM_CHANNELS NUM_CHANNELS_CN -#elif defined(HW_VERSION_JP) -#define CH0 CH0_JP -#define CH_SPACING CH_SPACING_JP -#define NUM_CHANNELS NUM_CHANNELS_JP -#else -// HW version not set - assume US -#define CH0 CH0_US -#define CH_SPACING CH_SPACING_US -#define NUM_CHANNELS NUM_CHANNELS_US -#endif