/* * globals.h * * Created on: 29 нояб. 2018 г. * Author: maxx */ #ifndef GLOBALS_H_ #define GLOBALS_H_ #include #include #include #include "avr/wdt.h" // WatchDog //#define HTTPD_MAX_BUF_SIZE 2048 //For Mega1284p(16kb RAM)/Mega2560(8kb RAM) #define HTTPD_MAX_BUF_SIZE 512 //For Mega644p(4kb RAM)/Mega128(4kb RAM) #define PRINTF_EN 0 #if PRINTF_EN #define PRINTF(FORMAT,args...) printf_P(PSTR(FORMAT),##args) #else #define PRINTF(...) #endif extern unsigned long millis(void); extern int freeRam (void); //M644P/M1284p Users LEDS: //LED1/PORTC.4- m644p/m1284p maxxir #define led1_conf() DDRC |= (1<