some config optimizations

This commit is contained in:
Pawel Spychalski
2018-04-10 08:53:15 +02:00
parent b38dc15ba5
commit db1cd344cb
4 changed files with 24 additions and 5 deletions

View File

@@ -1,6 +1,6 @@
{ {
"board": "bsfrance:avr:lora32u4", "board": "bsfrance:avr:lora32u4",
"sketch": "crossbow\\crossbow.ino", "sketch": "crossbow/crossbow.ino",
"port": "COM3", "port": "COM3",
"output": "../build" "output": "../build"
} }

View File

@@ -13,7 +13,8 @@
}, },
"intelliSenseMode": "msvc-x64", "intelliSenseMode": "msvc-x64",
"cStandard": "c11", "cStandard": "c11",
"cppStandard": "c++17" "cppStandard": "c++17",
"compilerPath": "/usr/bin/clang"
}, },
{ {
"name": "Mac", "name": "Mac",

View File

@@ -1,12 +1,30 @@
#ifndef CONFIG_H #ifndef CONFIG_H
#define CONFIG_H #define CONFIG_H
/*
* Hardware type. Available types:
* ARDUINO_AVR_FEATHER32U4
* ARDUINO_SAMD_FEATHER_M0
*/
#define ARDUINO_AVR_FEATHER32U4
/*
* TX or RX mode for hardware. Available types:
* DEVICE_MODE_TX
* DEVICE_MODE_RX
*/
#define DEVICE_MODE_TX #define DEVICE_MODE_TX
// #define DEVICE_MODE_RX // #define DEVICE_MODE_RX
#define FEATURE_TX_OLED // #define FEATURE_TX_OLED
// #define FORCE_TX_WITHOUT_INPUT // #define FORCE_TX_WITHOUT_INPUT
// #define FEATURE_TX_INPUT_PPM
/*
* Default mode of TX data input: SBUS
* Possible values:
* FEATURE_TX_INPUT_PPM
* FEATURE_TX_INPUT_SBUS
*/
#define FEATURE_TX_INPUT_SBUS #define FEATURE_TX_INPUT_SBUS
// #define DEBUG_SERIAL // #define DEBUG_SERIAL

View File

@@ -1,7 +1,7 @@
#ifndef CONFIG_H #ifndef CONFIG_H
#define CONFIG_H #define CONFIG_H
#define DEVICE_MODE_TX #define DEVICE_MODE TX
#define FEATURE_TX_OLED #define FEATURE_TX_OLED
#define FEATURE_TX_INPUT_SBUS #define FEATURE_TX_INPUT_SBUS