Rename up_buttons() to board_buttons()

This commit is contained in:
Gregory Nutt
2014-01-24 13:59:24 -06:00
parent e5bfdcf36c
commit f4d84ecd7e
39 changed files with 216 additions and 216 deletions
+7 -7
View File
@@ -1,5 +1,5 @@
/****************************************************************************
* configs/spark/src/up_buttons.c
* configs/spark/src/board_buttons.c
*
* Copyright (C) 2011-2014 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <gnutt@nuttx.org>
@@ -69,7 +69,7 @@
*
* Description:
* board_button_initialize() must be called to initialize button resources. After
* that, up_buttons() may be called to collect the current state of all
* that, board_buttons() may be called to collect the current state of all
* buttons or up_irqbutton() may be called to register button interrupt
* handlers.
*
@@ -85,12 +85,12 @@ void board_button_initialize(void)
}
/****************************************************************************
* Name: up_buttons
* Name: board_buttons
*
* N.B The return state in true logic, the button polarity is dealt here in
****************************************************************************/
uint8_t up_buttons(void)
uint8_t board_buttons(void)
{
return stm32_gpioread(GPIO_BTN)==0 ? BUTTON_USER_BIT : 0;
}
@@ -100,12 +100,12 @@ uint8_t up_buttons(void)
*
* Description:
* board_button_initialize() must be called to initialize button resources. After
* that, up_buttons() may be called to collect the current state of all
* that, board_buttons() may be called to collect the current state of all
* buttons or up_irqbutton() may be called to register button interrupt
* handlers.
*
* 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
* After board_button_initialize() has been called, board_buttons() may be called to
* collect the state of all buttons. board_buttons() returns an 8-bit bit set
* with each bit associated with a button. See the BUTTON_*_BIT
* definitions in board.h for the meaning of each bit.
*