- clock / PLL config
- systick
- precise msleep and usleep functions (using systick)
- - counter / timers
- pio configuration
- Simple C Library
- ADC
- GPIO
- GPIO interrupts
+ - Counter / Timers
- SPI (SSP)
- PWM
- RTC (partial)
}
/* 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
/***************************************************************************** */
/* 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)
{
/* 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
*/
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)
/* 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);