Skip to content

Commit 338d77b

Browse files
author
Brandon Matthews
committed
Add RS485 support
1 parent 48d0372 commit 338d77b

File tree

6 files changed

+547
-348
lines changed

6 files changed

+547
-348
lines changed

Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ keywords = ["arm", "cortex-m", "stm32l0x1", "hal"]
66
license = "0BSD"
77
name = "stm32l0x1-hal"
88
repository = "https://github.com/thenewwazoo/stm32l0x1-hal/"
9-
version = "0.6.2"
9+
version = "0.6.3"
1010

1111
[dependencies]
1212
cortex-m = "0.5"

src/adc.rs

+8-2
Original file line numberDiff line numberDiff line change
@@ -194,9 +194,15 @@ impl ScanDir for ScanDown {
194194

195195
macro_rules! adc_pin {
196196
($PXi:ident, $i:expr) => {
197-
impl<RES, MODE> Channel<Adc<RES, MODE>> for $PXi<Analog> where MODE: RunMode, RES: Resolution {
197+
impl<RES, MODE> Channel<Adc<RES, MODE>> for $PXi<Analog>
198+
where
199+
MODE: RunMode,
200+
RES: Resolution,
201+
{
198202
type ID = u8;
199-
fn channel() -> u8 { $i }
203+
fn channel() -> u8 {
204+
$i
205+
}
200206
}
201207
};
202208
}

src/rcc/clocking.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ mod private {
1919
}
2020

2121
/// Types of clocks that have a frequency
22-
pub trait ClkSrc : private::Sealed {
22+
pub trait ClkSrc: private::Sealed {
2323
/// Returns the frequency of the clock, if the clock exists, else `None`.
2424
fn freq(&self) -> Option<Hertz>;
2525
}

0 commit comments

Comments
 (0)