Turned off interrupts if USE_INTERRUPT is not defined
Working port on STM32. Uses polling.