1 #ifndef ATTINY13A_GPIO_H_ 2 #define ATTINY13A_GPIO_H_ 13 #include <avr/interrupt.h>
gpio_port
GPIO ports available for the MCU.
Setup the port for digital output.
Header file for attiny13a DEBUG.
Interrupt occurs on low level.
void pinToggle(gpio_port port, gpio_pin pin)
Toggle the output of a given pin on a port.
void pinLow(gpio_port port, gpio_pin pin)
Set a given gpio pin on a port to logic low.
gpio_state
GPIO pin states.
Set the corresponding pin to logic high.
mcu_error GPIO_ISRDisable(gpio_pin pin)
Disable interrupts on a gpio port / pin.
Setup the port for output SPI.
void pinHigh(gpio_port port, gpio_pin pin)
Set a given gpio pin on a port to logic high.
Setup the port for USART receive.
Setup the port for digital input.
Interrupt occurs on falling edge detection.
Setup the port for USART transmit.
gpio_pin
GPIO pins available for each port.
Interrupt occurs on rising edge detection.
Interrupt occurs on rising and falling edge detection.
Set the corresponding pin to logic low.
gpio_isr
GPIO interrupt options for pins.
mcu_error pinSetup(gpio_mode mode, gpio_port port, gpio_pin pin)
Setup a GPIO pin for a given function.
void pinWrite(gpio_port port, gpio_pin pin, gpio_state state)
Set a given gpio pin on a port to a logic state.
Setup the port for output PWM.
Setup the port for input SPI.
uint8_t pinRead(gpio_port port, gpio_pin pin)
Read the current digital value of an input pin.
Setup the port for input capture.
mcu_error GPIO_ISREnable(gpio_port port, gpio_pin pin, gpio_isr trigger, void(*handle)(void))
Setup interrupts on a gpio port / pin.
gpio_mode
GPIO setup options.
mcu_error
Error enumerators for the Debug peripheral.