{"id":25950113,"url":"https://github.com/rustsbi/bouffalo-hal","last_synced_at":"2025-03-04T12:52:47.010Z","repository":{"id":241743235,"uuid":"807543804","full_name":"rustsbi/bouffalo-hal","owner":"rustsbi","description":"Embedded Rust peripheral driver for Bouffalo IoT chips","archived":false,"fork":false,"pushed_at":"2024-10-29T09:10:47.000Z","size":446,"stargazers_count":7,"open_issues_count":0,"forks_count":4,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-10-29T10:59:46.676Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rustsbi.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE-MIT","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-05-29T09:54:42.000Z","updated_at":"2024-10-29T09:10:51.000Z","dependencies_parsed_at":"2024-05-29T23:27:55.297Z","dependency_job_id":"91677e11-c456-4cf3-97b7-27168f43d0c4","html_url":"https://github.com/rustsbi/bouffalo-hal","commit_stats":null,"previous_names":["rustsbi/bouffalo-hal"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rustsbi%2Fbouffalo-hal","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rustsbi%2Fbouffalo-hal/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rustsbi%2Fbouffalo-hal/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rustsbi%2Fbouffalo-hal/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rustsbi","download_url":"https://codeload.github.com/rustsbi/bouffalo-hal/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241852145,"owners_count":20030969,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-03-04T12:52:46.266Z","updated_at":"2025-03-04T12:52:47.004Z","avatar_url":"https://github.com/rustsbi.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Bouffalo HAL\n\n**Rust Hardware Abstraction Layer for Bouffalo chips**\n\n[![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](https://opensource.org/licenses/MIT)\n[![License: Mulan PSL v2](https://img.shields.io/badge/License-Mulan%20PSL%20v2-blue.svg)](https://opensource.org/license/mulanpsl-2-0)\n[![GitHub Actions Workflow Status](https://img.shields.io/github/actions/workflow/status/rustsbi/bouffalo-hal/Cargo.yml)](https://github.com/rustsbi/bouffalo-hal/actions)\n\n## Overview\n\nThis repository contains three main components that provide comprehensive support for Bouffalo chips development in Rust:\n\n- **bouffalo-hal**: Hardware Abstraction Layer for Bouffalo IoT chips, providing safe and efficient interfaces to various peripherals. This component abstracts hardware-specific details and offers a consistent API for interacting with the chip's features.\n\n- **bouffalo-rt**: Runtime support for Bouffalo chips, including the `#[entry]` macro and other essential runtime functionalities. This component handles the low-level initialization required before the main application code runs.\n\n- **blri**: A utility for firmware image verification, patching, and flashing assistance. It helps with the firmware burning process for Bouffalo chips.\n\nTogether, these components form a complete ecosystem for embedded development on Bouffalo hardware.\n\n## Features\n\n- Rust-native implementation with memory safety guarantees\n- Safe and efficient hardware abstractions\n- Support for various peripherals: GPIO, UART, SPI, I2C, PWM, and more\n- Rich examples demonstrating peripheral usage\n- Seamless integration with the embedded Rust ecosystem\n\n## Examples\n\n\u003ctable\u003e\n  \u003ctr\u003e\n    \u003ctd align=\"center\" width=\"32%\"\u003e\n      \u003ca href=\"examples/peripherals/uart-cli-demo\"\u003eUART CLI Demo\u003c/a\u003e\n      \u003cbr\u003e\n      \u003cimg src=\"docs/uart-cli-demo.gif\" width=\"100%\" alt=\"UART CLI Demo\"\u003e\n    \u003c/td\u003e\n    \u003ctd align=\"center\" width=\"32%\"\u003e\n      \u003ca href=\"examples/peripherals/pwm-demo\"\u003ePWM Demo\u003c/a\u003e\n      \u003cbr\u003e\n      \u003cimg src=\"docs/pwm-demo.gif\" width=\"100%\" alt=\"PWM Demo\"\u003e\n    \u003c/td\u003e\n    \u003ctd align=\"center\" width=\"32%\"\u003e\n      \u003ca href=\"examples/peripherals/spi-demo\"\u003eSPI Demo\u003c/a\u003e\n      \u003cbr\u003e\n      \u003cimg src=\"docs/spi-demo.gif\" width=\"100%\" alt=\"SPI Demo\"\u003e\n    \u003c/td\u003e\n  \u003c/tr\u003e\n\u003c/table\u003e\n\nYou can find all example code in the `examples/` directory.\n\n## Contributing\n\nContributions are welcome! \n\nFor bugs or suggestions, please [submit an issue](https://github.com/rustsbi/bouffalo-hal/issues/new).\n\nTo contribute code, please follow our [contribution guidelines](https://github.com/rustsbi/slides/blob/main/2025/reports/Contributing%20to%20RustSBI.md). \n\n## License\n\nThis project is licensed under either of\n\n- MIT license ([LICENSE-MIT](LICENSE-MIT) or [https://opensource.org/licenses/MIT](https://opensource.org/licenses/MIT))\n- Mulan PSL v2 ([LICENSE-MULAN](LICENSE-MULAN) or [https://opensource.org/licenses/MulanPSL-2.0](https://opensource.org/licenses/MulanPSL-2.0))\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frustsbi%2Fbouffalo-hal","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frustsbi%2Fbouffalo-hal","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frustsbi%2Fbouffalo-hal/lists"}