embedded-hal
embedded-hal copied to clipboard
A Hardware Abstraction Layer (HAL) for embedded systems
What are your thoughts on `Datetime`, `Time`, `Date` etc traits? They seem like a good fit because they're not available natively on `no_std`, are a common feature. It would be...
Background: I'm using a SPI device on an STM32F303, with the `stm32f30x-hal` crate. In this crate, the `FullDuplex::send` implementation does the [following check](https://docs.rs/stm32f30x-hal/0.2.0/src/stm32f30x_hal/spi.rs.html#188-194) (edited below for clarity): ``` if sr.txe().bit_is_set()...
In the `blocking::serial` module there is no `Read` trait, but there is on in the `serial` module. Is there a reason why there is no `Read` trait in the blocking...
Currently SPI have one model of work - Master + FullDuplex. But some mcu and mpu have more intelligence SPI implementation: HalfDuplex, variable length of transfer (4 - 16 bit),...
Disclaimer: a) I'm not currently using Rust in the embedded context, and don't have any concrete plans to do so in the near future, and b) the platforms I'm referencing...
Having worked with a few different modems lately (nRF9160, Quectel BC68, ESP8266) I note they all have APIs to open sockets, and read/write, etc, but they're all different. The nRF9160...
I'd like to use a timer to measure how long something takes. I can't use the timer trait currently since there's no way to read the current timer value. What...
I am currently bindgen'ing OpenThread and want to create an idiomatic wrapper around it. Among other things (e.g. [radio-hal](https://github.com/ryankurte/rust-radio-hal/issues/6)), OpenThread needs support for a MilliSecond timer API: ``` pub unsafe...
### Summary of this thread as of 2018-04-02 Current status of the DMA API design: I think we have a clear idea of what the API should provide: It MUST...
Almost all the hal implementations: - have the same time.rs module defining time object like `Hz` - implement (more or less right) a Delay object on each timer. I think...