+ /* (todo) usart pin setup (alt func and enable port clock) */
+
+ /* UE: USART enable */
+ *USART_CR1 |= (1u << 13); /* 1: USART enable */
+ /* M: Word length */
+ *USART_CR1 &= ~(1u << 12); /* 0: 1 Start bit, 8 Data bits, n Stop bit */
+ /* STOP: STOP bits */
+ *USART_CR2 &= ~(3u << 12); /* 00: 1 Stop bit */
+ /* the clock frequnecy is 16mhz initially, so for a baud rate of 115.2 KBps we
+ * need to set USARTDIV=8.6875 */
+ *USART_BRR = (8u << 4) | 11; /* mantissa and fraction (/16) */
+ /* TE: Transmitter enable */
+ *USART_CR1 |= (1u << 3); /* 1: Transmitter is enabled */
+
+ /* blink blink setup */
+ *RCC_AHB1ENR |= (1u << 2);