树莓派程序使用wiringPi 会占用了所有的IO 口,会导致其他的程序无法使用端口

演技担当黄晓明 2021-11-29788 次点击
树莓派程序中使用了wiringPi 库,使用了一个端口,另外一个程序 flashrom使用了SPI端口,发现了调用 flashrom时SPI无法正常使用,有什么办法释放对SPI端口的占用/?
收藏 ♥ 感谢
Spoony 小组长 2021-11-29  ♥ 1
wiringPi 不会占用 SPI 的
http://wiringpi.com/reference/spi-library/

但是需要手动加载一下 SPI 驱动
Before you can use SPI interface, you may need to use the gpio utility to load the SPI drivers into the kernel:
```
gpio load spi
```

登录注册 后可回复。



GitHub