Skip to content
Snippets Groups Projects
Select Git revision
  • 59c7e987bcf0bbfbd390b68121ae79d65eef2d34
  • master default protected
2 results

lib.rs

Blame
  • lib.rs 1.08 KiB
    //! Board Support Crate for the STM32F3DISCOVERY
    //!
    //! # Usage
    //!
    //! Follow `cortex-m-quickstart` [instructions][i] but remove the `memory.x`
    //! linker script and the `build.rs` build script file as part of the
    //! configuration of the quickstart crate. Additionally, uncomment the "if using
    //! ITM" block in the `.gdbinit` file.
    //!
    //! [i]: https://docs.rs/cortex-m-quickstart/0.2.0/cortex_m_quickstart/
    //!
    //! # Examples
    //!
    //! Check the [examples] module.
    //!
    //! [examples]: ./examples/index.html
    
    #![deny(missing_docs)]
    #![deny(warnings)]
    #![feature(const_fn)]
    #![feature(const_unsafe_cell_new)]
    #![feature(const_cell_new)]
    #![feature(get_type_id)]
    #![feature(never_type)]
    #![feature(unsize)]
    #![no_std]
    
    extern crate cast;
    extern crate embedded_hal as hal;
    extern crate nb;
    extern crate static_ref;
    
    pub extern crate stm32f40x;
    
    // For documentation only
    pub mod examples;
    
    pub mod dma;
    pub mod led;
    pub mod serial;
    pub mod timer;
    pub mod time;
    pub mod pwm;
    
    pub mod frequency;
    use frequency::*;
    
    pub use hal::prelude;
    pub use serial::Serial;
    pub use timer::{Channel, Timer};
    pub use pwm::Pwm;