Репка / Repka-Pi

  • Автор темы Репка / Repka-Pi
  • Дата начала
Не надо этого делать, пожалуйста. Просто начните использовать стандартный api из Linux и библиотеку libgpiod
 
> 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.
 
anyway - уже даже автор отказался лохматить бабушку wiringpi
 
Доступные теперь варианты распиновки:
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 export не включено в файл экспорта)
 
(фото из Telegram export не включено в файл экспорта)
 
Правильно ли я понимаю что так?Uart0 (rx)-10, uart1 (rx)-18, uart2 (rx) - 33
 
Как-то дополнительно надо включать uart?
 
(фото из Telegram export не включено в файл экспорта)
 
(фото из Telegram export не включено в файл экспорта)
 
(фото из Telegram export не включено в файл экспорта)