Porting a library

Post Reply
linuxha
Posts: 10
Joined: Sun Oct 05, 2014 6:30 am

Porting a library

Post by linuxha » Sun Oct 05, 2014 5:17 pm

I'm porting over a library to my UNO32 (UIPEthernet) and I've run into the usual problems of Arduino registers and write size_t vs void (maddening). Those I've gotten by and I think I'm okay. But I'm really confused as to why I can't get passed calls such as millis and delay. I can't find what I'm missing to include those into the compile. This is one of the errors:

Enc28J60Network.cpp:88:11: error : 'delay' was not declared in this scope

Any pointers ?

Thanks

mikes
Posts: 74
Joined: Mon May 14, 2012 10:37 pm

Re: Porting a library

Post by mikes » Sun Oct 05, 2014 6:57 pm

Try adding

Code: Select all

#include <WProgram.h>
to the top of your file.

linuxha
Posts: 10
Joined: Sun Oct 05, 2014 6:30 am

Re: Porting a library

Post by linuxha » Sun Oct 05, 2014 7:32 pm

mikes wrote:Try adding

Code: Select all

#include <WProgram.h>
to the top of your file.
Wow, that work really well ! Thanks ! :D

samdee21
Posts: 1
Joined: Fri Mar 17, 2017 3:36 pm

Re: Porting a library

Post by samdee21 » Fri Mar 17, 2017 3:40 pm

Did you ever get UIPEtherent to work? I've just started playing with the Mpide, Thanks

linuxha
Posts: 10
Joined: Sun Oct 05, 2014 6:30 am

Re: Porting a library

Post by linuxha » Fri Mar 17, 2017 8:25 pm

I switched from the ENC28J60 to the WizNet W5500 boards. I still have a lot of problems getting it loaded into the IDE (and I treid all 3 UCI, Chipkit and Arduino). I always ended up hacking it into place. Right now it's not working properly (again) and I need to fix that.

Post Reply