Add missing <math.h> include for the UC3 devices, hide CDC class driver stream functions for unsupported platforms.

This commit is contained in:
Dean Camera 2012-06-12 19:49:15 +00:00
parent deb6fce7bc
commit c4ebddd27a
3 changed files with 8 additions and 3 deletions

View file

@ -109,9 +109,10 @@
#include "Endianness.h"
#elif (ARCH == ARCH_UC3)
#include <avr32/io.h>
#include <math.h>
// === TODO: Find abstracted way to handle these ===
#define PROGMEM const
#define PROGMEM
#define pgm_read_byte(x) *x
#define memcmp_P(...) memcmp(__VA_ARGS__)
#define memcpy_P(...) memcpy(__VA_ARGS__)