OpenCores
URL https://opencores.org/ocsvn/edge/edge/trunk

Subversion Repositories edge

[/] [edge/] [trunk/] [SW/] [Apps/] [uart.c] - Blame information for rev 2

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 2 heshamelma
#include "uart.h"
2
 
3
void uart_send_byte(char byte)
4
{
5
  char *uart_byte_reg = UART_REG_BYTE;
6
  char *uart_byte_ctrl = UART_REG_CTRL;
7
 
8
  char isReady;
9
 
10
  for( ; ; )
11
  {
12
    isReady = *uart_byte_ctrl & 0x1;
13
    if(isReady)
14
    {
15
      *uart_byte_reg = byte;
16
      break;
17
    }
18
  }
19
 
20
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.