Support HW serial in v5, clean up config

This commit is contained in:
Filip Ayazi 2022-10-11 01:00:31 +01:00
parent 351e5a6b7a
commit 0f4e4b5289
7 changed files with 44 additions and 36 deletions

View file

@ -1,24 +1,19 @@
#ifndef CONFIGURED
//board choice
//#define BOARD_AUTO
//#define BOARD_SANGABOARDv3
//#define BOARD_SANGABOARDv2
#define BOARD_SANGABOARDv5
//#define BOARD_CUSTOM_ESP32
//#define BOARD_CUSTOM_PICO
#define BOARD_AUTO
//#define BOARD_SANGABOARDv5
//default to USB serial for now
//#define SERIAL_PORT PiSerial
#define SERIAL_PORT Serial
//without this, default to HW serial where available
//the details are board specific and configured in boards.h
//#define USB_SERIAL
//#define BOARD_CUSTOM
#include <boards.h> //defines wiring
//general settings
#define MAX_COMMANDS 50
#define MAX_MODULES 10
#define MAX_ARGUMENT_LENGTH 20 //used in argument parsing, takes up ram
#define VERSION_STRING "Sangaboard Firmware v0.4" //temporary hack
#define VERSION_STRING "Sangaboard Firmware v1.0-beta"
#define DEBUG_ON
//module choice