Hi guys
I am keen to know how you structure your source code, so I can learn something from you guys and improve the way I do things.
So here was how I did it in the past:
Here is how I do it now:
How do you guys structure you code, and what do you think I can improve on? Thanks guys!
I am keen to know how you structure your source code, so I can learn something from you guys and improve the way I do things.
So here was how I did it in the past:
Code:
/*! There are all in the same folder
* Say under /uart
*/
uart.h
uart.c
Code:
/*! There are all in the same folder
* Say under /uart
*/
uart_def.h /* constant etc... */
uart_types.h /* typedef struct etc... */
uart_api.h /* external function prototype */
uart_api.c /* private function prototype,
* And both private the public
* functions body
*/
uart.h /* application function prototype */
uart.c /* application function body */