Andriy Makukha
/
football_project_wo_output
football_project_wo_output
Fork of football_project by
configs.h
- Committer:
- andriym
- Date:
- 2016-05-09
- Revision:
- 78:43a6b54f0372
- Child:
- 79:9db29f41dc9d
File content as of revision 78:43a6b54f0372:
/////////////////////////////////// HARDWARE SELECTION /////////////////////////////////// // Board select, if none selected - LPC1768 assumed #define _NORDIC // nRF51822 (highest priority) #define NUCLEO // Nucleo-F411RE (lesser priority) // Frequency select //#define FREQUENCY RF69_433MHZ #define FREQUENCY RF69_868MHZ //#define FREQUENCY RF69_915MHZ #define HIGH_POWER // High power radio // Output select #define _NO_DISP // No display? #define NO_SERIAL // Send info over serial? #define TEXT_LCD // Text LCD display #define _I2C_DISP // I2C display (SPI assumed) #define _ENABLE_SOUND // Turns on sound in the beep() function /////////////////////////////////// CONSTANTS /////////////////////////////////// #define EVERY_NODE 255 // Abstract address we are sending the packets to (doesn't matter) #define NETWORKID 102 // The same on all nodes that talk to each other #define NAME_LEN 5 #define MAX_RECORDS 35 #define MAX_HISTORY_MS 60000 // 1 minute #define SIGNALS_VALID_MS 4000 #define SEND_RATE_MS 400L //#define SEND_DESYNC 0.20 // 0.20 -> send rate +/-10% /////////////////////////////////// LOGIC /////////////////////////////////// #ifdef NORDIC #ifdef ENABLE_SOUND #undef ENABLE_SOUND // NORDIC --> no sound (at the moment) #endif #ifndef NO_DISP #define NO_DISP // NORDIC --> no display (use Serial) #endif #endif