/* 
 * File:   buttons.h
 * Author: User
 *
 * Created on 11 December 2015, 10:47 AM
 */

#ifndef BUTTONS_H
#define	BUTTONS_H

#ifdef	__cplusplus
extern "C" {
#endif

#define BUTTON_DEBOUNCE_TIME 2
#define LONG_BUTTON_TIME     61

extern unsigned char lbutton_short_press, lbutton_long_press, rbutton_short_press, rbutton_long_press, bbutton_short_press, bbutton_long_press, bbutton_shortlong_press_lr, bbutton_shortlong_press_rl;

__attribute__((mips16)) void buttons_init();
__attribute__((mips16)) void buttons_teardown();
__attribute__((mips16)) void buttons_handle_presses();

#ifdef	__cplusplus
}
#endif

#endif	/* BUTTONS_H */

