Arduino to IDF header

PeterR
Posts: 621
Joined: Mon Jun 04, 2018 2:47 pm

Arduino to IDF header

Postby PeterR » Mon Jun 24, 2019 9:51 am

I need to port some Arduino libraries to IDF.
Does anyone have a set of ESP IDF stubs which translate Arduino services (tick, time, debug logging etc) to ESP IDF which they will share?
& I also believe that IDF CAN should be fixed.

ESP_Sprite
Posts: 9008
Joined: Thu Nov 26, 2015 4:08 am

Re: Arduino to IDF header

Postby ESP_Sprite » Tue Jun 25, 2019 2:10 am

You are aware that you can use the Arduino codebase as a component in esp-idf? That should allow you to intermix code.

PeterR
Posts: 621
Joined: Mon Jun 04, 2018 2:47 pm

Re: Arduino to IDF headers & stubs

Postby PeterR » Tue Jun 25, 2019 2:28 pm

No, I was not aware. How do I go about that?

ATM I have dropped the Ardunio component into my IDF project /components added COMPONENT_SRCDIRS and COMPONENT_ADD_INCLUDEDIRS and am now faced with missing headers 'os_type.h' etc and clearly once I copy/create the headers then I will need a back end.
Most headers seems fairly trivial to create (better though if I can avoid the typing) but espconn will need some effort.
& I also believe that IDF CAN should be fixed.

ESP_Sprite
Posts: 9008
Joined: Thu Nov 26, 2015 4:08 am

Re: Arduino to IDF header

Postby ESP_Sprite » Wed Jun 26, 2019 9:59 am


Who is online

Users browsing this forum: No registered users and 86 guests