altos: Change default time type to 32-bits
[fw/altos] / src / attiny / ao_clock.c
index b40f59d4cc36711ce8744cd1632b14440ee23c25..2ac0500b217f307466fd8be143eae566969eac89 100644 (file)
@@ -3,7 +3,8 @@
  *
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
  *
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; version 2 of the License.
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
  *
  * This program is distributed in the hope that it will be useful, but
  * WITHOUT ANY WARRANTY; without even the implied warranty of
  *
  * This program is distributed in the hope that it will be useful, but
  * WITHOUT ANY WARRANTY; without even the implied warranty of
@@ -22,13 +23,12 @@ static volatile AO_TICK_TYPE        ao_wakeup_count;
 
 ISR(TIMER1_COMPA_vect)
 {
 
 ISR(TIMER1_COMPA_vect)
 {
-       PORTB ^= 2;
        ++ao_tick_count;
        if ((int16_t) (ao_tick_count - ao_wakeup_count) >= 0)
                ao_wakeup((void *) &ao_tick_count);
 }
 
        ++ao_tick_count;
        if ((int16_t) (ao_tick_count - ao_wakeup_count) >= 0)
                ao_wakeup((void *) &ao_tick_count);
 }
 
-uint16_t
+AO_TICK_TYPE
 ao_time(void)
 {
        uint16_t        r;
 ao_time(void)
 {
        uint16_t        r;