diff options
Diffstat (limited to 'app/include/gpio_ext.h')
-rw-r--r-- | app/include/gpio_ext.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/app/include/gpio_ext.h b/app/include/gpio_ext.h new file mode 100644 index 0000000..7fe800d --- /dev/null +++ b/app/include/gpio_ext.h @@ -0,0 +1,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_ */ |