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

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

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

1,912 次查看
alejandro_abrah
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

标签 (1)
标记 (1)
3 回复数

1,742 次查看
Omar_Anguiano
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 项奖励
回复

1,742 次查看
richard_laborde
Contributor III

1,742 次查看
alejandro_abrah
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 项奖励
回复