FastSerial example sketch: Depend on AP_Common for PSTR definitions

This commit is contained in:
Pat Hickey 2012-10-15 19:23:42 -07:00
parent 76e93e9fd7
commit e84a467311

View File

@ -13,14 +13,8 @@
// disabled.
//
#include <FastSerial.h>
#undef PROGMEM
#define PROGMEM __attribute__(( section(".progmem.data") ))
# undef PSTR
# define PSTR(s) (__extension__({static prog_char __c[] PROGMEM = (s); \
(prog_char_t *)&__c[0];}))
#include <AP_Common.h>
#include <AP_Math.h>
//
// Create a FastSerial driver that looks just like the stock Arduino
// driver.