Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

.c files from Header Files

Status
Not open for further replies.

SK245230

Member level 3
Joined
Nov 24, 2015
Messages
57
Helped
3
Reputation
6
Reaction score
3
Trophy points
1,288
Activity points
1,844
Hi I am a beginner in programming uC, so I have a simple question on header files.
When I write a code for a microcontroller in Atmel Studio or in MPLab, I have to include header files and use functions that are defined in it like "initialise_something()" or "enable_something()". But they never give a clear description of what the function does or how to use it. Is there a way to find the description or maybe to look inside the ".c" file to understand how the function works?
 

Hi,

You can use some advanced IDE (integrated development environment) which supports expansion of 'c' functions and hyper linking. There are many such advanced editor available freely on internet. such as Eclipse, Komodo etc
 
".c" files are just plain text, they are source files like one you would write yourself. If you do a search for '.c' files in your compiler folder there is a good chance it will turn up lots of files you can read, often with comments in them.

Library files are an exception because they are normally pre-compiled object code and therefore not human readable. You should have documentation supplied with the compiler that tells you what parameters the library functions use and what values they return. As a final resort, if you produce a listing file when you compile a program, it will normally show the functions broken down to assembler level but often with comments still embedded in them.

Brian.
 
Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top