twi: Fix all of the compilation errors.
Makefile: Add 'twi.c'.
Replace 'cpu.h' with 'clock.h'.