<gpio_config direction="direction" pullups="pullups"/>
Configure the GPIO interface.
Parameters
Details
The following table maps the named lines on the Aardvark I2C/SPI output cable to bit positions in the direction and pullups masks. All GPIO API functions will index these lines through a single 8-bit masked value. Thus, each bit position in the mask can be referred back its corresponding line through the mapping described below.
Pin # | Bit Value | Description |
Pin 1 | 0x01 | I2C SCL line |
Pin 3 | 0x02 | I2C SDA line |
Pin 5 | 0x04 | SPI MISO line |
Pin 7 | 0x08 | SPI SCLK line |
Pin 8 | 0x10 | SPI MOSI line |
Pin 9 | 0x20 | SPI SS line |
Please see the Aardvark I2C/SPI Embedded Systems Interface Datasheet for more information.