You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
474 B
28 lines
474 B
/*
|
|
* Copyright (c) 2019, Erich Styger
|
|
*
|
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
*/
|
|
|
|
#ifndef BUTTONS_H_
|
|
#define BUTTONS_H_
|
|
|
|
#include <stdbool.h>
|
|
|
|
#define BTN_SW2 (1<<0) /* robot user button */
|
|
|
|
#define BTN_UP (1<<0)
|
|
#define BTN_DOWN (1<<1)
|
|
#define BTN_LEFT (1<<2)
|
|
#define BTN_RIGHT (1<<3)
|
|
#define BTN_CENTER (1<<4)
|
|
|
|
bool BTN_SW2ButtonIsPressed(void);
|
|
|
|
void BTN_EnablePullup(void);
|
|
|
|
void BTN_Deinit(void);
|
|
|
|
void BTN_Init(void);
|
|
|
|
#endif /* BUTTONS_H_ */
|
|
|