Rename up_buttons() to board_buttons()
This commit is contained in:
parent
ce6ceb9e80
commit
7bf1f353d6
@ -312,7 +312,7 @@ static void show_buttons(uint8_t oldset, uint8_t newset)
|
|||||||
#ifdef CONFIG_ARCH_IRQBUTTONS
|
#ifdef CONFIG_ARCH_IRQBUTTONS
|
||||||
static void button_handler(int id, int irq)
|
static void button_handler(int id, int irq)
|
||||||
{
|
{
|
||||||
uint8_t newset = up_buttons();
|
uint8_t newset = board_buttons();
|
||||||
|
|
||||||
lowsyslog("IRQ:%d Button %d:%s SET:%02x:\n",
|
lowsyslog("IRQ:%d Button %d:%s SET:%02x:\n",
|
||||||
irq, id, g_buttoninfo[BUTTON_INDEX(id)].name, newset);
|
irq, id, g_buttoninfo[BUTTON_INDEX(id)].name, newset);
|
||||||
@ -448,7 +448,7 @@ int buttons_main(int argc, char *argv[])
|
|||||||
|
|
||||||
/* Poll button state */
|
/* Poll button state */
|
||||||
|
|
||||||
g_oldset = up_buttons();
|
g_oldset = board_buttons();
|
||||||
#ifdef CONFIG_NSH_BUILTIN_APPS
|
#ifdef CONFIG_NSH_BUILTIN_APPS
|
||||||
while (g_nbuttons < maxbuttons)
|
while (g_nbuttons < maxbuttons)
|
||||||
#else
|
#else
|
||||||
@ -457,7 +457,7 @@ int buttons_main(int argc, char *argv[])
|
|||||||
{
|
{
|
||||||
/* Get the set of pressed and release buttons. */
|
/* Get the set of pressed and release buttons. */
|
||||||
|
|
||||||
newset = up_buttons();
|
newset = board_buttons();
|
||||||
|
|
||||||
/* Any changes from the last sample? */
|
/* Any changes from the last sample? */
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user