upiwin/src/gpio.h

20 lines
434 B
C
Raw Normal View History

2019-11-29 02:05:30 -07:00
#ifndef __GPIO_H_INCLUDED
#define __GPIO_H_INCLUDED
#include "wintype.h"
2019-12-01 15:43:05 -07:00
#define GPIO_BUTTON_COUNT 4
2019-12-01 14:34:57 -07:00
2019-12-01 15:43:05 -07:00
#define GRB_STATE_BUTTON1 (1 << 0)
#define GRB_STATE_BUTTON2 (1 << 1)
#define GRB_STATE_BUTTON3 (1 << 2)
#define GRB_STATE_BUTTON4 (1 << 3)
#define GSB_BACKLIGHT_MAX 1023
2019-12-01 14:34:57 -07:00
extern HRESULT Gpio_setup(void);
extern UINT32 Gpio_read_buttons(void);
extern void Gpio_set_backlight(UINT32 level);
2019-11-29 02:05:30 -07:00
#endif /* __GPIO_H_INCLUDED */