Mirror with some correction

Dependencies:   mbed FastIO FastPWM USBDevice

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers pinscape.h Source File

pinscape.h

00001 // Global definitions
00002 
00003 #ifndef PINSCAPE_H
00004 #define PINSCAPE_H
00005 
00006 // custom malloc - includes diagnostics if we run out of memory
00007 void *xmalloc(size_t siz);
00008 
00009 // diagnostic LED display
00010 void diagLED(int r, int g, int b);
00011 
00012 // count of elements in array
00013 #define countof(x) (sizeof(x)/sizeof((x)[0]))
00014 
00015 #endif