Zephyr API Documentation 4.0.99
A Scalable Open Source RTOS
|
Pmod GPIO nexus signal index definitions. More...
Go to the source code of this file.
Macros | |
#define | PMOD_IO(n) |
For reference see the Pmod interface specification: https://digilent.com/reference/_media/reference/pmod/pmod-interface-specification-1_2_0.pdf. | |
#define | PMOD_SPI_CS PMOD_IO(1) |
SPI CS signal index on a Pmod GPIO nexus node. | |
#define | PMOD_SPI_MOSI PMOD_IO(2) |
SPI MOSI signal index on a Pmod GPIO nexus node. | |
#define | PMOD_SPI_MISO PMOD_IO(3) |
SPI MISO signal index on a Pmod GPIO nexus node. | |
#define | PMOD_SPI_SCK PMOD_IO(4) |
SPI SCK signal index on a Pmod GPIO nexus node. | |
#define | PMOD_EXP_SPI_CS PMOD_IO(1) |
SPI CS signal index on a Pmod GPIO nexus node. | |
#define | PMOD_EXP_SPI_MOSI PMOD_IO(2) |
SPI MOSI signal index on a Pmod GPIO nexus node. | |
#define | PMOD_EXP_SPI_MISO PMOD_IO(3) |
SPI MISO signal index on a Pmod GPIO nexus node. | |
#define | PMOD_EXP_SPI_SCK PMOD_IO(4) |
SPI SCK signal index on a Pmod GPIO nexus node. | |
#define | PMOD_EXP_SPI_INT PMOD_IO(5) |
INT alternate signal index on a Pmod GPIO nexus node. | |
#define | PMOD_EXP_SPI_RESET PMOD_IO(6) |
RESET alternate signal index on a Pmod GPIO nexus node. | |
#define | PMOD_EXP_SPI_CS2 PMOD_IO(7) |
SPI CS2 alternate signal index on a Pmod GPIO nexus node. | |
#define | PMOD_EXP_SPI_CS3 PMOD_IO(8) |
SPI CS3 alternate signal index on a Pmod GPIO nexus node. | |
#define | PMOD_EXP_UART_INT PMOD_IO(5) |
INT alternate signal index on a Pmod GPIO nexus node. | |
#define | PMOD_EXP_UART_RESET PMOD_IO(6) |
RESET alternate signal index on a Pmod GPIO nexus node. | |
#define | PMOD_HBRIDGE_DIR PMOD_IO(1) |
DIR signal index on a Pmod GPIO nexus node. | |
#define | PMOD_HBRIDGE_EN PMOD_IO(2) |
EN signal index on a Pmod GPIO nexus node. | |
#define | PMOD_DUAL_HBRIDGE_DIR1 PMOD_IO(1) |
DIR1 signal index on a Pmod GPIO nexus node. | |
#define | PMOD_DUAL_HBRIDGE_EN1 PMOD_IO(2) |
EN1 signal index on a Pmod GPIO nexus node. | |
#define | PMOD_DUAL_HBRIDGE_DIR2 PMOD_IO(3) |
DIR2 signal index on a Pmod GPIO nexus node. | |
#define | PMOD_DUAL_HBRIDGE_EN2 PMOD_IO(4) |
EN2 signal index on a Pmod GPIO nexus node. | |
#define | PMOD_EXP_DUAL_HBRIDGE_DIR1 PMOD_IO(1) |
DIR1 signal index on a Pmod GPIO nexus node. | |
#define | PMOD_EXP_DUAL_HBRIDGE_EN1 PMOD_IO(2) |
EN1 signal index on a Pmod GPIO nexus node. | |
#define | PMOD_EXP_DUAL_HBRIDGE_DIR2 PMOD_IO(5) |
DIR2 signal index on a Pmod GPIO nexus node. | |
#define | PMOD_EXP_DUAL_HBRIDGE_EN2 PMOD_IO(6) |
EN2 signal index on a Pmod GPIO nexus node. | |
#define | PMOD_I2C_INT PMOD_IO(1) |
INT signal index on a Pmod GPIO nexus node. | |
#define | PMOD_I2C_RESET PMOD_IO(2) |
RESET signal index on a Pmod GPIO nexus node. | |
#define | PMOD_I2C_SCL PMOD_IO(3) |
SCL signal index on a Pmod GPIO nexus node. | |
#define | PMOD_I2C_SDA PMOD_IO(4) |
SDA signal index on a Pmod GPIO nexus node. | |
Pmod GPIO nexus signal index definitions.
Defines meant to be used in conjunction with the "digilent,pmod" GPIO nexus mapping.
Example usage:
#define PMOD_DUAL_HBRIDGE_DIR1 PMOD_IO(1) |
DIR1 signal index on a Pmod GPIO nexus node.
Used with Pmod Interface Type 5 (dual H-bridge) peripherals.
#define PMOD_DUAL_HBRIDGE_DIR2 PMOD_IO(3) |
DIR2 signal index on a Pmod GPIO nexus node.
Used with Pmod Interface Type 5 (dual H-bridge) peripherals.
#define PMOD_DUAL_HBRIDGE_EN1 PMOD_IO(2) |
EN1 signal index on a Pmod GPIO nexus node.
Used with Pmod Interface Type 5 (dual H-bridge) peripherals.
#define PMOD_DUAL_HBRIDGE_EN2 PMOD_IO(4) |
EN2 signal index on a Pmod GPIO nexus node.
Used with Pmod Interface Type 5 (dual H-bridge) peripherals.
#define PMOD_EXP_DUAL_HBRIDGE_DIR1 PMOD_IO(1) |
DIR1 signal index on a Pmod GPIO nexus node.
Used with Pmod Interface Type 5A (expanded dual H-bridge) peripherals.
#define PMOD_EXP_DUAL_HBRIDGE_DIR2 PMOD_IO(5) |
DIR2 signal index on a Pmod GPIO nexus node.
Used with Pmod Interface Type 5A (expanded dual H-bridge) peripherals.
#define PMOD_EXP_DUAL_HBRIDGE_EN1 PMOD_IO(2) |
EN1 signal index on a Pmod GPIO nexus node.
Used with Pmod Interface Type 5A (expanded dual H-bridge) peripherals.
#define PMOD_EXP_DUAL_HBRIDGE_EN2 PMOD_IO(6) |
EN2 signal index on a Pmod GPIO nexus node.
Used with Pmod Interface Type 5A (expanded dual H-bridge) peripherals.
#define PMOD_EXP_SPI_CS PMOD_IO(1) |
SPI CS signal index on a Pmod GPIO nexus node.
Used with Pmod Interface Type 2A (expanded SPI) peripherals.
#define PMOD_EXP_SPI_CS2 PMOD_IO(7) |
SPI CS2 alternate signal index on a Pmod GPIO nexus node.
Used with Pmod Interface Type 2A (expanded SPI) peripherals.
#define PMOD_EXP_SPI_CS3 PMOD_IO(8) |
SPI CS3 alternate signal index on a Pmod GPIO nexus node.
Used with Pmod Interface Type 2A (expanded SPI) peripherals.
#define PMOD_EXP_SPI_INT PMOD_IO(5) |
INT alternate signal index on a Pmod GPIO nexus node.
Used with Pmod Interface Type 2A (expanded SPI) peripherals.
#define PMOD_EXP_SPI_MISO PMOD_IO(3) |
SPI MISO signal index on a Pmod GPIO nexus node.
Used with Pmod Interface Type 2A (expanded SPI) peripherals.
#define PMOD_EXP_SPI_MOSI PMOD_IO(2) |
SPI MOSI signal index on a Pmod GPIO nexus node.
Used with Pmod Interface Type 2A (expanded SPI) peripherals.
#define PMOD_EXP_SPI_RESET PMOD_IO(6) |
RESET alternate signal index on a Pmod GPIO nexus node.
Used with Pmod Interface Type 2A (expanded SPI) peripherals.
#define PMOD_EXP_SPI_SCK PMOD_IO(4) |
SPI SCK signal index on a Pmod GPIO nexus node.
Used with Pmod Interface Type 2A (expanded SPI) peripherals.
#define PMOD_EXP_UART_INT PMOD_IO(5) |
INT alternate signal index on a Pmod GPIO nexus node.
Used with Pmod Interface Type 3A (expanded UART) peripherals.
#define PMOD_EXP_UART_RESET PMOD_IO(6) |
RESET alternate signal index on a Pmod GPIO nexus node.
Used with Pmod Interface Type 3A (expanded UART) peripherals.
#define PMOD_HBRIDGE_DIR PMOD_IO(1) |
DIR signal index on a Pmod GPIO nexus node.
Used with Pmod Interface Type 4 (H-bridge) peripherals.
#define PMOD_HBRIDGE_EN PMOD_IO(2) |
EN signal index on a Pmod GPIO nexus node.
Used with Pmod Interface Type 4 (H-bridge) peripherals.
#define PMOD_I2C_INT PMOD_IO(1) |
INT signal index on a Pmod GPIO nexus node.
Used with Pmod Interface Type 6 (I2C) peripherals.
#define PMOD_I2C_RESET PMOD_IO(2) |
RESET signal index on a Pmod GPIO nexus node.
Used with Pmod Interface Type 6 (I2C) peripherals.
#define PMOD_I2C_SCL PMOD_IO(3) |
SCL signal index on a Pmod GPIO nexus node.
Used with Pmod Interface Type 6 (I2C) peripherals.
#define PMOD_I2C_SDA PMOD_IO(4) |
SDA signal index on a Pmod GPIO nexus node.
Used with Pmod Interface Type 6 (I2C) peripherals.
#define PMOD_IO | ( | n | ) |
For reference see the Pmod interface specification: https://digilent.com/reference/_media/reference/pmod/pmod-interface-specification-1_2_0.pdf.
IO[n] signal on a Pmod GPIO nexus node following Pmod Interface Type 1 or 1A (GPIO or expanded GPIO)
The Pmod GPIO nexus maps pin indexes 0..7 to IO1..IO8.
#define PMOD_SPI_CS PMOD_IO(1) |
SPI CS signal index on a Pmod GPIO nexus node.
Used with Pmod Interface Type 2 (SPI) peripherals.
#define PMOD_SPI_MISO PMOD_IO(3) |
SPI MISO signal index on a Pmod GPIO nexus node.
Used with Pmod Interface Type 2 (SPI) peripherals.
#define PMOD_SPI_MOSI PMOD_IO(2) |
SPI MOSI signal index on a Pmod GPIO nexus node.
Used with Pmod Interface Type 2 (SPI) peripherals.
#define PMOD_SPI_SCK PMOD_IO(4) |
SPI SCK signal index on a Pmod GPIO nexus node.
Used with Pmod Interface Type 2 (SPI) peripherals.