mirror of
https://github.com/mytechnotalent/Embedded-Hacking.git
synced 2026-08-21 02:17:22 +02:00
Add // comments to all use statements in driver .rs files
- Add // comments above top-level use imports in uart.rs, blink.rs, button.rs - Add // comments above test module use imports (use super::*, Infallible, ErrorType) in all 8 driver .rs files - All 8 drivers build, all 75 tests pass
This commit is contained in:
@@ -25,6 +25,7 @@
|
||||
//! OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
//! SOFTWARE.
|
||||
|
||||
// Embedded HAL digital output traits for GPIO pin control
|
||||
use embedded_hal::digital::{OutputPin, StatefulOutputPin};
|
||||
|
||||
/// GPIO output / LED blink driver that owns a single output pin.
|
||||
@@ -95,8 +96,11 @@ impl<P: OutputPin + StatefulOutputPin> BlinkDriver<P> {
|
||||
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
// Import all parent module items
|
||||
use super::*;
|
||||
// Infallible error type for mock pin implementations
|
||||
use core::convert::Infallible;
|
||||
// Error type trait for mock pin implementations
|
||||
use embedded_hal::digital::ErrorType;
|
||||
|
||||
struct MockPin {
|
||||
|
||||
Reference in New Issue
Block a user