mirror of
https://github.com/DCC-EX/CommandStation-EX.git
synced 2024-12-25 05:31:24 +01:00
more ifdefs
This commit is contained in:
parent
9b04e7dfd6
commit
22d4fcf3b8
@ -71,8 +71,14 @@ DCCEXParser serialParser;
|
|||||||
|
|
||||||
// Try monitoring the memory
|
// Try monitoring the memory
|
||||||
#include "freeMemory.h"
|
#include "freeMemory.h"
|
||||||
//int minMemory=32767;
|
// TODO: this should be automated instead of ifdef
|
||||||
|
#if defined(ARDUINO_AVR_MEGA2560)
|
||||||
|
int minMemory=32767;
|
||||||
|
#elif defined(ARDUINO_AVR_UNO)
|
||||||
int minMemory=2048;
|
int minMemory=2048;
|
||||||
|
#else
|
||||||
|
#error CANNOT COMPILE - Unkown board, can not determine amount of RAM available.
|
||||||
|
#endif
|
||||||
|
|
||||||
void setup() {
|
void setup() {
|
||||||
|
|
||||||
|
3
Config.h
3
Config.h
@ -1,6 +1,9 @@
|
|||||||
#ifndef Config_h
|
#ifndef Config_h
|
||||||
#define Config_h
|
#define Config_h
|
||||||
|
|
||||||
|
// Define this if you have a WiFi board on Serial1
|
||||||
|
// #define WIFI
|
||||||
|
|
||||||
// This hardware configuration would normally be setup using a bunch of #ifdefs.
|
// This hardware configuration would normally be setup using a bunch of #ifdefs.
|
||||||
|
|
||||||
const byte MAIN_POWER_PIN = 3;
|
const byte MAIN_POWER_PIN = 3;
|
||||||
|
Loading…
Reference in New Issue
Block a user