corrected examples

This commit is contained in:
Steffen Vogel 2011-07-13 00:42:27 +02:00
parent 131bf020d7
commit b3e415515e
6 changed files with 9 additions and 4 deletions

View file

@ -13,5 +13,5 @@ int main ( void ) {
res = bar & foo;
res = bar % foo;
while (1) { /* tue nichts */ }
return 0;
}

View file

@ -13,5 +13,5 @@ int main ( void ) {
PORTB = (uint8_t) result;
PORTC = (uint8_t) result >> 8;
while (1) { /* tue nichts */ }
return 0;
}

View file

@ -16,4 +16,6 @@ int main ( void ) {
}
a += b;
return 0;
}

View file

@ -9,8 +9,10 @@ int main ( void ) {
OCR0 = 123;
TIMSK |= (1 << OCIE0);
TIFR |= (1 << OCF0);
sei();
return 0;
}
ISR(TIMER0_COMP_vect) {

View file

@ -9,5 +9,5 @@ int main ( void ) {
foo--;
}
while (1) { /* tue nichts */ }
return 0;
}

View file

@ -26,4 +26,5 @@ int main ( void ) {
++str_p;
} while (*str_p);
return 0;
}