1 /*
2  * Copyright (c) 2006-2022, RT-Thread Development Team
3  *
4  * SPDX-License-Identifier: Apache-2.0
5  *
6  * Change Logs:
7  * Date         Author      Notes
8  * 2011-12-29   onelife     Initial creation for EFM32GG_DK3750 board
9  */
10 
11 #ifndef __DEV_KEYS_H__
12 #define __DEV_KEYS_H__
13 
14 /* Includes ------------------------------------------------------------------*/
15 /* Exported defines ----------------------------------------------------------*/
16 #define KEYS_INT_PORT       (gpioPortE)
17 #define KEYS_INT_PIN        (0)
18 #define KEYS_POLL_TIME      (RT_TICK_PER_SECOND / 10)
19 
20 /* Exported types ------------------------------------------------------------*/
21 struct efm32_joy_device
22 {
23     rt_int16_t x, y;
24     rt_uint16_t min_x, max_x;
25     rt_uint16_t min_y, max_y;
26 
27     struct rt_timer timer;
28 };
29 
30 /* Exported constants --------------------------------------------------------*/
31 /* Exported macro ------------------------------------------------------------*/
32 /* Exported functions ------------------------------------------------------- */
33 void efm32_hw_keys_init(void);
34 
35 #endif /* __DEV_KEYS_H__ */
36