Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bradeneverson/jetgpio
Peripheral abstraction layer for the NVIDIA Jetson devices in Rust
https://github.com/bradeneverson/jetgpio
gpio jetson peripherals rust
Last synced: about 2 months ago
JSON representation
Peripheral abstraction layer for the NVIDIA Jetson devices in Rust
- Host: GitHub
- URL: https://github.com/bradeneverson/jetgpio
- Owner: BradenEverson
- License: unlicense
- Created: 2024-11-07T14:32:52.000Z (2 months ago)
- Default Branch: main
- Last Pushed: 2024-11-08T11:27:24.000Z (2 months ago)
- Last Synced: 2024-11-08T11:34:31.623Z (2 months ago)
- Topics: gpio, jetson, peripherals, rust
- Language: Rust
- Homepage:
- Size: 9.77 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# JetGpio
This crate provides a peripheral abstraction layer over the [jetgpio-sys](https://github.com/raoz/jetgpio-sys) crate to provide memory-mapped access to NvidiaⓇ Jetson Nano™ or Jetson Orin Nano™ GPIO interfaces.This library is built on top of [jetgpio-sys](https://github.com/raoz/jetgpio-sys), which iteslf is built on top of the [JETGPIO](https://github.com/Rubberazer/JETGPIO) package.
By default this crate assumes Jetson Nano usage. For interfacing with a Jetson Orin Nano, enable the `orin` feature flag.
## Requirements
* Clang
- Can be installed with `sudo apt-get install clang`
* sudo
- In order for the crate to work properly, you must run the code with sudo level permissions. The workflow I have personally been using so far is as follows:
```bash
cargo build
sudo ./target/debug/{MY_CRATE_HERE}
```
- The examples can be built and run in a very similar way.
* PWM
- For PWM to work currently, the `pwm.sh` shell script must be run## Currently Supported Interfaces (and those in progress)
- [x] GPIO Input and Output Pins
- [x] PWM## Licence
This crate is published under the [UNLICENSE](LICENSE), just as both of the underlying libraries.