/* * globals.h * * Created on: 29 нояб. 2018 г. * Author: maxx */ #ifndef GLOBALS_H_ #define GLOBALS_H_ #include #include #include #include "avr/wdt.h" // WatchDog #include "Ethernet/socket.h" #include "Ethernet/wizchip_conf.h" //Shouldn't use here //******************************* Fat FS declare related: BEGIN /* #include "string.h" #include "ff.h" #include "diskio.h" #include "integer.h" #include "Internet/httpServer_avr/httpParser.h" static FATFS Fatfs; //File system object for each logical drive. >= 2 //static FIL File; //File object. there are _FS_LOCK file objects available, >= 2 */ //******************************* Fat FS declare related: END #define PRINTF_EN 1 #if PRINTF_EN #define PRINTF(FORMAT,args...) printf_P(PSTR(FORMAT),##args) #else #define PRINTF(...) #endif #define SPRINTF(__S, FORMAT, args...) sprintf_P(__S, PSTR(FORMAT),##args) #define IP_WORK //SPI CLOCK 4 or 8Mhz #define SPI_4_MHZ //#define SPI_8_MHZ extern unsigned long millis(void); extern int freeRam (void); //M644P/M1284p Users LEDS: //LED1/PORTC.4/20 - m644p/m1284p maxxir brd #define led1_conf() DDRC |= (1<