/* Warning: Don't touch the next line unless you're sure of what
* you're doing: first four gpio [0-3] are used for video. */
solo_gpio_mode(solo_dev, 0x0f, 2);
/* We use bit 8-15 of SOLO_GPIO_CONFIG_0 for relay purposes */
solo_gpio_mode(solo_dev, 0xff00, 1);
/* Initially set relay status to 0 */
solo_gpio_clear(solo_dev, 0xff00);
/* Set input pins direction */
solo_gpio_mode(solo_dev, 0xffff0000, 0);
}
#ifdef CONFIG_GPIOLIB /* Pins 0-7 are not exported, because it seems from code above they are *usedforinternalpurposes.Sooffset0correspondstopin8,therefore *offsets0-7arerelayGPIOs,8-23-inputGPIOs.
*/ staticint solo_gpiochip_get_direction(struct gpio_chip *chip, unsignedint offset)
{ int ret, mode; struct solo_dev *solo_dev = gpiochip_get_data(chip);
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.