Subversion Repositories idreammicro-avr

Compare Revisions

Regard whitespace Rev 14 → Rev 15

/trunk/libraries/usart/src/usart0_m128.c
157,7 → 157,7
{
case USART__MODE__ASYNCHRONOUS:
{
BIT__RESET(UCSR0C, UMSEL0);
BIT__RST(UCSR0C, UMSEL0);
}
break;
 
192,16 → 192,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;
208,15 → 208,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);
}
251,7 → 251,7
 
if (USART__STOP_SIZE__1_BIT == stop_size)
{
BIT__RESET(UCSR0C, USBS0);
BIT__RST(UCSR0C, USBS0);
}
else
{
277,8 → 277,8
{
case USART__PARITY__DISABLED:
{
BIT__RESET(UCSR0C, UPM01);
BIT__RESET(UCSR0C, UPM00);
BIT__RST(UCSR0C, UPM01);
BIT__RST(UCSR0C, UPM00);
}
break;
 
285,7 → 285,7
case USART__PARITY__EVEN:
{
BIT__SET(UCSR0C, UPM01);
BIT__RESET(UCSR0C, UPM00);
BIT__RST(UCSR0C, UPM00);
}
break;
 
321,7 → 321,7
}
else
{
BIT__RESET(UCSR0A, U2X0);
BIT__RST(UCSR0A, U2X0);
}
}
 
348,7 → 348,7
(
void
){
BIT__RESET(UCSR0B, RXEN0);
BIT__RST(UCSR0B, RXEN0);
}
 
/**************************************************************************//**
374,7 → 374,7
(
void
){
BIT__RESET(UCSR0B, TXEN0);
BIT__RST(UCSR0B, TXEN0);
}
 
/**************************************************************************//**
477,7 → 477,7
(
void
){
BIT__RESET(UCSR0B, RXCIE0);
BIT__RST(UCSR0B, RXCIE0);
sei();
}
 
520,7 → 520,7
(
void
){
BIT__RESET(UCSR0B, TXCIE0);
BIT__RST(UCSR0B, TXCIE0);
sei();
}
 
558,7 → 558,7
(
void
){
BIT__RESET(UCSR0B, UDRIE0);
BIT__RST(UCSR0B, UDRIE0);
sei();
}
 
/trunk/libraries/usart/src/usart0_m2560.c
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();
}