diff options
| author | Perry Hung <iperry@gmail.com> | 2011-02-27 03:07:31 -0500 | 
|---|---|---|
| committer | Perry Hung <iperry@gmail.com> | 2011-02-27 04:58:43 -0500 | 
| commit | def4173e683c3538388aabceeb08e5336c2bdadf (patch) | |
| tree | 54e2571fb12b31d6730eb1a1b33d09fc53e003a8 /libmaple/rcc.h | |
| parent | c8ca7a2eb7528462677c80497854b940931eab16 (diff) | |
| download | librambutan-def4173e683c3538388aabceeb08e5336c2bdadf.tar.gz librambutan-def4173e683c3538388aabceeb08e5336c2bdadf.zip | |
libmaple: Refactor ADC routines
ADC routines rewritten, support for ADC2, 3, added.
Signed-off-by: Marti Bolivar <mbolivar@leaflabs.com>
Diffstat (limited to 'libmaple/rcc.h')
| -rw-r--r-- | libmaple/rcc.h | 9 | 
1 files changed, 6 insertions, 3 deletions
| diff --git a/libmaple/rcc.h b/libmaple/rcc.h index 4b1f35d..5daca57 100644 --- a/libmaple/rcc.h +++ b/libmaple/rcc.h @@ -144,8 +144,10 @@ enum {      RCC_PRESCALER_ADC  }; -// RCC Devices -enum { +/* + * Identifies bus and clock line for a device + */ +typedef enum {      RCC_GPIOA,      RCC_GPIOB,      RCC_GPIOC, @@ -156,6 +158,7 @@ enum {      RCC_AFIO,      RCC_ADC1,      RCC_ADC2, +    RCC_ADC3,      RCC_USART1,      RCC_USART2,      RCC_USART3, @@ -175,7 +178,7 @@ enum {      RCC_DAC,         // High-density devices only (Maple Native)      RCC_DMA1,      RCC_DMA2,        // High-density devices only (Maple Native) -}; +} rcc_clk_id;  void rcc_clk_init(uint32 sysclk_src, uint32 pll_src, uint32 pll_mul); | 
