Subversion Repositories HomeAutomation

Rev

Rev 73 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | SVN | RSS feed

Rev 73 Rev 127
Line 65... Line 65...
65
#define UART_OVERRUN_ERROR    0x0400              /* Overrun condition by UART   */
65
#define UART_OVERRUN_ERROR    0x0400              /* Overrun condition by UART   */
66
#define UART_BUFFER_OVERFLOW  0x0200              /* receive ringbuffer overflow */
66
#define UART_BUFFER_OVERFLOW  0x0200              /* receive ringbuffer overflow */
67
#define UART_NO_DATA          0x0100              /* no receive data available   */
67
#define UART_NO_DATA          0x0100              /* no receive data available   */
68
 
68
 
69
 
69
 
70
/*
-
 
71
** function prototypes
-
 
72
*/
-
 
73
 
70
 
74
void UartInit(void);
71
void Uart_Init(void);
75
 
72
 
76
/**
73
/**
77
   @brief   Initialize UART and set baudrate
74
   @brief   Initialize UART and set baudrate
78
   @param   baudrate Specify baudrate using macro UART_BAUD_SELECT()
75
   @param   baudrate Specify baudrate using macro UART_BAUD_SELECT()
79
   @return  none
76
   @return  none
80
*/
77
*/
81
extern void uart_init(unsigned int baudrate);
78
extern void Uart_InitHw(unsigned int baudrate);
82
 
79
 
83
 
80
 
84
/**
81
/**
85
 *  @brief   Get received byte from ringbuffer
82
 *  @brief   Get received byte from ringbuffer
86
 *
83
 *