Skip to content
Snippets Groups Projects
Commit 37e87ffb authored by craig duffy's avatar craig duffy
Browse files

changed outbyte to __io_putchar

parent 509c30dc
No related branches found
No related tags found
No related merge requests found
......@@ -30,7 +30,7 @@ void COMPortInit( void );
/*
* Send a character to the COM port.
*/
extern int outbyte(int c);
extern int __io_putchar(int c);
/*
* Receive a character from the COM port.
......
......@@ -23,7 +23,7 @@
#include <stm32f10x_gpio.h>
#include <stm32f10x_usart.h>
int outbyte(int c) {
int __io_putchar(int c) {
/* Wait until ready to send */
while (USART_GetFlagStatus(USART2, USART_FLAG_TXE) == RESET)
......@@ -81,17 +81,17 @@ int main(void)
COMPortInit();
for ( i=0; i != 10; i++)
{
outbyte('h');
outbyte('e');
outbyte('l');
outbyte('l');
outbyte('o');
__io_putchar('h');
__io_putchar('e');
__io_putchar('l');
__io_putchar('l');
__io_putchar('o');
}
outbyte('\n');
outbyte('b');
outbyte('y');
outbyte('e');
__io_putchar('\n');
__io_putchar('b');
__io_putchar('y');
__io_putchar('e');
}
#ifdef USE_FULL_ASSERT
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment