From 9918eb505321183e20357221a4dcf2aa9c1e057c Mon Sep 17 00:00:00 2001 From: jaseg Date: Mon, 4 May 2020 21:31:31 +0200 Subject: fw: add working reed-solomon encoder/decoder --- controller/fw/src/gpio_helpers.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 controller/fw/src/gpio_helpers.h (limited to 'controller/fw/src/gpio_helpers.h') diff --git a/controller/fw/src/gpio_helpers.h b/controller/fw/src/gpio_helpers.h new file mode 100644 index 0000000..abe2e85 --- /dev/null +++ b/controller/fw/src/gpio_helpers.h @@ -0,0 +1,14 @@ +#ifndef __GPIO_HELPERS_H__ +#define __GPIO_HELPERS_H__ + +#include + +void gpio_pin_mode(GPIO_TypeDef *gpio, int pin, int mode); +void gpio_pin_setup(GPIO_TypeDef *gpio, int pin, int mode, int speed, int pullups, int afsel); +void gpio_pin_output(GPIO_TypeDef *gpio, int pin, int speed); +void gpio_pin_input(GPIO_TypeDef *gpio, int pin, int pullups); +void gpio_pin_af(GPIO_TypeDef *gpio, int pin, int speed, int pullups, int afsel); +void gpio_pin_analog(GPIO_TypeDef *gpio, int pin); +void gpio_pin_tristate(GPIO_TypeDef *gpio, int pin, int tristate); + +#endif /* __GPIO_HELPERS_H__ */ -- cgit