diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2019-07-28 23:21:03 -0400 |
---|---|---|
committer | KevinOConnor <kevin@koconnor.net> | 2019-08-05 11:25:40 -0400 |
commit | 36217f27aa4ddd1303c4881af376a4b0a476c547 (patch) | |
tree | 881040437a219eb1bab0a4b10407e09220e8c227 /src/stm32f1/gpio.h | |
parent | fe065d72d00319adcc7e27a392193733dc566922 (diff) | |
download | kutter-36217f27aa4ddd1303c4881af376a4b0a476c547.tar.gz kutter-36217f27aa4ddd1303c4881af376a4b0a476c547.tar.xz kutter-36217f27aa4ddd1303c4881af376a4b0a476c547.zip |
stm32f1: Remove now unused src/stm32f1/ directory
Now that the stm32f1 code has been merged into the stm32 code, there
is no longer a need to keep the stm32f1/ directory.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'src/stm32f1/gpio.h')
-rw-r--r-- | src/stm32f1/gpio.h | 43 |
1 files changed, 0 insertions, 43 deletions
diff --git a/src/stm32f1/gpio.h b/src/stm32f1/gpio.h deleted file mode 100644 index 8aba2f85..00000000 --- a/src/stm32f1/gpio.h +++ /dev/null @@ -1,43 +0,0 @@ -#ifndef __STM32F1_GPIO_H -#define __STM32F1_GPIO_H - -#include <stdint.h> -#include "stm32f1xx.h" - -void gpio_peripheral(char bank, uint32_t bit, char ptype, uint32_t pull_up); - -struct gpio_out { - GPIO_TypeDef *regs; - uint32_t bit; -}; -struct gpio_out gpio_out_setup(uint8_t pin, uint8_t val); -void gpio_out_reset(struct gpio_out g, uint8_t val); -void gpio_out_toggle_noirq(struct gpio_out g); -void gpio_out_toggle(struct gpio_out g); -void gpio_out_write(struct gpio_out g, uint8_t val); - -struct gpio_in { - GPIO_TypeDef *regs; - uint32_t bit; -}; -struct gpio_in gpio_in_setup(uint8_t pin, int8_t pull_up); -void gpio_in_reset(struct gpio_in g, int8_t pull_up); -uint8_t gpio_in_read(struct gpio_in g); - -struct gpio_adc { - uint32_t bit; -}; -struct gpio_adc gpio_adc_setup(uint8_t pin); -uint32_t gpio_adc_sample(struct gpio_adc g); -uint16_t gpio_adc_read(struct gpio_adc g); -void gpio_adc_cancel_sample(struct gpio_adc g); - -struct spi_config { - uint32_t spi_cr1; -}; -struct spi_config spi_setup(uint32_t bus, uint8_t mode, uint32_t rate); -void spi_prepare(struct spi_config config); -void spi_transfer(struct spi_config config, uint8_t receive_data, - uint8_t len, uint8_t *data); - -#endif // gpio.h |