Welcome to RDK X5 MagicBox repository
1. Prerequisites Before Using Pin Functions
ReadMe
Pin multiplexing relationship configuration
The 40PIN pins will enable UART, SPI, I2C, I2S and other special functions by default as shown in this section. If you need to configure specific pins as GPIO functions, you need to configure them through the srpi-config configuration tool.
Note that the srpi-config program needs to be run in a full-screen command line window, as follows:
sudo srpi-config
Select 3 Interface Options -> I3 Peripheral bus config to enter the following bus configuration interface.

okay configures the corresponding pin as a dedicated function, disabled turns off the dedicated function of the pin and can be used as GPIO. The configuration takes effect after restart.
- Use the up and down keys on the keyboard to select function items, and the Enter key to switch functions
- Use the left and right keys on the keyboard to select Select and Exit, and the Enter key to confirm
40PIN pin definition
The development board provides a 40PIN standard interface to facilitate users to expand peripherals, and the digital IO uses a 3.3V level design. The 40PIN interface definition is as follows:
