Included HAL bits for LCD from TI example code, with a couple of small modifications