|
STM32 RTOS 0.2.3
Bare-metal preemptive RTOS for STM32F446RE
|
GPIO driver implementation (API in gpio.h). More...
#include "gpio.h"Go to the source code of this file.
Functions | |
| static DriverStatus_e | gpioValidatePin (GpioPin_e pin) |
| Reject a pin outside 0-15, which would shift by 32 or more. | |
| DRIVER_MUST_CHECK DriverStatus_e | gpioInit (GpioRegisters_t *port, GpioPin_e pin, uint32_t mode, uint32_t otype, uint32_t ospeed, uint32_t pupd) |
| Configure a pin's mode, output type, speed and pull. | |
| GpioResetValues_t | gpioPortResetValues (const GpioRegisters_t *port) |
| Look up a port's power-on MODER, OSPEEDR and PUPDR values. | |
| void | gpioDeinit (GpioRegisters_t *port, GpioPin_e pin) |
| Return a pin to its power-on configuration. | |
| void | gpioDeinitToReset (GpioRegisters_t *port, GpioPin_e pin, GpioResetValues_t reset) |
| gpioDeinit() with the reset values supplied by the caller. | |
| DRIVER_MUST_CHECK DriverStatus_e | gpioSetAlternateFunction (GpioRegisters_t *port, GpioPin_e pin, uint32_t af) |
| Select a pin's alternate function in AFRL/AFRH. | |
| void | gpioWritePin (GpioRegisters_t *port, GpioPin_e pin, GpioPinState_e level) |
| Drive a pin high or low with one atomic BSRR write. | |
| GpioPinState_e | gpioReadPin (const GpioRegisters_t *port, GpioPin_e pin) |
| Read a pin's input level from IDR. | |
| void | gpioTogglePin (GpioRegisters_t *port, GpioPin_e pin) |
| Invert a pin's output level. | |