summaryrefslogtreecommitdiff
path: root/app/include/gpio_ext.h
blob: 7fe800dcbd44e19ecf56fbd56410da0203bc782e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/*
 * gpio_ext.h
 *
 */

#ifndef SOURCE_GPIO_EXT_H_
#define SOURCE_GPIO_EXT_H_

#include "board.h"
#include "fsl_device_registers.h"
#include "fsl_debug_console.h"
#include "fsl_dspi.h"

struct gpio_id{
	PORT_Type *port;
	GPIO_Type *gpio;
	uint32_t pin;
};

int gpio_registers(dspi_transfer_t *spi_transfer);

#endif /* SOURCE_GPIO_EXT_H_ */