mirror of
https://github.com/meshtastic/firmware.git
synced 2025-02-04 03:39:56 +00:00
ade32b1827
* lay groundwork for a possible future architecture * switch from feature opt-out to feature opt-in * lay groundwork for a possible future architecture * switch from feature opt-out to feature opt-in * fix USE_RTC in variant.h for rak4631_epaper and t-echo * ensure Screen.h is not included without configuration.h Co-authored-by: Peter Lawrence <12226419+majbthrd@users.noreply.github.com> Co-authored-by: Ben Meadors <benmmeadors@gmail.com>
39 lines
994 B
C
39 lines
994 B
C
// DEBUG LED
|
|
#ifndef LED_INVERTED
|
|
#define LED_INVERTED 0 // define as 1 if LED is active low (on)
|
|
#endif
|
|
|
|
// -----------------------------------------------------------------------------
|
|
// DEBUG
|
|
// -----------------------------------------------------------------------------
|
|
|
|
#ifdef CONSOLE_MAX_BAUD
|
|
#define SERIAL_BAUD CONSOLE_MAX_BAUD
|
|
#else
|
|
#define SERIAL_BAUD 115200 // Serial debug baud rate
|
|
#endif
|
|
|
|
#include "SerialConsole.h"
|
|
|
|
#define DEBUG_PORT (*console) // Serial debug port
|
|
|
|
#ifdef USE_SEGGER
|
|
#define DEBUG_MSG(...) SEGGER_RTT_printf(0, __VA_ARGS__)
|
|
#else
|
|
#ifdef DEBUG_PORT
|
|
#define DEBUG_MSG(...) DEBUG_PORT.logDebug(__VA_ARGS__)
|
|
#else
|
|
#define DEBUG_MSG(...)
|
|
#endif
|
|
#endif
|
|
|
|
// -----------------------------------------------------------------------------
|
|
// AXP192 (Rev1-specific options)
|
|
// -----------------------------------------------------------------------------
|
|
|
|
#define GPS_POWER_CTRL_CH 3
|
|
#define LORA_POWER_CTRL_CH 2
|
|
|
|
// Default Bluetooth PIN
|
|
#define defaultBLEPin 123456
|