/********************************************************************* * FileName: Supporting.C * Processor: 18F4520 * Compiler: MCC18 * * Author Date Comment *~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * David Fisher 9/25/07 ********************************************************************/ #include #include "Supporting.h" /** Variables visible everywhere due to .h file's extern line ***/ unsigned char globalVariable; /** Variables visible within this .c file only ******************/ unsigned char moduleVariable; /** Function visible within this .c file only *******************/ int privateHelperFunction(int x); /***************************************************************** * Function: exampleFunction * Input Variables: * Output return: * Overview: ******************************************************************/ int exampleFunction(int x) { return 2 * x; } /***************************************************************** * Function: privateHelperFunction * Input Variables: * Output return: * Overview: Helper function only visible within this file. ******************************************************************/ int privateHelperFunction(int x) { return 3 * x; }