73void gpio_set_af(uint32_t gpioport, uint8_t af, uint32_t gpios)
95void gpio_set(uint32_t gpioport, uint32_t gpios)
121uint32_t
gpio_get(uint32_t gpioport, uint32_t gpios)
123 return PORT_IN(gpioport) & gpios;
#define GPIO_CNF_PULLDOWN
uint32_t gpio_get(uint32_t gpioport, uint32_t gpios)
Read level of a group of Pins.
void gpio_set(uint32_t gpioport, uint32_t gpios)
Set a group of Pins.
void port_write(uint32_t port, uint32_t data)
Set level for all pins from a port.
void gpio_clear(uint32_t gpioport, uint32_t gpios)
Clear a group of Pins.
void gpio_toggle(uint32_t gpioport, uint32_t gpios)
Toggle level of a group of Pins.
void gpio_mode_setup(uint32_t gpioport, uint8_t mode, uint8_t cnf, uint32_t gpios)
Initialize GPIO pins.
uint32_t port_read(uint32_t port)
Read level for all pins from a port.
void gpio_set_af(uint32_t gpioport, uint8_t af, uint32_t gpios)
Alternate function GPIO pins.
#define PORT_WRCONFIG(port)
Write configuration register.
#define PORT_OUTSET(port)
output set register
#define PORT_DIRCLR(port)
Direction clear register.
#define PORT_IN(port)
input register
#define PORT_OUTTGL(port)
output toggle register
#define PORT_DIRSET(port)
Direction set register.
#define PORT_OUT(port)
output register
#define PORT_OUTCLR(port)
output clear register
#define PORT_WRCONFIG_PULLEN
PULLEN: Pull Enable: enable PINCFGy.PULLEN for pins in PINMASK.
#define PORT_WRCONFIG_WRPMUX
WRPMUX: Write PMUX: 1 to update pins pmux for selected by PINMASK.
#define PORT_WRCONFIG_HWSEL
HWSEL: Half word select: 0 [15:0], 1 [31:16].
#define PORT_WRCONFIG_PMUXEN
PMUXEN: Peripheral Multiplexer Enable: enable PINCFGy.PMUXEN for pins in PINMASK.
#define PORT_WRCONFIG_PINMASK(pins)
PINMASK: Pin Mask for Multiple Pin Configuration: select pins to be configured [31:16] if HWSET=1,...
#define PORT_WRCONFIG_INEN
INEN: Input Enable: enable PINCFGy.INEN for pins in PINMASK.
#define PORT_WRCONFIG_PMUX(mux)
PMUX: Peripheral Multiplexing: determine pmux for pins selected by PINMASK.
#define PORT_WRCONFIG_WRPINCFG
WRPINCFG: Write PINCFG: 1 to update pins for selected by PINMASK.