Zephyr API Documentation  3.6.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
rv32m1-pinctrl.h File Reference

Go to the source code of this file.

Macros

#define RV32M1_MUX(port, pin, mux)
 Specify PORTx->PCR register MUX field.
 

Macro Definition Documentation

◆ RV32M1_MUX

#define RV32M1_MUX (   port,
  pin,
  mux 
)
Value:
(((((port) - 'A') & 0xF) << 28) | \
(((pin) & 0x3F) << 22) | \
(((mux) & 0x7) << 8))

Specify PORTx->PCR register MUX field.

Parameters
portPort name ('A' to 'E')
pinPort pin number (0 to 31)
muxAlternate function number (0 to 7)