{"id":50337294,"url":"https://github.com/jettify/uf-bsp","last_synced_at":"2026-05-29T14:30:35.750Z","repository":{"id":356812399,"uuid":"1234156518","full_name":"jettify/uf-bsp","owner":"jettify","description":"Board support crates for popular flight controllers.","archived":false,"fork":false,"pushed_at":"2026-05-24T14:35:05.000Z","size":120,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2026-05-24T16:21:57.570Z","etag":null,"topics":["bsp","bsp-board","flight-controller","fpv","fpv-drones","stm32"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jettify.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-05-09T20:26:55.000Z","updated_at":"2026-05-24T14:35:08.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/jettify/uf-bsp","commit_stats":null,"previous_names":["jettify/uf-bsp"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/jettify/uf-bsp","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jettify%2Fuf-bsp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jettify%2Fuf-bsp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jettify%2Fuf-bsp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jettify%2Fuf-bsp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jettify","download_url":"https://codeload.github.com/jettify/uf-bsp/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jettify%2Fuf-bsp/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33657690,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-05-29T02:00:06.066Z","response_time":107,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["bsp","bsp-board","flight-controller","fpv","fpv-drones","stm32"],"created_at":"2026-05-29T14:30:35.074Z","updated_at":"2026-05-29T14:30:35.744Z","avatar_url":"https://github.com/jettify.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# uf-bsp\n\n[![CI](https://github.com/jettify/uf-bsp/actions/workflows/CI.yml/badge.svg)](https://github.com/jettify/uf-bsp/actions/workflows/CI.yml)\n[![crates.io](https://img.shields.io/crates/v/uf-bsp)](https://crates.io/crates/uf-bsp)\n[![docs.rs](https://img.shields.io/docsrs/uf-bsp)](https://docs.rs/uf-bsp/latest/uf_bsp/)\n\nBoard support crates for common flight controllers, boards might be usefull not only\nfor quadcopters and flight controllers, but also for robotics and rapid prototyping.\n\nOriginally developed for the `uflight` flight-controller project, but useful as a standalone set of board support crates.\n\n\u003e **Status:** This project is a work in progress. APIs, board coverage, and examples may change.\n\n1. [`TBS Lucid H7 FC`](https://www.team-blacksheep.com/products/prod:lucid_h7) (Exposes SWDIO/SWCLK pads; can be flashed with a debug probe or via DFU.)\n1. [`SpeedyBee F405 V4`](https://www.speedybee.com/speedybee-f405-v4-bls-60a-30x30-fc-esc-stack/) (Flashing is supported via DFU only.)\n1. Most Betaflight/INAV-compatible boards can be added in a similar way.\n\n## Simple Example\n\n```rust\n\n#![no_std]\n#![no_main]\n\nuse bsp::hal::gpio::Level;\nuse bsp::hal::gpio::Output;\nuse bsp::hal::gpio::Speed;\nuse cortex_m as _;\nuse defmt::info;\nuse defmt_rtt as _;\nuse embassy_time::Duration;\nuse embassy_time::Timer;\nuse panic_probe as _;\nuse tbs_lucid_h7_bsp as bsp;\n\n#[embassy_executor::main]\nasync fn main(_spawner: embassy_executor::Spawner) {\n    info!(\"starting blinky example\");\n    let p = bsp::hal::init(bsp::config());\n    let board = bsp::Board::new(p);\n\n    let mut led0 = Output::new(board.leds.led0, Level::Low, Speed::Low);\n    let mut led1 = Output::new(board.leds.led1, Level::High, Speed::Low);\n    info!(\"leds initialized\");\n\n    loop {\n        led0.toggle();\n        led1.toggle();\n        info!(\"leds toggled\");\n        Timer::after(Duration::from_millis(250)).await;\n    }\n}\n```\n\n\n## IMU Read Example\n```rust\n#![no_std]\n#![no_main]\n\nuse bsp::hal::bind_interrupts;\nuse bsp::hal::dma;\nuse bsp::hal::exti;\nuse bsp::hal::gpio::Level;\nuse bsp::hal::gpio::Output;\nuse bsp::hal::gpio::Pull;\nuse bsp::hal::gpio::Speed;\nuse bsp::hal::interrupt;\nuse bsp::hal::peripherals;\nuse bsp::hal::spi;\nuse cortex_m as _;\nuse defmt::info;\nuse defmt_rtt as _;\nuse embassy_time::Delay;\nuse embedded_hal_bus::spi::ExclusiveDevice;\nuse panic_probe as _;\nuse tbs_lucid_h7_bsp as bsp;\n\nconst IMU_ODR_HZ: u32 = 1_000;\nconst LOG_HZ: u32 = 2;\nconst LOG_EVERY_N_SAMPLES: u32 = IMU_ODR_HZ / LOG_HZ;\n\nbind_interrupts!(struct Irqs {\n    DMA1_STREAM0 =\u003e dma::InterruptHandler\u003cperipherals::DMA1_CH0\u003e;\n    DMA1_STREAM1 =\u003e dma::InterruptHandler\u003cperipherals::DMA1_CH1\u003e;\n    EXTI2 =\u003e exti::InterruptHandler\u003cinterrupt::typelevel::EXTI2\u003e;\n});\n\n#[embassy_executor::main]\nasync fn main(_spawner: embassy_executor::Spawner) {\n    info!(\"starting imu_spi example\");\n    let p = bsp::hal::init(bsp::config());\n    let board = bsp::Board::new(p);\n\n    let mut led0 = Output::new(board.leds.led0, Level::Low, Speed::Low);\n    let mut led1 = Output::new(board.leds.led1, Level::High, Speed::Low);\n\n    let mut spi_cfg = spi::Config::default();\n    spi_cfg.frequency = bsp::hal::time::mhz(10);\n\n    let spi = spi::Spi::new(\n        board.imu_primary.spi,\n        board.imu_primary.sck,\n        board.imu_primary.mosi,\n        board.imu_primary.miso,\n        board.dma.spi1.tx,\n        board.dma.spi1.rx,\n        Irqs,\n        spi_cfg,\n    );\n    let cs = Output::new(board.imu_primary.cs, Level::High, Speed::Low);\n    let spi_device = ExclusiveDevice::new_no_delay(spi, cs).unwrap();\n\n    let icm = icm426xx::ICM42688::new(spi_device);\n    let imu_config = icm426xx::Config {\n        int1_mode: icm426xx::InterruptMode::Pulsed,\n        int1_polarity: icm426xx::InterruptPolarity::ActiveHigh,\n        rate: icm426xx::OutputDataRate::Hz1000,\n        timestamps_are_absolute: false,\n    };\n    let mut icm = icm.initialize(Delay, imu_config).await.unwrap();\n\n    let mut drdy = exti::ExtiInput::new(\n        board.imu_primary.int,\n        board.imu_primary.int_exti,\n        Pull::None,\n        Irqs,\n    );\n    drdy.wait_for_low().await;\n    info!(\"imu initialized at {} Hz; waiting for drdy\", IMU_ODR_HZ);\n\n    let mut sample_count: u32 = 0;\n    loop {\n        drdy.wait_for_rising_edge().await;\n\n        loop {\n            match icm.read_sample().await {\n                Ok(Some((sample, has_more))) =\u003e {\n                    sample_count = sample_count.wrapping_add(1);\n                    if sample_count.is_multiple_of(LOG_EVERY_N_SAMPLES) {\n                        if let Some((gx, gy, gz)) = sample.gyro {\n                            info!(\"gyro rad/s: x={} y={} z={}\", gx, gy, gz);\n                        }\n                        if let Some((ax, ay, az)) = sample.accel {\n                            info!(\"accel m/s^2: x={} y={} z={}\", ax, ay, az);\n                        }\n                        led0.toggle();\n                    }\n\n                    if !has_more {\n                        break;\n                    }\n                }\n                Ok(None) =\u003e break,\n                Err(icm426xx::Error::FifoOverflow) =\u003e {\n                    info!(\"imu fifo overflow; resetting fifo\");\n                    let _ = icm.reset_fifo().await;\n                    led1.toggle();\n                    break;\n                }\n                Err(icm426xx::Error::Bus(_)) =\u003e {\n                    info!(\"imu bus error\");\n                    led1.toggle();\n                    break;\n                }\n                Err(icm426xx::Error::WhoAmIMismatch(whoami)) =\u003e {\n                    info!(\"unexpected whoami mismatch: {}\", whoami);\n                    led1.toggle();\n                    break;\n                }\n            }\n        }\n    }\n}\n\n```\n\n## License\n\nThis project is licensed under the `Apache 2.0`. See the [LICENSE](https://github.com/jettify/uf-bsp/blob/master/LICENSE) file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjettify%2Fuf-bsp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjettify%2Fuf-bsp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjettify%2Fuf-bsp/lists"}