Commit Graph

26 Commits

Author SHA1 Message Date
Robin Müller 5cbbb53094 some minor improvements
Rust/va108xx-hal/pipeline/head This commit looks good Details
- Docs updated, internal architecture improvements
2021-12-21 00:30:28 +01:00
Robin Müller 491ef3ce09
update example documentation
Rust/va108xx-hal/pipeline/head This commit looks good Details
2021-12-21 00:06:50 +01:00
Robin Müller a8b484d66f UART reception and echo reply now working
Rust/va108xx-hal/pipeline/head This commit looks good Details
- Important bugfix in UART: use `modify` instead of `write` when enabling
  or disabling TX or RX
- Extend RTIC example application. Reply handling is dispatched to lower
  priority interrupt
2021-12-20 11:25:00 +01:00
Robin Müller d458a81635
RTIC additions
Rust/va108xx-hal/pipeline/head This commit looks good Details
- Use RTIC in UART IRQ example
- Add RTIC template
2021-12-19 14:38:11 +01:00
Robin Müller d5b12c8343
some fixes for manifest file
Rust/va108xx-hal/pipeline/head This commit looks good Details
2021-12-19 14:25:15 +01:00
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 732f3e3bc8
use HAL delay instead of bare metal delay 2021-12-18 14:31:44 +01:00
Robin Müller bdbe666a2c
applied cargo fmt
Rust/va108xx-hal/pipeline/head There was a failure building this commit Details
2021-12-17 10:36:05 +01:00
Robin Müller 0bc7e0f341
new blinky example, cargo.toml update 2021-12-16 11:26:26 +01:00
Robin Müller 659b7e8f27
Replaced Hertz by impl Into<Hertz> completely
Rust/va108xx-hal/pipeline/head This commit looks good Details
Rust/va108xx-hal/pipeline/pr-main Build started... Details
2021-12-09 23:19:21 +01:00
Robin Müller 5f712b6ab7 added cascade example
- Slight change to CountDownTimer input parameter format
2021-12-06 12:39:13 +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 9af01f3067 Added PWM implementation and example 2021-12-05 17:44:18 +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 4feb74e4a6 SPI improvements / Clock passing update
1. Using `impl Into<Hertz>` instead of Hertz now to increase
   usability for users
2. Update for SPI API to increase usability
2021-11-21 20:18:42 +01:00
Robin Müller 283d9d5991 Doc fixes and SPI block mode support
- Various smaller fixes for documentation
- Added support for SPI blockmode
2021-11-21 14:04:17 +01:00
Robin Müller cbc7c88112
Added SPI implementation
- First SPI HAL implementation for blocking mode
- Added example for SPI as well which uses loopback mode
  and regular mode
2021-11-20 23:57:08 +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 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
Robin Müller b18e32e0cc Rust edition bumped & UART implementation
- Also adds UART example
2021-11-09 18:37:52 +01:00
Robin Müller ed4ba39207
Added proper README
- Also contains new simple blinky example
- Small CI update
2021-11-08 11:06:25 +01:00
Robin Müller cf1d8ff113
Merge remote-tracking branch 'origin/main' into mueller/rtt-example 2021-11-08 10:08:10 +01:00
Robin Müller e2df601d66 added RTT example app 2021-11-08 10:05:39 +01:00
Robin Müller 40a073d6c4 Added tests example 2021-11-08 10:04:08 +01:00
Robin Müller 0d935dae50
added timer example code 2021-11-08 01:43:02 +01:00