We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1f0f93e commit 4abaf7aCopy full SHA for 4abaf7a
uart-polling/Makefile
@@ -1,4 +1,4 @@
1
-TARGET := blink
+TARGET := uart
2
# debug build?Release
3
BUILD_TYPE = Debug
4
BUILD_DIR:= build
uart-polling/src/uart.c
@@ -14,7 +14,7 @@ void USART1_puts(const char *ch)
14
{
15
while (*ch)
16
17
- putch(*ch);
+ USART1_putc(*ch);
18
ch++;
19
}
20
@@ -24,6 +24,6 @@ void USART1_IRQHandler(void)
24
if (USART1->SR & USART_SR_RXNE)
25
26
// this clears RXNE flag
27
- putch(USART1->DR & 0xff);
+ USART1_putc(USART1->DR & 0xff);
28
29
0 commit comments