fix typos in comments.
authorSami Liedes <sliedes@cc.hut.fi>
Wed, 2 Feb 2011 17:20:31 +0000 (19:20 +0200)
committerMichel Pollet <buserror@gmail.com>
Wed, 23 Feb 2011 11:14:44 +0000 (11:14 +0000)
Signed-off-by: Sami Liedes <sliedes@cc.hut.fi>
simavr/sim/avr_timer.c
simavr/sim/avr_timer.h
simavr/sim/sim_interrupts.c
simavr/sim/sim_io.h

index fdcb8e1..2cf9344 100644 (file)
@@ -94,6 +94,7 @@ static avr_cycle_count_t avr_timer_compc(struct avr_t * avr, avr_cycle_count_t w
        return avr_timer_comp((avr_timer_t*)param, when, AVR_TIMER_COMPC);
 }
 
+// timer overflow
 static avr_cycle_count_t avr_timer_tov(struct avr_t * avr, avr_cycle_count_t when, void * param)
 {
        avr_timer_t * p = (avr_timer_t *)param;
index 755531e..a159138 100644 (file)
@@ -112,7 +112,7 @@ typedef struct avr_timer_t {
 
        avr_timer_wgm_t mode;
        uint64_t                tov_cycles;
-       uint64_t                tov_base;       // we we last were called
+       uint64_t                tov_base;       // when we last were called
        uint16_t                tov_top;        // current top value to calculate tnct
 } avr_timer_t;
 
index 4702e56..e4a2683 100644 (file)
@@ -116,7 +116,7 @@ avr_irq_t * avr_get_interupt_irq(avr_t * avr, uint8_t v)
 }
 
 /*
- * check wether interrupts are pending. I so, check if the interrupt "latency" is reached,
+ * check whether interrupts are pending. If so, check if the interrupt "latency" is reached,
  * and if so triggers the handlers and jump to the vector.
  */
 void avr_service_interrupts(avr_t * avr)
index c3f01e5..ecb1bd4 100644 (file)
@@ -64,7 +64,7 @@ typedef struct avr_io_t {
 
 // registers an IO module, so it's run(), reset() etc are called
 // this is called by the AVR core init functions, you /could/ register an external
-// one after instanciation, for whatever purpose...
+// one after instantiation, for whatever purpose...
 void
 avr_register_io(
                avr_t *avr,