Add partial emulator support for STM32F334