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

Новая страница: «GPIO processor and peripherals are divided into banks (gpio chip). GPIO processor split into 3 banks for 32 GPIO: gpio0, gpio1, gpio2. Addressing GPIO in Device T…»
(Новая страница: «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…»)
(Новая страница: «GPIO processor and peripherals are divided into banks (gpio chip). GPIO processor split into 3 banks for 32 GPIO: gpio0, gpio1, gpio2. Addressing GPIO in Device T…»)
Строка 130: Строка 130:
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) derived processor GPIO lines. They can be configured to use such as a chip-select for as SPI or I2C.


GPIO процессора и периферийных устройств разбиты на банки (gpiochip). GPIO процессора разбиты на 3 банка по 32 GPIO: gpio0, gpio1, gpio2. Адресация GPIO в Device Tree происходит по номеру банка и номеру GPIO *внутри* банка.
GPIO processor and peripherals are divided into banks (gpio chip). GPIO processor split into 3 banks for 32 GPIO: gpio0, gpio1, gpio2. Addressing GPIO in Device Tree comes to the number of the bank and the number of GPIO * in * the bank.