Mirror with some correction

Dependencies:   mbed FastIO FastPWM USBDevice

pinscape.h

Committer:
arnoz
Date:
2021-10-01
Revision:
116:7a67265d7c19
Parent:
48:058ace2aed1d

File content as of revision 116:7a67265d7c19:

// Global definitions

#ifndef PINSCAPE_H
#define PINSCAPE_H

// custom malloc - includes diagnostics if we run out of memory
void *xmalloc(size_t siz);

// diagnostic LED display
void diagLED(int r, int g, int b);

// count of elements in array
#define countof(x) (sizeof(x)/sizeof((x)[0]))

#endif