have no idea how polished it can get, not knowing your program.
on how to write an include file and what to put or not put, you should read up on basic C programming.
One resource i usually use whenever i don't remember something:
https://www.tutorialspoint.com/cprogramming/Anyway, on an include file you will put all the declarations so
- Other includes, if needed
- defines
- type definitions
- function prototypes
do NOT put variables or actual code as it will be compiled every time the include file is used.
I usually have a "main.h" file that has all the includes and global defines and typedefs and in each C file i only include the main.h
if let's say i had 5 .c files and i had defined an array of 1024 8bit cells in the main.h file.. the compiler would allocate 5k of data memory for that array instead of one, because each .c file when compiled will allocate 1k for himself. (then the linker would complain and maybe fail the compilation)