|
libpynq
(release 5EID0-2023 version 0.3.0 of 2024-04-25 09:42 )
|
#include <buttons.h>#include <gpio.h>#include <log.h>#include <pinmap.h>#include <platform.h>#include <stdbool.h>#include <stdio.h>#include <stdlib.h>#include <sys/time.h>#include <unistd.h>
Go to the source code of this file.
Macros | |
| #define | LOG_DOMAIN "buttons" |
Functions | |
| void | buttons_init (void) |
| void | buttons_destroy (void) |
| void | switches_init (void) |
| void | switches_destroy (void) |
| int | get_button_state (const int button) |
| int | wait_until_button_state (const int button, const int state) |
| int | sleep_msec_button_pushed (const int button, const int ms) |
| void | sleep_msec_buttons_pushed (int button_states[], const int ms) |
| int | wait_until_button_pushed (const int button) |
| int | wait_until_button_released (const int button) |
| int | wait_until_any_button_pushed (void) |
| int | wait_until_any_button_released (void) |
| int | get_switch_state (const int switch_num) |