Sign compare fix
STM32 NuttX support. Doesn't work though, hardfaults in IRQ handler.