Subversion Repositories Projects

Rev

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

Rev 426 Rev 434
Line 1... Line 1...
1
#include <avr/io.h>
1
#include <avr/io.h>
2
#include <avr/interrupt.h>
2
#include <avr/interrupt.h>
Line 3... Line 3...
3
 
3
 
4
#include "main.h"
4
#include "main.h"
-
 
5
#include "uart1.h"
5
#include "uart1.h"
6
#include "printf_P.h"
Line 6... Line 7...
6
#include "ubx.h"
7
#include "ubx.h"
7
 
8
 
8
 
9
 
9
/****************************************************************/
10
/****************************************************************/
10
/*              Initialization of the USART1                    */
11
/*              Initialization of the USART1                    */
-
 
12
/****************************************************************/
11
/****************************************************************/
13
void USART1_Init (void)
12
void USART1_Init (void)
14
{
13
{
15
        printf("\r\n UART1 init...");
Line 14... Line 16...
14
        // USART1 Control and Status Register A, B, C and baud rate register
16
        // USART1 Control and Status Register A, B, C and baud rate register
Line 68... Line 70...
68
        //UCSR1B |= (1 << UDRIE1);
70
        //UCSR1B |= (1 << UDRIE1);
Line 69... Line 71...
69
 
71
 
70
 
72
 
71
        // restore global interrupt flags
73
        // restore global interrupt flags
-
 
74
    SREG = sreg;
72
    SREG = sreg;
75
        sei();
Line 73... Line 76...
73
 
76
        printf("ok");
74
}
77
}
75
 
78