161,14 → 161,14 |
{ |
case USART__MODE__ASYNCHRONOUS: |
{ |
BIT__RESET(UCSR0C, UMSEL01); |
BIT__RESET(UCSR0C, UMSEL00); |
BIT__RST(UCSR0C, UMSEL01); |
BIT__RST(UCSR0C, UMSEL00); |
} |
break; |
|
case USART__MODE__SYNCHRONOUS: |
{ |
BIT__RESET(UCSR0C, UMSEL01); |
BIT__RST(UCSR0C, UMSEL01); |
BIT__SET(UCSR0C, UMSEL00); |
} |
break; |
204,16 → 204,16 |
{ |
case USART__DATA_SIZE__5_BITS: |
{ |
BIT__RESET(UCSR0B, UCSZ02); |
BIT__RESET(UCSR0C, UCSZ01); |
BIT__RESET(UCSR0C, UCSZ00); |
BIT__RST(UCSR0B, UCSZ02); |
BIT__RST(UCSR0C, UCSZ01); |
BIT__RST(UCSR0C, UCSZ00); |
} |
break; |
|
case USART__DATA_SIZE__6_BITS: |
{ |
BIT__RESET(UCSR0B, UCSZ02); |
BIT__RESET(UCSR0C, UCSZ01); |
BIT__RST(UCSR0B, UCSZ02); |
BIT__RST(UCSR0C, UCSZ01); |
BIT__SET(UCSR0C, UCSZ00); |
} |
break; |
220,15 → 220,15 |
|
case USART__DATA_SIZE__7_BITS: |
{ |
BIT__RESET(UCSR0B, UCSZ02); |
BIT__RST(UCSR0B, UCSZ02); |
BIT__SET(UCSR0C, UCSZ01); |
BIT__RESET(UCSR0C, UCSZ00); |
BIT__RST(UCSR0C, UCSZ00); |
} |
break; |
|
case USART__DATA_SIZE__8_BITS: |
{ |
BIT__RESET(UCSR0B, UCSZ02); |
BIT__RST(UCSR0B, UCSZ02); |
BIT__SET(UCSR0C, UCSZ01); |
BIT__SET(UCSR0C, UCSZ00); |
} |
263,7 → 263,7 |
|
if (USART__STOP_SIZE__1_BIT == stop_size) |
{ |
BIT__RESET(UCSR0C, USBS0); |
BIT__RST(UCSR0C, USBS0); |
} |
else |
{ |
289,8 → 289,8 |
{ |
case USART__PARITY__DISABLED: |
{ |
BIT__RESET(UCSR0C, UPM01); |
BIT__RESET(UCSR0C, UPM00); |
BIT__RST(UCSR0C, UPM01); |
BIT__RST(UCSR0C, UPM00); |
} |
break; |
|
297,7 → 297,7 |
case USART__PARITY__EVEN: |
{ |
BIT__SET(UCSR0C, UPM01); |
BIT__RESET(UCSR0C, UPM00); |
BIT__RST(UCSR0C, UPM00); |
} |
break; |
|
333,7 → 333,7 |
} |
else |
{ |
BIT__RESET(UCSR0A, U2X0); |
BIT__RST(UCSR0A, U2X0); |
} |
} |
|
360,7 → 360,7 |
( |
void |
){ |
BIT__RESET(UCSR0B, RXEN0); |
BIT__RST(UCSR0B, RXEN0); |
} |
|
/**************************************************************************//** |
386,7 → 386,7 |
( |
void |
){ |
BIT__RESET(UCSR0B, TXEN0); |
BIT__RST(UCSR0B, TXEN0); |
} |
|
/**************************************************************************//** |
489,7 → 489,7 |
( |
void |
){ |
BIT__RESET(UCSR0B, RXCIE0); |
BIT__RST(UCSR0B, RXCIE0); |
sei(); |
} |
|
537,7 → 537,7 |
( |
void |
){ |
BIT__RESET(UCSR0B, TXCIE0); |
BIT__RST(UCSR0B, TXCIE0); |
sei(); |
} |
|
584,7 → 584,7 |
( |
void |
){ |
BIT__RESET(UCSR0B, UDRIE0); |
BIT__RST(UCSR0B, UDRIE0); |
sei(); |
} |
|