From 81b7780f2e65802238cc8e4c527848aefa63bb9e Mon Sep 17 00:00:00 2001 From: Nathael Pajani Date: Wed, 26 Aug 2015 00:50:59 +0200 Subject: [PATCH] Comments typo fixes --- README | 2 +- core/system.c | 2 +- drivers/rtc.c | 2 +- drivers/serial.c | 2 +- include/core/lpc_regs_12xx.h | 2 +- include/drivers/rtc.h | 3 ++- 6 files changed, 7 insertions(+), 6 deletions(-) diff --git a/README b/README index d940868..17c02f1 100644 --- a/README +++ b/README @@ -67,7 +67,6 @@ SUPPORTED FEATURES and INTERFACES - clock / PLL config - systick - precise msleep and usleep functions (using systick) - - counter / timers - pio configuration - Simple C Library @@ -81,6 +80,7 @@ SUPPORTED FEATURES and INTERFACES - ADC - GPIO - GPIO interrupts + - Counter / Timers - SPI (SSP) - PWM - RTC (partial) diff --git a/core/system.c b/core/system.c index 59d69de..d63fef1 100644 --- a/core/system.c +++ b/core/system.c @@ -123,7 +123,7 @@ void system_set_default_power_state(void) } /* Enter deep sleep. - * NOTE : entering deep sleep implies a lot of side effects. I'll try to lost them all here + * NOTE : entering deep sleep implies a lot of side effects. I'll try to list them all here * so this can be done right. * * Note : see remark about RTC and deep sleep in section 5.3.3 of UM10441 diff --git a/drivers/rtc.c b/drivers/rtc.c index 9c5b089..747bd57 100644 --- a/drivers/rtc.c +++ b/drivers/rtc.c @@ -39,7 +39,7 @@ static uint8_t periodic_match = 0; /***************************************************************************** */ /* Return the number of RTC ticks from system power on. * This count is from power being present, even if resets occured. - * The calls maded during the first three seconds after RTC timer start will return 0. + * The calls made during the first three seconds after RTC timer start will return 0. */ uint32_t rtc_get_count(void) { diff --git a/drivers/serial.c b/drivers/serial.c index 27735a1..b38bca9 100644 --- a/drivers/serial.c +++ b/drivers/serial.c @@ -240,7 +240,7 @@ static struct uart_clk_cfg uart_clk_table[] = { /* UART Clock Setup */ /* Note : for both uarts we use full peripheral clock. - * With a minimum main clock of 12MHz, ths gives 12MHz/16 = 750kbauds at least + * With a minimum main clock of 12MHz, this gives 12MHz/16 = 750kbauds at least * for UARTs baudrates. * Note : IRQ are off, whether called by system update or by UART on helper */ diff --git a/include/core/lpc_regs_12xx.h b/include/core/lpc_regs_12xx.h index 5393bba..90e7cf9 100644 --- a/include/core/lpc_regs_12xx.h +++ b/include/core/lpc_regs_12xx.h @@ -636,7 +636,7 @@ struct lpc_ssp volatile uint32_t raw_int_status; /* 0x018 : Raw Interrupt Status Register (R/-) */ volatile uint32_t masked_int_status; /* 0x01C : Masked Interrupt Status Register (R/-) */ volatile uint32_t int_clear; /* 0x020 : SSPICR Interrupt Clear Register (-/W) */ - volatile uint32_t dma_ctrl;; /* 0x024 : DMA Control Register (R/W) */ + volatile uint32_t dma_ctrl; /* 0x024 : DMA Control Register (R/W) */ }; #define LPC_SSP0 ((struct lpc_ssp *) LPC_SSP0_BASE) diff --git a/include/drivers/rtc.h b/include/drivers/rtc.h index 4540184..0448f01 100644 --- a/include/drivers/rtc.h +++ b/include/drivers/rtc.h @@ -27,7 +27,8 @@ /* Return the number of RTC ticks from system power on. * This count is from power being present, even if resets occured. - * The calls maded during the first three seconds after RTC timer start will return 0. + * The calls made during the first three seconds after RTC timer start will return 0. (See + * UM10441 section 16.6.1) */ uint32_t rtc_get_count(void); -- 2.43.0