1
0
mirror of https://github.com/DCC-EX/CommandStation-EX.git synced 2024-12-24 13:21:23 +01:00

more ifdefs

This commit is contained in:
Harald Barth 2020-07-12 16:03:22 +02:00
parent 9b04e7dfd6
commit 22d4fcf3b8
2 changed files with 10 additions and 1 deletions

View File

@ -71,8 +71,14 @@ DCCEXParser serialParser;
// Try monitoring the memory
#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;
#else
#error CANNOT COMPILE - Unkown board, can not determine amount of RAM available.
#endif
void setup() {

View File

@ -1,6 +1,9 @@
#ifndef 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.
const byte MAIN_POWER_PIN = 3;