Зеркало Telegram-чата "Репка / Repka-Pi"

Статус
Закрыто для дальнейших ответов.
Не надо этого делать, пожалуйста. Просто начните использовать стандартный api из Linux и библиотеку libgpiod

Автор сообщения в Telegram: Ivan Kishchenko


оно кажись опять устарело. Теперь V2 c другими структурами ответов и вызовами

Автор сообщения в Telegram: Andrey Andreyuk

Ссылка на сообщение в Telegram
 
> I think something worth noting about this article is that, while the code still works, all of the ioctl commands except GPIO_GET_CHIPINFO_IOCTL have been marked as deprecated in the linux/gpio.h file. There are now "v2" ioctl commands which are recommended to be used instead. These new ioctl commands also require different structs to go with them, as they return slightly different data. However, support for the v1 commands still exists within the gpio.h file, likely to prevent the update from breaking things in the future. I would still love to see an updated version of this article with the v2 code, just to keep the code up-to-date.

Автор сообщения в Telegram: Andrey Andreyuk

Ссылка на сообщение в Telegram
 
Доступные теперь варианты распиновки:
1) Вариант прошивки 1.
GPIO-26, UART-1 (По умолчанию).
2) Вариант прошивки 2.
GPIO-15, UART-1, SPI-2, I2C-1.
3) Вариант прошивки 3.
GPIO-11, UART-3, SPI-2, I2C-1.
4) Вариант прошивки 4.
GPIO-13, UART-1, SPI-2, I2C-2.
5) Вариант прошивки 5.
GPIO-14, UART-1, SPI-2, I2C-1, PWM-1.

Переключение между вариантами распиновки выполняется утилитой repka-config.

Автор сообщения в Telegram: Андрей

Ссылка на сообщение в Telegram
 
Статус
Закрыто для дальнейших ответов.