cancel
Showing results for 
Search instead for 
Did you mean: 

Adding new c and header files to a project? Also...what is that called?

DCroc.2
Associate

I have a stm32f3discovery board and I want to start playing with the LSM303DLHC MEMS sensor.

I seem to have found the original example code on github.

So I guess I need to add both the header and c file to my project. I'm not sure how to go about this. Also, what is this procedure called? Am I "adding a library"? Or is it called a driver?

1 ACCEPTED SOLUTION

Accepted Solutions

A library is a precompiled file, typically having several object files in it, so a .A or .LIB

In tools like Keil / IAR you "Add Existing File(s)" to the project node, where you'd add the C file.

The .H file would be found via "Include Paths"

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..

View solution in original post

1 REPLY 1

A library is a precompiled file, typically having several object files in it, so a .A or .LIB

In tools like Keil / IAR you "Add Existing File(s)" to the project node, where you'd add the C file.

The .H file would be found via "Include Paths"

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..