PHiLIP
gpio.h
Go to the documentation of this file.
1 /*
2  * Copyright 2020 Kevin Weiss for HAW Hamburg
3  *
4  * This file is subject to the terms and conditions of the MIT License. See the
5  * file LICENSE in the top level directory for more details.
6  * SPDX-License-Identifier: MIT
7  */
8 
22 #ifndef GPIO_H_
23 #define GPIO_H_
24 
25 /* Function prototypes ********************************************************/
30 void init_gpio(map_t *reg);
31 
41 error_t commit_debug();
42 
46 void update_debug_inputs();
47 
48 
59 error_t init_basic_gpio(basic_gpio_t gpio,
60  GPIO_TypeDef *port, uint32_t pin);
61 
62 #endif /* GPIO_H_ */
63 
void init_gpio(map_t *reg)
Initializes gpio directions, states and interrupt settings.
Definition: gpio.c:66
void update_debug_inputs()
Updates the DEBUG input levels.
Definition: gpio.c:169
Simplified GPIO for periph GPIO control.
Definition: PHiLIP_typedef.h:113
error_t commit_debug()
Commits the gpio registers and executes operations.
Definition: gpio.c:89
The memory map.
Definition: PHiLIP_typedef.h:340
error_t init_basic_gpio(basic_gpio_t gpio, GPIO_TypeDef *port, uint32_t pin)
Initializes a basic gpio.
Definition: gpio.c:143