Skip to content
This repository was archived by the owner on Jun 23, 2024. It is now read-only.

Commit 44cc075

Browse files
bors[bot]robamu
andauthored
Merge #21
21: First I2C implementation r=robamu a=robamu 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 Co-authored-by: Robin Mueller <robin.mueller.m@gmail.com>
2 parents 70d9f12 + 3886e2f commit 44cc075

File tree

7 files changed

+937
-7
lines changed

7 files changed

+937
-7
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,13 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
88

99
## [unreleased]
1010

11+
## [0.2.2]
12+
1113
### Added
1214

1315
- DelayUs and DelayMs trait implementations for timer
1416
- SPI implementation for blocking API, supports blockmode as well
17+
- Basic I2C implementation for blocking API
1518

1619
### Changed
1720

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "va108xx-hal"
3-
version = "0.2.1"
3+
version = "0.2.2"
44
authors = ["Robin Mueller <robin.mueller.m@gmail.com>"]
55
edition = "2021"
66
description = "HAL for the Vorago VA108xx family of microcontrollers"
@@ -21,7 +21,7 @@ once_cell = { version = "1.8.0", default-features = false }
2121
libm = "0.2.1"
2222

2323
[dependencies.va108xx]
24-
version = "0.1"
24+
version = "0.1.3"
2525

2626
[features]
2727
rt = ["va108xx/rt"]

examples/spi.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ use va108xx_hal::{
1212
gpio::{PinsA, PinsB},
1313
pac::{self, SPIA, SPIB},
1414
prelude::*,
15-
spi::{self, NoneT, Spi, SpiBase, TransferConfig},
15+
spi::{self, Spi, SpiBase, TransferConfig},
1616
timer::CountDownTimer,
1717
};
1818

examples/timer-ticks.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ fn main() -> ! {
2929
let mut dp = pac::Peripherals::take().unwrap();
3030
let mut last_ms = 0;
3131
rprintln!("-- Vorago system ticks using timers --");
32-
set_sys_clock(50.mhz().into());
32+
set_sys_clock(50.mhz());
3333
let lib_type = LibType::Hal;
3434
match lib_type {
3535
LibType::Pac => {

0 commit comments

Comments
 (0)