Rev 886 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
886 | killagreg | 1 | #ifndef _UART1_H |
2 | #define _UART1_H |
||
3 | |||
4 | #define USART1_BAUD 57600 |
||
5 | |||
6 | /* |
||
7 | Initialize the USART und activate the receiver and transmitter |
||
8 | as well as the receive-interrupt. The IO-FIFOs are initialized. |
||
9 | The global interrupt-enable-flag (I-Bit in SREG) is not changed |
||
10 | */ |
||
11 | extern void USART1_Init (void); |
||
12 | |||
13 | /* |
||
14 | The character c is stored in the output buffer. If the character was pushed sucessfully to |
||
15 | the output buffer then the return value is 1. In case of an output buffer overflow the return value is 0. |
||
16 | The isr is activated, which will send the data from the outbut buffer to the UART. |
||
17 | */ |
||
18 | extern int USART1_putc (const uint8_t c); |
||
19 | |||
20 | /* |
||
21 | extern uint8_t USART1_getc_wait(void); |
||
22 | extern int16_t USART1_getc_nowait(void); |
||
23 | */ |
||
24 | |||
25 | #endif //_UART1_H |