wrap copier.c in an ifdef so arduino ide doesn't try to include it

This commit is contained in:
Michael Moon 2010-10-23 15:58:19 +11:00
parent a0543d3329
commit 045f7fa401
1 changed files with 5 additions and 2 deletions

View File

@ -1,11 +1,12 @@
#ifdef COPIER
#include "copier.h"
#include <avr/pgmspace.h>
#include <avr/boot.h>
#include "arduino.h"
#include "timer.h"
#include "serial.h"
#include "delay.h"
uint32_t copier_xchange(uint32_t cmd) {
uint32_t r = 0, c = cmd;
@ -96,3 +97,5 @@ void copy() {
SET_INPUT(SCK);
SET_INPUT(COPIER_RESET);
}
#endif /* COPIER */