Hi All,
I am trying to port the Arduino Ethernet library (for ENC28J60) to the Maple. The Arduino library is located here: http://blog.thiseldo.co.uk/?p=570
I did all the type conversions (unit8_t -> uint8 etc.) and took out the avr-specific includes, but now I am at a point where I get some cryptic (to me at least) compile errors as soon as I try to include "wirish.h"
The errors are like this:
from C:\Users\Michael\Documents\MapleIDE\libraries\EtherShield28J60_062011\enc28j60.c:21:
C:\Program Files (x86)\Leaflabs_Maple\maple-ide-0.0.11\hardware\leaflabs\cores\maple/boards.h:118: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'boardUsesPin'
from C:\Users\Michael\Documents\MapleIDE\libraries\EtherShield28J60_062011\enc28j60.c:21:
C:\Program Files (x86)\Leaflabs_Maple\maple-ide-0.0.11\hardware\leaflabs\cores\maple/io.h:201: error: expected ';', ',' or ')' before '=' token
from C:\Users\Michael\Documents\MapleIDE\libraries\EtherShield28J60_062011\enc28j60.c:21:
C:\Program Files (x86)\Leaflabs_Maple\maple-ide-0.0.11\hardware\leaflabs\cores\maple/wirish_math.h:56: error: conflicting types for 'random'
C:\Program Files (x86)\Leaflabs_Maple\maple-ide-0.0.11\hardware\leaflabs\cores\maple/wirish_math.h:47: note: previous declaration of 'random' was here
from C:\Users\Michael\Documents\MapleIDE\libraries\EtherShield28J60_062011\enc28j60.c:21:
C:\Program Files (x86)\Leaflabs_Maple\maple-ide-0.0.11\hardware\leaflabs\cores\maple/HardwareSPI.h:71: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'HardwareSPI'
This goes on for a while, basically most of the files include'd in wrish.h generate a similar error.
Line 21 in enc28j60.c is this:
#include "wirish.h"
What am I doing wrong?
These low-level files I am working on are C files that are used by the Ethernet.cpp file.
Can wirish not be included in a C file? Is there any better way to troubleshoot this and get to the bottom of this error?
Thank you,
Mike