I want to separate my code in several modules and I can't find a way to do that without upsetting the linker :p
Here is my configuration:
- main.c file which include <sys/atmega168.h> to initialize basic stuff like a status LED. It defines the appInit*
and appControl functions.
- scanner.c that defines functions to initialize a servo and a distance sensor. These function are called by the appInit* functions in
Which file should I include in scanner.c to hat the port definition? (like D0, D1...)