How do you creat a new .eel element from the original C file ?

cancel
Showing results for 
Search instead for 
Did you mean: 

How do you creat a new .eel element from the original C file ?

180 Views
Contributor III

Hi,

When creating an EEL new element for IOT Studio, where do you locate the function definitions from the original C code. I have not found an example that starts from a .c file and end up in an .eel file so far. This has kept me stuck on my development as I find the porting of original .c and .h files into .eel file confusing.

Thanks for your help !

Alejandro

Labels (1)
Tags (1)
3 Replies

10 Views
NXP TechSupport
NXP TechSupport

Hello alejandro.abraham@utdallas.edu

I suggest to take a look at your metadata file of your element. In requires you should have written "gpio" like this:

    "requires": [
        "embedded", "gpio"
    ],

In your header be sure to include : ../app_src/atmosphere_platform.h and ../atmo/core.h

Let me know if this helps

Best regards,

Omar

0 Kudos

10 Views
Contributor III

10 Views
Contributor III

Hi Richard,

Yes, I have. I created an EEL to read from an external button so as to learn how to use the EEL tool and the APIs. It looks like that after I created my button.eel and imported into IoT Studio, I get a compile error: 

"unknown type name 'ATMO_GPIO_Device_Pin_t'"

I have tried with the following include files unsuccessfully:

#include "../atmo/core.h"
//#include "../gpio/gpio.h"

//#include "../app_src/atmosphere_platform.h"

Thank you.

Best,

Alejandro

0 Kudos