mirror of
https://github.com/meshtastic/firmware.git
synced 2025-04-24 01:16:55 +00:00

* Adds ASCII logs useful to portudino Activates ASCII log option when stdout is not a terminal. This is generally the right thing to do; if not, the behavior can be overridden in config.yaml using AsciiLogs under Logging. The result is reasonable system logs for portudino when running under systemd or the like. Signed-off-by: Christopher Hoover <ch@murgatroid.com> Co-authored-by: Christopher Hoover <ch@murgatroid.com>
67 lines
1.4 KiB
C++
67 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,
|
|
ascii_logs
|
|
};
|
|
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);
|