Jump to content
43oh

Can I use Energia Libraries in Keil????


Recommended Posts

I want to use Tiva C with 430boosterpack.

I tried some sample example codes available in Energia. and its working good. Energia has built in libraries for 430Boosterpack and SPI.

But I am using Keil for my project programming.

Can i use these libraries with Keil?????

I tried to make project file in Keil with these libraries and copied .h and .c file in project folder. But there are some errors like "'Unknown identifier type 'class'".

Link to post
Share on other sites

Yes, You can use Energia library in Keil. 
"class" is type of C++ . 
There two ways:

- define Energia library C++ to C.
-use C++ and C in Keil

You have some define like this:
Check C99Mode and --cpp
Untitled.png

click right file .cpp in Project -> Options for File 

File Type : C++

Untitled1.png

 

Goodluck  :smile:

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...