We should generally use api.c for API related functions and put the other functions (mostly hardware-specific low-level code) into other C file(s) for better readability.