Adding new c and header files to a project? Also...what is that called?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-09-16 10:55 AM
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?
Solved! Go to Solution.
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-09-16 10:59 AM
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"
Up vote any posts that you find helpful, it shows what's working..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-09-16 10:59 AM
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"
Up vote any posts that you find helpful, it shows what's working..
