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.

Creating my own library of functions?

Status
Not open for further replies.

StuntMonkeh

Newbie level 2
Newbie level 2
Joined
Dec 12, 2012
Messages
2
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,297
I have just started out programming and I have an STM32VL board.

There are a number of functions I have written in the main.c that I want to put in my own library. How do I go about doing that?

All I can figure out is that I need a '.h' and '.c' file for the library.

Can someone point me in the right direction. Thanks.
 

Also make sure your functions are reusable and testable.
So put some effort on the comments (self documentation) and include some test functions and lot of error handling and wrapping.
it is quite basic, but that's how I did it.

Besides that, I suggest you check some existing frameworks to understand how the mainstream programmers logic, formatting and library building goes, it helps you build a maintainable programs and also better chance for jobs where you debug other's codes.
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top