From 941c7a9b7812b38f04d88a76640bb3df8e0482ab Mon Sep 17 00:00:00 2001 From: Sami Liedes Date: Wed, 2 Feb 2011 19:20:31 +0200 Subject: [PATCH] fix typos in comments. Signed-off-by: Sami Liedes --- simavr/sim/avr_timer.c | 1 + simavr/sim/avr_timer.h | 2 +- simavr/sim/sim_interrupts.c | 2 +- simavr/sim/sim_io.h | 2 +- 4 files changed, 4 insertions(+), 3 deletions(-) diff --git a/simavr/sim/avr_timer.c b/simavr/sim/avr_timer.c index fdcb8e1..2cf9344 100644 --- a/simavr/sim/avr_timer.c +++ b/simavr/sim/avr_timer.c @@ -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; diff --git a/simavr/sim/avr_timer.h b/simavr/sim/avr_timer.h index 755531e..a159138 100644 --- a/simavr/sim/avr_timer.h +++ b/simavr/sim/avr_timer.h @@ -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; diff --git a/simavr/sim/sim_interrupts.c b/simavr/sim/sim_interrupts.c index 4702e56..e4a2683 100644 --- a/simavr/sim/sim_interrupts.c +++ b/simavr/sim/sim_interrupts.c @@ -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) diff --git a/simavr/sim/sim_io.h b/simavr/sim/sim_io.h index c3f01e5..ecb1bd4 100644 --- a/simavr/sim/sim_io.h +++ b/simavr/sim/sim_io.h @@ -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, -- 2.39.5