예제 #1
0
파일: retarget.c 프로젝트: Wiznet/W7500P
__attribute__ ((used))  int _write (int fd, char *ptr, int len)
{
  size_t i;
  for (i=0; i<len;i++) {
    UART_SEND_BYTE(ptr[i]); // call character output function
    }
  return len;
}
예제 #2
0
void uart_send_int(int str, UART_TypeDef *UART)
{
	int i;
	for(i=0;i<4;i++)
	{
        while(UART_FIFO_TX_FULL(UART) == 1);
		UART_SEND_BYTE(str, UART);
		str = str >> 8;
	}
}
예제 #3
0
void uart_send_char(unsigned char byte, UART_TypeDef *UART)
{
        while(UART_FIFO_TX_FULL(UART) == 1);
		UART_SEND_BYTE(byte, UART);
}
예제 #4
0
파일: retarget.c 프로젝트: Wiznet/W7500P
void _ttywrch(int ch) {
    UART_SEND_BYTE(ch);
}
예제 #5
0
파일: retarget.c 프로젝트: Wiznet/W7500P
int fgetc(FILE *f) {
    return (UART_SEND_BYTE(UART_RECV_BYTE()));
}
예제 #6
0
파일: retarget.c 프로젝트: Wiznet/W7500P
int fputc(int ch, FILE *f) {
    return (UART_SEND_BYTE(ch));
}
예제 #7
0
파일: retarget.c 프로젝트: Wiznet/W7500P
int getchar(void)
{
    return (UART_SEND_BYTE(UART_RECV_BYTE()));
}
예제 #8
0
파일: retarget.c 프로젝트: Wiznet/W7500P
int putchar(int ch)
{
    return (UART_SEND_BYTE(ch));
}