Commit Graph

13 Commits

Author SHA1 Message Date
9af01f3067 Added PWM implementation and example 2021-12-05 17:44:18 +01:00
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
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
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
63be6ed5fe Refactored GPIO module
- The GPIO module uses type-level programming now
- Implementation heavily based on the ATSAMD GPIO HAL:
  https://docs.rs/atsamd-hal/0.13.0/atsamd_hal/gpio/v2/index.html
- Changes to API, but no passing of peripheral references necessary
  anymore. All examples and tests updated accordingly
2021-11-11 17:39:26 +01:00
b18e32e0cc Rust edition bumped & UART implementation
- Also adds UART example
2021-11-09 18:37:52 +01:00
0d935dae50
added timer example code 2021-11-08 01:43:02 +01:00
f3d71cf0f9
Timer and Clock modules added
- Clock module to set and retrieve system clock which can have
  varying frequencies. Also allows enabling peripheral clocks
- Prelude updated
- Common time types added, based on stm32f1xx HAL implementation
- Basic timer implementation added
2021-11-08 01:40:01 +01:00
8f56468a1e
update toml file 2021-11-08 01:34:09 +01:00
a463332d58
optimize for size by default 2021-11-06 17:10:06 +01:00
9020fc92d0
Refactored parts of the GPIO implementation 2021-11-06 16:16:53 +01:00
9181e61e70
Added first GPIO implementation
- First GPIO implementation based on the stm32f0xx amd stm32f1xx
HAL implementations for the HAL module
2021-11-06 01:27:04 +01:00
3ae5b0e27d
init commit 2021-11-03 23:11:59 +01:00