diff options
author | Gregory Nutt <gnutt@nuttx.org> | 2014-01-24 13:59:24 -0600 |
---|---|---|
committer | Gregory Nutt <gnutt@nuttx.org> | 2014-01-24 13:59:24 -0600 |
commit | 2b4abec1eabbc0a2b8ea96c799ebd18da253c6c0 (patch) | |
tree | 3efd8e41f20b33606e46b8820a89510e6209d27c /nuttx/configs/sam4l-xplained/src | |
parent | ea439de0bb25f37ffc4004b6532bf53810511c3d (diff) | |
download | px4-nuttx-2b4abec1eabbc0a2b8ea96c799ebd18da253c6c0.tar.gz px4-nuttx-2b4abec1eabbc0a2b8ea96c799ebd18da253c6c0.tar.bz2 px4-nuttx-2b4abec1eabbc0a2b8ea96c799ebd18da253c6c0.zip |
Rename up_buttons() to board_buttons()
Diffstat (limited to 'nuttx/configs/sam4l-xplained/src')
-rw-r--r-- | nuttx/configs/sam4l-xplained/src/sam_buttons.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/nuttx/configs/sam4l-xplained/src/sam_buttons.c b/nuttx/configs/sam4l-xplained/src/sam_buttons.c index cbf237ef0..450c38a3e 100644 --- a/nuttx/configs/sam4l-xplained/src/sam_buttons.c +++ b/nuttx/configs/sam4l-xplained/src/sam_buttons.c @@ -77,7 +77,7 @@ static xcpt_t g_irqsw0; * * 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. * @@ -89,17 +89,17 @@ void board_button_initialize(void) } /************************************************************************************ - * Name: up_buttons + * Name: board_buttons * * Description: - * 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 + * 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* definitions above for the meaning of * each bit in the returned value. * ************************************************************************************/ -uint8_t up_buttons(void) +uint8_t board_buttons(void) { return sam_gpioread(GPIO_SW0) ? 0 : BUTTON_SW0_BIT; } |