Appiko
codebase
peripheral_modules
gpio_level_handler.h
1
31
#ifndef CODEBASE_PERIPHERAL_MODULES_GPIO_LEVEL_HANDLER_H_
32
#define CODEBASE_PERIPHERAL_MODULES_GPIO_LEVEL_HANDLER_H_
33
34
#include "stdint.h"
35
#include "stdbool.h"
36
41
typedef
struct
42
{
43
void (*handler)(
bool
is_still_on);
44
uint32_t pin_num;
46
uint32_t
pull_cfg
;
47
bool
trigger_on_high;
49
}
gpio_level_cfg
;
51
60
void
gpio_level_init
(
gpio_level_cfg
* cfg, uint32_t cfg_num, uint32_t irq_priority);
61
62
#endif
/* CODEBASE_PERIPHERAL_MODULES_GPIO_LEVEL_HANDLER_H_ */
63
gpio_level_cfg::pull_cfg
uint32_t pull_cfg
The pin number.
Definition:
gpio_level_handler.h:46
gpio_level_cfg
The configuration parameter for each of the GPIO pin that is being configured in the GPIO level handl...
Definition:
gpio_level_handler.h:41
gpio_level_init
void gpio_level_init(gpio_level_cfg *cfg, uint32_t cfg_num, uint32_t irq_priority)
Initializes the GPIO level handler module by taking in the the configurations of all the GPIOs that n...
Definition:
gpio_level_handler.c:31
Generated by
1.8.15