moved the "firmware" functions to src/firmware.c and included it in
src/main.c

(just to serve readability and structure)