Skip to content

Commit bc73e38

Browse files
committed
Update comments and fmt
1 parent b3ce8c2 commit bc73e38

File tree

4 files changed

+12
-2
lines changed

4 files changed

+12
-2
lines changed

examples/comp.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
//! ## Origin
2+
//!
3+
//! This code has been taken from the stm32g0xx-hal project and modified slightly to support
4+
//! STM32G4xx MCUs.
5+
16
//#![deny(warnings)]
27
#![deny(unsafe_code)]
38
#![no_main]

examples/dac.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
//! ## Origin
2+
//!
3+
//! This code has been taken from the stm32g0xx-hal project and modified to support
4+
//! STM32G4xx MCUs.
5+
16
// #![deny(warnings)]
27
#![deny(unsafe_code)]
38
#![no_main]

src/comparator.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,7 @@ refint_input!(COMP5, COMP6, COMP7,);
347347

348348
macro_rules! dac_input_helper {
349349
($COMP:ident: $channel:ident, $MODE:ident, $bits:expr) => {
350-
impl<ED> NegativeInput<$COMP> for &dac::$channel<{dac::$MODE}, ED> {
350+
impl<ED> NegativeInput<$COMP> for &dac::$channel<{ dac::$MODE }, ED> {
351351
const USE_VREFINT: bool = false;
352352

353353
fn use_resistor_divider(&self) -> bool {

src/dac.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
//!
33
//! ## Origin
44
//!
5-
//! This code has been taken from the stm32g0xx-hal project and modified slightly to support
5+
//! This code has been taken from the stm32g0xx-hal project and modified to support
66
//! STM32G4xx MCUs.
77
88
use core::marker::PhantomData;

0 commit comments

Comments
 (0)