Energia MspFlash library rewritten for cc430