mirror of
https://github.com/FunKey-Project/FunKey-GPIO-Mapping.git
synced 2025-12-12 17:58:54 +01:00
26 lines
883 B
C
26 lines
883 B
C
#ifndef _GPIO_MAPPING_H_
|
|
#define _GPIO_MAPPING_H_
|
|
|
|
/****************************************************************
|
|
* Includes
|
|
****************************************************************/
|
|
#include "gpio-utils.h"
|
|
#include "uinput.h"
|
|
#include "read_conf_file.h"
|
|
|
|
/****************************************************************
|
|
* Defines
|
|
****************************************************************/
|
|
#define GPIO_PIN_I2C_EXPANDER_INTERRUPT 35 //PB3
|
|
#define GPIO_PIN_AXP209_INTERRUPT 37 //PB5
|
|
|
|
/****************************************************************
|
|
* Public functions
|
|
****************************************************************/
|
|
int init_mapping_gpios(int * gpio_pins_to_declare, int nb_gpios_to_declare,
|
|
STRUCT_MAPPED_GPIO * chained_list_mapping_gpios);
|
|
int deinit_mapping_gpios(void);
|
|
int listen_gpios_interrupts(void);
|
|
|
|
#endif //_GPIO_MAPPING_H_
|