25 lines
355 B
C
25 lines
355 B
C
|
#ifndef __INC_BTN_H
|
||
|
#define __INC_BTN_H
|
||
|
|
||
|
|
||
|
#include <stdint.h>
|
||
|
|
||
|
|
||
|
#define SR_CLK 0
|
||
|
#define SR_DAT 1
|
||
|
#define SR_LAT 16
|
||
|
|
||
|
#define BTN_STICK_UP (1 << 14)
|
||
|
#define BTN_STICK_DN (1 << 11)
|
||
|
#define BTN_STICK_LF (1 << 12)
|
||
|
#define BTN_STICK_RT (1 << 15)
|
||
|
#define BTN_STICK_SEL (1 << 13)
|
||
|
|
||
|
#define BTN_READ0 17
|
||
|
#define BTN_READ1 18
|
||
|
|
||
|
|
||
|
uint16_t btn_read();
|
||
|
|
||
|
|
||
|
#endif
|