Subversion Repositories FlightCtrl

Rev

Rev 1179 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1179 Rev 1199
Line 1... Line 1...
1
#ifndef _UART1_H
1
#ifndef _UART1_H
2
#define _UART1_H
2
#define _UART1_H
Line 3... Line -...
3
 
-
 
Line 4... Line -...
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
3
 
Line 10... Line -...
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
/*
-
 
Line 21... Line 4...
21
extern uint8_t USART1_getc_wait(void);
4