Refactored and enhanced accelerometer support for FRDM-K64F

Signed-off-by: J. German Rivera <German.Rivera@freescale.com>