stm32f1: implement RTT driver