#freebsd #hal #devices #traits #i2c #gpio #flags

freebsd-embedded-hal

Implementation of the embedded-hal traits for FreeBSD devices

3 releases

0.1.2 Oct 1, 2022
0.1.1 Jul 18, 2022
0.1.0 Dec 31, 2021

#42 in #freebsd

23 downloads per month
Used in ldc1x1x

Unlicense

20KB
506 lines

crates.io unlicense

freebsd-embedded-hal

Implementation of embedded-hal traits for FreeBSD devices:

  • gpio: using libgpio, with stateful and toggleable support, with support for true initial output values if the device is capable, with cool type-state tracking, with open-drain outputs
  • i2c: using iic, with transaction support (not using iterators on-the-fly because many drivers have to reinterpret start/stop flags between neighboring messages for hardware start-stop)
  • TODO: spi
  • TODO: pwm
  • TODO: serial? :D

License

This is free and unencumbered software released into the public domain.
For more information, please refer to the UNLICENSE file or unlicense.org.

Dependencies

~110KB