Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make compilation possible for Arduino IDE 1.0 #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions EtherShield.cpp
Original file line number Diff line number Diff line change
@@ -1,11 +1,18 @@
// a wrapper class for EtherShield

#if (ARDUINO >= 100)
#include <Arduino.h>
#endif

extern "C" {
#include "ip_config.h"
#include "enc28j60.h"
#include "ip_arp_udp_tcp.h"
#include "websrv_help_functions.h"
#if (ARDUINO >= 100)
#else
#include "wiring.h"
#endif
#ifdef DNS_client
#include "dnslkup.h"
#endif
Expand Down
8 changes: 6 additions & 2 deletions enc28j60.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,16 @@
*********************************************/
// Updated 16/06/2010 ADL Added configurable CS, 16 bit writes and reads.

#include "enc28j60.h"
#include <avr/io.h>
#include <inttypes.h>
#include <avr/interrupt.h>
#if (ARDUINO >= 100)
#include <Arduino.h>
#else
#include <WProgram.h>
#endif

#include "enc28j60.h"
#include "WConstants.h" //all things wiring / arduino

static uint8_t Enc28j60Bank;
static uint16_t gNextPacketPtr;
Expand Down