Embedded Rust access API for TI SimpleLink CC2650 MCU
Add task tracker link to README
Version 0.1.1
Fix link in README



You can also use your local clone with git send-email.

#CC2650 Device Support Crate

Embedded Rust access API for TI CC2650 microcontrollers.

crates.io Documentation Task Tracker

This crate provides an autogenerated API interacting with the CC2650 and its peripherals. The API is generated using svd2rust via dslite2svd.


To use, in your Cargo.toml:

cc2650 = "0.1"

The rt feature is optional and brings in support for cortex-m-rt:

cc2650 = { version = "0.1", features = ["rt"] }


See my blog post about creating this crate.

Note: The following example assumes you are using Rust 2018, I.e. Rust >= 1.31.

use cc2650;

fn init() {
    let device_peripherals = cc2650::Peripherals::take().unwrap();

    // Configure GPIO pins for output, maximum strength
        .modify(|_r, w| w.port_id().gpio().ie().clear_bit().iostr().max());
        .modify(|_r, w| w.port_id().gpio().ie().clear_bit().iostr().max());

    // Enable the PERIPH power domain and wait for it to be powered up
    device_peripherals.PRCM.pdctl0.modify(|_r, w| w.periph_on().set_bit());
    loop {
        if device_peripherals.PRCM.pdstat0.read().periph_on().bit_is_set() {

    // Enable the GPIO clock
    device_peripherals.PRCM.gpioclkgr.write(|w| w.clk_en().set_bit());

    // Load settings into CLKCTRL and wait for LOAD_DONE
    device_peripherals.PRCM.clkloadctl.modify(|_r, w| w.load().set_bit());
    loop {
        if device_peripherals.PRCM.clkloadctl.read().load_done().bit_is_set() {

    // Enable outputs
        .modify(|_r, w| w.dio10().set_bit().dio15().set_bit());

#Supported Devices

Note: There are other devices in the CC26x0 family that may also work but these have not been tested.


This crate was generated from SVD files generated by dslite2svd.


This project is dual licenced under: