From cf6414cc337150d539145c8cdb86846884e66a6c Mon Sep 17 00:00:00 2001 From: Marti Bolivar Date: Mon, 23 May 2011 10:18:13 -0400 Subject: Moving Doxygen comments from declarations to definitions. --- libmaple/bkp.c | 2 +- libmaple/bkp.h | 1 - libmaple/dac.c | 1 + libmaple/dac.h | 1 - libmaple/gpio.c | 7 +++++++ libmaple/gpio.h | 7 ------- 6 files changed, 9 insertions(+), 10 deletions(-) (limited to 'libmaple') diff --git a/libmaple/bkp.c b/libmaple/bkp.c index aaccb1f..00a2833 100644 --- a/libmaple/bkp.c +++ b/libmaple/bkp.c @@ -34,7 +34,7 @@ static inline __io uint32* data_register(uint8 reg); bkp_dev bkp = { .regs = BKP_BASE, }; - +/** Backup device. */ const bkp_dev *BKP = &bkp; /** diff --git a/libmaple/bkp.h b/libmaple/bkp.h index e8b82e9..9994743 100644 --- a/libmaple/bkp.h +++ b/libmaple/bkp.h @@ -106,7 +106,6 @@ typedef struct bkp_dev { bkp_reg_map *regs; /**< Register map */ } bkp_dev; -/** Backup device. */ extern const bkp_dev *BKP; /* diff --git a/libmaple/dac.c b/libmaple/dac.c index 1726d19..8b143c8 100644 --- a/libmaple/dac.c +++ b/libmaple/dac.c @@ -35,6 +35,7 @@ dac_dev dac = { .regs = DAC_BASE, }; +/** DAC device. */ const dac_dev *DAC = &dac; /** diff --git a/libmaple/dac.h b/libmaple/dac.h index cf4fe85..05914a4 100644 --- a/libmaple/dac.h +++ b/libmaple/dac.h @@ -80,7 +80,6 @@ typedef struct dac_dev { dac_reg_map *regs; /**< Register map */ } dac_dev; -/** DAC device. */ extern const dac_dev *DAC; /* diff --git a/libmaple/gpio.c b/libmaple/gpio.c index 2c58cc2..18bd791 100644 --- a/libmaple/gpio.c +++ b/libmaple/gpio.c @@ -38,6 +38,7 @@ gpio_dev gpioa = { .clk_id = RCC_GPIOA, .exti_port = AFIO_EXTI_PA, }; +/** GPIO port A device. */ gpio_dev* const GPIOA = &gpioa; gpio_dev gpiob = { @@ -45,6 +46,7 @@ gpio_dev gpiob = { .clk_id = RCC_GPIOB, .exti_port = AFIO_EXTI_PB, }; +/** GPIO port B device. */ gpio_dev* const GPIOB = &gpiob; gpio_dev gpioc = { @@ -52,6 +54,7 @@ gpio_dev gpioc = { .clk_id = RCC_GPIOC, .exti_port = AFIO_EXTI_PC, }; +/** GPIO port C device. */ gpio_dev* const GPIOC = &gpioc; gpio_dev gpiod = { @@ -59,6 +62,7 @@ gpio_dev gpiod = { .clk_id = RCC_GPIOD, .exti_port = AFIO_EXTI_PD, }; +/** GPIO port D device. */ gpio_dev* const GPIOD = &gpiod; #ifdef STM32_HIGH_DENSITY @@ -67,6 +71,7 @@ gpio_dev gpioe = { .clk_id = RCC_GPIOE, .exti_port = AFIO_EXTI_PE, }; +/** GPIO port E device. */ gpio_dev* const GPIOE = &gpioe; gpio_dev gpiof = { @@ -74,6 +79,7 @@ gpio_dev gpiof = { .clk_id = RCC_GPIOF, .exti_port = AFIO_EXTI_PF, }; +/** GPIO port F device. */ gpio_dev* const GPIOF = &gpiof; gpio_dev gpiog = { @@ -81,6 +87,7 @@ gpio_dev gpiog = { .clk_id = RCC_GPIOG, .exti_port = AFIO_EXTI_PG, }; +/** GPIO port G device. */ gpio_dev* const GPIOG = &gpiog; #endif diff --git a/libmaple/gpio.h b/libmaple/gpio.h index 9e09289..7e670e6 100644 --- a/libmaple/gpio.h +++ b/libmaple/gpio.h @@ -82,26 +82,19 @@ typedef struct gpio_dev { } gpio_dev; extern gpio_dev gpioa; -/** GPIO port A device. */ extern gpio_dev* const GPIOA; extern gpio_dev gpiob; -/** GPIO port B device. */ extern gpio_dev* const GPIOB; extern gpio_dev gpioc; -/** GPIO port C device. */ extern gpio_dev* const GPIOC; extern gpio_dev gpiod; -/** GPIO port D device. */ extern gpio_dev* const GPIOD; #ifdef STM32_HIGH_DENSITY extern gpio_dev gpioe; -/** GPIO port E device. */ extern gpio_dev* const GPIOE; extern gpio_dev gpiof; -/** GPIO port F device. */ extern gpio_dev* const GPIOF; extern gpio_dev gpiog; -/** GPIO port G device. */ extern gpio_dev* const GPIOG; #endif -- cgit v1.2.3