Skip to content

Commit 4abaf7a

Browse files
committed
♻️ update function names
1 parent 1f0f93e commit 4abaf7a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

uart-polling/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
TARGET := blink
1+
TARGET := uart
22
# debug build?Release
33
BUILD_TYPE = Debug
44
BUILD_DIR:= build

uart-polling/src/uart.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ void USART1_puts(const char *ch)
1414
{
1515
while (*ch)
1616
{
17-
putch(*ch);
17+
USART1_putc(*ch);
1818
ch++;
1919
}
2020
}
@@ -24,6 +24,6 @@ void USART1_IRQHandler(void)
2424
if (USART1->SR & USART_SR_RXNE)
2525
{
2626
// this clears RXNE flag
27-
putch(USART1->DR & 0xff);
27+
USART1_putc(USART1->DR & 0xff);
2828
}
2929
}

0 commit comments

Comments
 (0)