Subversion Repositories Projects

Rev

Rev 112 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 112 Rev 114
Line 17... Line 17...
17
 
17
 
18
void RS232_init (void)
18
void RS232_init (void)
19
{
19
{
20
        UCSRB = (1<<RXEN)|(1<<TXEN)|(1<<RXCIE);
20
        UCSRB = (1<<RXEN)|(1<<TXEN)|(1<<RXCIE);
21
//      UBRRL = 7;              // 57600 Baud @ 7,372800 MHz
21
//      UBRRL = 7;              // 57600 Baud @ 7,372800 MHz
-
 
22
//      UBRR = 7;               // 57600 Baud @ 7,372800 MHz
-
 
23
 
22
        UBRR = 7;               // 57600 Baud @ 7,372800 MHz
24
        UBRR=(F_CPU / (BAUD_RATE * 16L) - 1);
Line 23... Line 25...
23
}
25
}
24
 
26
 
25
uint8_t RS232_get (void)
27
uint8_t RS232_get (void)