From f871e491959a4f5b8fc0c6cb1ccc2b95626c1b8c Mon Sep 17 00:00:00 2001 From: Sami Liedes Date: Mon, 28 Feb 2011 21:27:29 +0200 Subject: [PATCH] misc: Fixes various typos Author: Sami Liedes Signed-off-by: Michel Pollet --- simavr/sim/avr_timer.c | 2 +- simavr/sim/avr_uart.h | 12 ++++++------ simavr/sim/sim_avr.c | 2 +- simavr/sim/sim_irq.h | 2 +- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/simavr/sim/avr_timer.c b/simavr/sim/avr_timer.c index 8bdb7cf..667667e 100644 --- a/simavr/sim/avr_timer.c +++ b/simavr/sim/avr_timer.c @@ -287,7 +287,7 @@ static void avr_timer_write_ocr(struct avr_t * avr, avr_io_addr_t addr, uint8_t avr_raise_irq(p->io.irq + TIMER_IRQ_OUT_PWM1, _timer_get_ocr(p, AVR_TIMER_COMPB)); break; default: - printf("%s-%c mode %d UNSUPORTED\n", __FUNCTION__, p->name, p->mode.kind); + printf("%s-%c mode %d UNSUPPORTED\n", __FUNCTION__, p->name, p->mode.kind); avr_timer_reconfigure(p); break; } diff --git a/simavr/sim/avr_uart.h b/simavr/sim/avr_uart.h index 1d8c725..4764e72 100644 --- a/simavr/sim/avr_uart.h +++ b/simavr/sim/avr_uart.h @@ -35,9 +35,9 @@ DECLARE_FIFO(uint8_t, uart_fifo, 64); * * The slightly more tricky one is the INPUT part. Since the AVR is quite a bit * slower than your code most likely, there is a way for the AVR UART to tell - * you to "pause" sending it bytes when it's own input buffer is full. - * So, the UART will send XON to you when it's fifo is empty, XON means you can - * send as many bytes as you have until XOFF is send. Note that these are two + * you to "pause" sending it bytes when its own input buffer is full. + * So, the UART will send XON to you when its fifo is empty, XON means you can + * send as many bytes as you have until XOFF is sent. Note that these are two * IRQs because you /will/ be called with XOFF when sending a byte in INPUT... * So it's a reentrant process. * @@ -50,13 +50,13 @@ DECLARE_FIFO(uint8_t, uart_fifo, 64); * volatile int off = 0; * void irq_xon() * { - * off = 0; - * while (!off && bytes_lefts) + * off = 0; + * while (!off && bytes_left) * avr_raise_irq(UART_IRQ_INPUT, a_byte); * } * void irq_xoff() * { - * off = 1; + * off = 1; * } * */ diff --git a/simavr/sim/sim_avr.c b/simavr/sim/sim_avr.c index b00cfc7..9ea353e 100644 --- a/simavr/sim/sim_avr.c +++ b/simavr/sim/sim_avr.c @@ -198,7 +198,7 @@ void avr_callback_run_gdb(avr_t * avr) avr->pending_wait++; avr->i_shadow = avr->sreg[S_I]; - // run the cycle timers, get the suggested sleeo time + // run the cycle timers, get the suggested sleep time // until the next timer is due avr_cycle_count_t sleep = avr_cycle_timer_process(avr); diff --git a/simavr/sim/sim_irq.h b/simavr/sim/sim_irq.h index 6f4be93..15faaae 100644 --- a/simavr/sim/sim_irq.h +++ b/simavr/sim/sim_irq.h @@ -31,7 +31,7 @@ extern "C" { /* * Internal IRQ system * - * This subsystem allow any piece of code to "register" a hook to be called when an IRQ is + * This subsystem allows any piece of code to "register" a hook to be called when an IRQ is * raised. The IRQ definition is up to the module defining it, for example a IOPORT pin change * might be an IRQ in which case any piece of code can be notified when a pin has changed state * -- 2.39.5