From 523a5d1a0d0f9cae48343536af6bfae30b25f671 Mon Sep 17 00:00:00 2001 From: TheZoq2 Date: Sun, 17 Nov 2019 10:57:37 +0100 Subject: [PATCH 1/2] Add rudimentary docs for the usb module --- src/usb.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/usb.rs b/src/usb.rs index 9a6fd9b9..f1c2c19f 100644 --- a/src/usb.rs +++ b/src/usb.rs @@ -1,5 +1,9 @@ //! USB peripheral +//! Requires the `stm32_usbd` feature. +//! See https://github.com/stm32-rs/stm32f1xx-hal/tree/master/examples +//! for usage examples + use crate::pac::{RCC, USB}; use stm32_usbd::UsbPeripheral; From c4a58778ad98c2fef5dfbe3a70e3dfd83afb8ca0 Mon Sep 17 00:00:00 2001 From: Frans Skarman Date: Sun, 17 Nov 2019 13:10:41 +0100 Subject: [PATCH 2/2] Update src/usb.rs Co-Authored-By: Vadim Kaushan --- src/usb.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/usb.rs b/src/usb.rs index f1c2c19f..f5c45dba 100644 --- a/src/usb.rs +++ b/src/usb.rs @@ -1,6 +1,6 @@ //! USB peripheral -//! Requires the `stm32_usbd` feature. +//! Requires the `stm32-usbd` feature. //! See https://github.com/stm32-rs/stm32f1xx-hal/tree/master/examples //! for usage examples