/*1* Copyright (c) 2018 naehrwert2* Copyright (c) 2018-2022 CTCaer3*4* This program is free software; you can redistribute it and/or modify it5* under the terms and conditions of the GNU General Public License,6* version 2, as published by the Free Software Foundation.7*8* This program is distributed in the hope it will be useful, but WITHOUT9* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or10* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for11* more details.12*13* You should have received a copy of the GNU General Public License14* along with this program. If not, see <http://www.gnu.org/licenses/>.15*/1617#ifndef _BTN_H_18#define _BTN_H_1920#include <utils/types.h>2122#define BTN_POWER BIT(0)23#define BTN_VOL_DOWN BIT(1)24#define BTN_VOL_UP BIT(2)25#define BTN_HOME BIT(3)26#define BTN_SINGLE BIT(7)2728u8 btn_read();29u8 btn_read_vol();30u8 btn_read_home();31u8 btn_wait();32u8 btn_wait_timeout(u32 time_ms, u8 mask);33u8 btn_wait_timeout_single(u32 time_ms, u8 mask);3435#endif363738