Added hacky MSP430 HAL
some convenience functions