c-periphery:在Linux中用于外围IO(GPIO,LED,PWM,SPI,I2C,MMIO,串行)的AC库

时间:2024-05-29 22:46:04
【文件属性】:

文件名称:c-periphery:在Linux中用于外围IO(GPIO,LED,PWM,SPI,I2C,MMIO,串行)的AC库

文件大小:68KB

文件格式:ZIP

更新时间:2024-05-29 22:46:04

C

c外围 用于Linux外围设备I / O的C库(GPIO,LED,PWM,SPI,I2C,MMIO,串行) c-periphery是一个小型C库,用于在用户空间Linux中进行GPIO,LED,PWM,SPI,I2C,MMIO和串行外围设备I / O接口访问。 c-periphery简化了本机Linux API并将其整合到这些接口。 c-periphery在嵌入式Linux环境(包括Raspberry Pi,BeagleBone等平台)中可用于与外部外围设备接口。 c-periphery是可重入的,在标准C库和Linux之外没有任何依赖关系,可编译成静态库以方便与其他项目集成,并且已获得MIT许可。 使用Python还是Lua? 查看和项目。 贡献的库: , 例子 通用输入输出 # include < stdio> # include < stdlib> # incl


【文件预览】:
c-periphery-master
----.gitignore(60B)
----Makefile(1KB)
----src()
--------i2c.h(2KB)
--------version.h(659B)
--------libperiphery.pc.in(343B)
--------version.c(652B)
--------pwm.h(2KB)
--------i2c.c(3KB)
--------led.h(1KB)
--------spi.c(11KB)
--------mmio.h(2KB)
--------serial.c(20KB)
--------led.c(5KB)
--------mmio.c(6KB)
--------gpio.h(4KB)
--------spi.h(2KB)
--------serial.h(3KB)
--------pwm.c(12KB)
--------gpio.c(47KB)
----.travis.yml(124B)
----LICENSE(1KB)
----CHANGELOG.md(7KB)
----README.md(11KB)
----tests()
--------test_gpio_sysfs.c(10KB)
--------test_gpio.c(15KB)
--------test_i2c.c(4KB)
--------test_led.c(4KB)
--------test_pwm.c(10KB)
--------test.h(606B)
--------test_serial.c(10KB)
--------test_mmio.c(8KB)
--------test_spi.c(7KB)
----docs()
--------led.md(5KB)
--------i2c.md(5KB)
--------serial.md(12KB)
--------mmio.md(7KB)
--------spi.md(8KB)
--------pwm.md(8KB)
--------gpio.md(16KB)
----CMakeLists.txt(2KB)

网友评论