HAL:platform and MCU type clean up