code cleanup, USB interfacing for base station

fixed all compiler warnings. Changed ADC functions to be able to take
any integer value of sampling rate (within the bounds of the 16 bit
timer and 32 MHz oscillator).  Added code for dev board to talk to
computer using USART over its serial port (to act as base station).