From ea439de0bb25f37ffc4004b6532bf53810511c3d Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Fri, 24 Jan 2014 13:50:23 -0600 Subject: Rename up_buttoninit to board_button_intialize --- nuttx/configs/stm32f100rc_generic/src/up_buttons.c | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'nuttx/configs/stm32f100rc_generic/src/up_buttons.c') diff --git a/nuttx/configs/stm32f100rc_generic/src/up_buttons.c b/nuttx/configs/stm32f100rc_generic/src/up_buttons.c index 7200d9ce8..2442e38b4 100644 --- a/nuttx/configs/stm32f100rc_generic/src/up_buttons.c +++ b/nuttx/configs/stm32f100rc_generic/src/up_buttons.c @@ -1,7 +1,7 @@ /**************************************************************************** * configs/stm32f100rc_generic/src/up_buttons.c * - * Copyright (C) 2012 Gregory Nutt. All rights reserved. + * Copyright (C) 2012, 2014 Gregory Nutt. All rights reserved. * Author: Gregory Nutt * Freddie Chopin * @@ -42,7 +42,9 @@ #include +#include #include + #include "stm32f100rc_internal.h" #ifdef CONFIG_ARCH_BUTTONS @@ -52,17 +54,17 @@ ****************************************************************************/ /**************************************************************************** - * Name: up_buttoninit + * Name: board_button_initialize * * Description: - * up_buttoninit() must be called to initialize button resources. After + * board_button_initialize() must be called to initialize button resources. After * that, up_buttons() may be called to collect the current state of all * buttons or up_irqbutton() may be called to register button interrupt * handlers. * ****************************************************************************/ -void up_buttoninit(void) +void board_button_initialize(void) { stm32_configgpio(GPIO_BTN_0); /* Configure the GPIO pins as inputs. */ } @@ -84,12 +86,12 @@ uint8_t up_buttons(void) * Button support. * * Description: - * up_buttoninit() must be called to initialize button resources. After + * board_button_initialize() must be called to initialize button resources. After * that, up_buttons() may be called to collect the current state of all * buttons or up_irqbutton() may be called to register button interrupt * handlers. * - * After up_buttoninit() has been called, up_buttons() may be called to + * After board_button_initialize() has been called, up_buttons() may be called to * collect the state of all buttons. up_buttons() returns an 8-bit bit set * with each bit associated with a button. See the BUTTON_*_BIT and JOYSTICK_*_BIT * definitions in board.h for the meaning of each bit. -- cgit v1.2.3