* Make SPI frequency configurable on Native * Make the tophone queue size configurable for Portduino * The modified SPISettings must be configured in setup(), after config.yaml is processed * make MeshService a pointer, so we can configure MAX_RX_TOPHONE at run time * Got a little over excited with refactoring * Silence a warning
65 lines
1.4 KiB
C++
65 lines
1.4 KiB
C++
#pragma once
|
|
#include <fstream>
|
|
#include <map>
|
|
|
|
enum configNames {
|
|
use_sx1262,
|
|
cs,
|
|
irq,
|
|
busy,
|
|
reset,
|
|
txen,
|
|
rxen,
|
|
dio2_as_rf_switch,
|
|
dio3_tcxo_voltage,
|
|
ch341Quirk,
|
|
use_rf95,
|
|
use_sx1280,
|
|
use_sx1268,
|
|
user,
|
|
gpiochip,
|
|
spidev,
|
|
spiSpeed,
|
|
i2cdev,
|
|
has_gps,
|
|
touchscreenModule,
|
|
touchscreenCS,
|
|
touchscreenIRQ,
|
|
touchscreenI2CAddr,
|
|
touchscreenBusFrequency,
|
|
touchscreenRotate,
|
|
touchscreenspidev,
|
|
displayspidev,
|
|
displayBusFrequency,
|
|
displayPanel,
|
|
displayWidth,
|
|
displayHeight,
|
|
displayCS,
|
|
displayDC,
|
|
displayRGBOrder,
|
|
displayBacklight,
|
|
displayBacklightPWMChannel,
|
|
displayBacklightInvert,
|
|
displayReset,
|
|
displayRotate,
|
|
displayOffsetRotate,
|
|
displayOffsetX,
|
|
displayOffsetY,
|
|
displayInvert,
|
|
keyboardDevice,
|
|
logoutputlevel,
|
|
traceFilename,
|
|
webserver,
|
|
webserverport,
|
|
webserverrootpath,
|
|
maxtophone,
|
|
maxnodes
|
|
};
|
|
enum { no_screen, x11, st7789, st7735, st7735s, st7796, ili9341, ili9488, hx8357d };
|
|
enum { no_touchscreen, xpt2046, stmpe610, gt911, ft5x06 };
|
|
enum { level_error, level_warn, level_info, level_debug, level_trace };
|
|
|
|
extern std::map<configNames, int> settingsMap;
|
|
extern std::map<configNames, std::string> settingsStrings;
|
|
extern std::ofstream traceFile;
|
|
int initGPIOPin(int pinNum, std::string gpioChipname); |