GlobLib
HAL and API libraries for MCUs and hardware.
|
Header file for stm32f103 GPIO. More...
#include <stdio.h>
#include "stm32f103cb_debug.h"
#include <libopencm3/stm32/rcc.h>
#include <libopencm3/stm32/gpio.h>
#include <libopencm3/cm3/nvic.h>
#include <libopencm3/stm32/exti.h>
Go to the source code of this file.
Enumerations |
Functions | |
mcu_error | pinSetup (gpio_mode mode, gpio_port port, gpio_pin pin) |
Setup a GPIO pin for a given function. More... | |
void | pinHigh (gpio_port port, gpio_pin pin) |
Set a given gpio pin on a port to logic high. More... | |
void | pinLow (gpio_port port, gpio_pin pin) |
Set a given gpio pin on a port to logic low. More... | |
void | pinWrite (gpio_port port, gpio_pin pin, gpio_state state) |
Set a given gpio pin on a port to a logic state. More... | |
void | pinToggle (gpio_port port, gpio_pin pin) |
Toggle the output of a given pin on a port. More... | |
uint8_t | pinRead (gpio_port port, gpio_pin pin) |
Read the current digital value of an input pin. More... | |
mcu_error | GPIO_ISREnable (gpio_port port, gpio_pin pin, gpio_isr trigger, void(*handle)(void)) |
Setup interrupts on a gpio port / pin. More... | |
mcu_error | GPIO_ISRDisable (gpio_pin pin) |
Disable interrupts on a gpio port / pin. More... | |
Header file for stm32f103 GPIO.
Definition in file stm32f103cb_gpio.h.