diff options
author | jaseg <git-bigdata-wsl-arch@jaseg.de> | 2020-05-04 21:31:31 +0200 |
---|---|---|
committer | jaseg <git-bigdata-wsl-arch@jaseg.de> | 2020-05-04 21:31:31 +0200 |
commit | 9918eb505321183e20357221a4dcf2aa9c1e057c (patch) | |
tree | 41e33e84d51ca2aa558ab1dc248ec5109181d6c8 /controller/fw/src/gpio_helpers.h | |
parent | 82c1302756d9b8f3d5cfbd4b304411c39651dfa8 (diff) | |
download | master-thesis-9918eb505321183e20357221a4dcf2aa9c1e057c.tar.gz master-thesis-9918eb505321183e20357221a4dcf2aa9c1e057c.tar.bz2 master-thesis-9918eb505321183e20357221a4dcf2aa9c1e057c.zip |
fw: add working reed-solomon encoder/decoder
Diffstat (limited to 'controller/fw/src/gpio_helpers.h')
-rw-r--r-- | controller/fw/src/gpio_helpers.h | 14 |
1 files changed, 14 insertions, 0 deletions
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 <stm32f407xx.h> + +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__ */ |