Last updated
Last updated
Extended pin configuration, only need to modify the device tree file, the following examples are Android, Linux SDK corresponding device tree path
Android SDK device tree path
Linux SDK device tree path
The K2B development board is configured with two GPIO output functions by default, namely PC12 (12 pins) and PC7 (14 pins). Note: Other pins have been configured for other functions. If you want to configure them as GPIO functions, you need to remove the GPIO output from the default function and provide two control methods, namely gpio-leds, gpio_para
gpio-leds
GPIO-leds is the GPIO control driver that comes with the LINUX kernel, which can realize rich control methods. The following example is the system running indicator configuration to realize the heartbeat flashing function
gpio_para
GPIO-para is a GPIO control driver for Allwinner, which can realize simple level control.
The following example is the configuration of the expansion pins PC7 and PC12