7 releases (stable)
1.1.3 | Oct 29, 2024 |
---|---|
1.0.1 | Aug 13, 2024 |
1.0.0 | Jun 10, 2024 |
0.1.0 | Jun 11, 2022 |
#535 in Embedded development
505 downloads per month
Used in 2 crates
(via avr-simulator)
3.5MB
21K
SLoC
simavr-ffi
Low-level unsafe bindings to simavr:
[dependencies]
simavr-ffi = "1"
Supported platforms: Linux & Mac (pull requests for Windows etc. welcome!).
If you're looking for something high-level and safe, see AvrTester.
Requirements
Compile-time:
- clang,
- patch (optional, required only if you enable the
patch-twi-inconsistencies
feature flag), - libelf,
- pkg-config,
- zlib.
Nix (Linux / Mac)
$ nix develop
Ubuntu
$ sudo apt install clang libelf-dev pkg-config
Mac
$ brew install libelf pkg-config
Feature flags
If you want, you can activate following feature flags (disabled by default):
patch-twi-inconsistencies
- applies a fix for https://github.com/buserror/simavr/issues/453
FAQ
How does it compare to simavr-sys
?
simavr-sys
seems unmaintained at
the moment, while simavr-ffi
is up-to-date.
License
Copyright (c) 2022 Patryk Wychowaniec pwychowaniec@pm.me.
Licensed under the MIT license.