Commit Graph

6 Commits

Author SHA1 Message Date
Robin Müller f376a43f41
Major refactoring
Rust/va108xx-hal/pipeline/head There was a failure building this commit Details
- Improved IRQ handling, which makes most unsafe unmask operations
  in user code absolete
- Add first UART RX handlers which use an IRQ
2021-12-19 14:18:10 +01:00
Robin Müller 779d5a94ec Timer API now macroless
- Separation of TIM reg and TIM pin IF
- Improvements of API
2021-12-05 23:00:28 +01:00
Robin Müller 3886e2f11f First I2C implementation
Initial I2C HAL implementation.
Only the I2cMaster was tested so far, I2cSlave will be tested next.

Master side was tested with a temerature sensor example application
in the vorago-reb1 crate
2021-12-02 12:05:24 +01:00
Robin Müller 2a9225fda5 added blocking delay functions
- DelayUs and DelayMs trait implementations for CountDown timer
  peripherals
- Bugfix for wait function
2021-11-20 15:09:12 +01:00
Robin Müller af5a831579 Added GPIO IRQ interface, refactoring
- Adds the IRQ interface to configure interrupts on output and input pins
- Moved the `FilterClkSel` struct to the `clock` module, reexporting in `gpio`
- Added function to set clock divisor registers
- Clearing output state at initialization of Output pins
- Added utility function to set up millisecond timer
2021-11-13 14:51:24 +01:00
Robin Müller 0d935dae50
added timer example code 2021-11-08 01:43:02 +01:00