Skip to content

Commit

Permalink
Ported to Arduino Due platform
Browse files Browse the repository at this point in the history
  • Loading branch information
jupp0r committed Mar 27, 2013
1 parent 4d62c1a commit b030ea9
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions WebServer.h
Expand Up @@ -127,11 +127,18 @@
extern "C" unsigned long millis(void);

// declare a static string
#ifdef __AVR__
#define P(name) static const unsigned char name[] PROGMEM
#else
#define P(name) static const unsigned char name[]
#endif

// returns the number of elements in the array
#define SIZE(array) (sizeof(array) / sizeof(*array))

#ifdef _VARIANT_ARDUINO_DUE_X_
#define pgm_read_byte(ptr) (unsigned char)(* ptr)
#endif
/********************************************************************
* DECLARATIONS
********************************************************************/
Expand Down

0 comments on commit b030ea9

Please sign in to comment.