Translations:Работа с GPIO/34/en: различия между версиями

Материал из Wiren Board
(Новая страница: «Pointing to the GPIO Device Tree you need to configure the GPIO to work in a mode of software SPI, I2C, GPIO to be used as the source of the interrupt, etc. For e…»)
 
 
Строка 1: Строка 1:
Pointing to the GPIO Device Tree you need to configure the GPIO to work in a mode of software SPI, I2C, GPIO to be used as the source of the interrupt, etc.
It's necessary to place the GPIO in Device Tree to configure the GPIO to work in a mode of software SPI, I2C, for GPIO to be used as the source of the interrupt, etc.
For example on a pin 10 @ UEXT1 (CS) and pins 5 @ UEXT2 (SCL), 6 @ UEXT2 (SDA), 10 @ UEXT2 (CS) derived processor GPIO lines. They can be configured to use such as a chip-select for as SPI or I2C.
For example on a pin 10 @ UEXT1 (CS) and pins 5 @ UEXT2 (SCL), 6 @ UEXT2 (SDA), 10 @ UEXT2 (CS) GPIO processor lines are derived. They can be configured to use such as a chip-select for SPI or as I2C.

Текущая версия на 17:57, 24 апреля 2019

Определение сообщения (Работа с GPIO)
Указывать GPIO в Device Tree необходимо для настройки GPIO для работы в режиме программного SPI, I2C, для использования GPIO в качестве источника прерываний и т.д.
Так например на пин 10@UEXT1 (CS) и пины 5@UEXT2 (SCL), 6@UEXT2 (SDA), 10@UEXT2 (CS) выведены линии GPIO процессора. Их можно сконфигурировать для использования например в качестве chip-select для SPI или в качестве I2C.

It's necessary to place the GPIO in Device Tree to configure the GPIO to work in a mode of software SPI, I2C, for GPIO to be used as the source of the interrupt, etc. For example on a pin 10 @ UEXT1 (CS) and pins 5 @ UEXT2 (SCL), 6 @ UEXT2 (SDA), 10 @ UEXT2 (CS) GPIO processor lines are derived. They can be configured to use such as a chip-select for SPI or as I2C.