Adapted ARM embedded samples to STM32F4-Discovery