mirror of
https://github.com/italicsjenga/rp-hal-boards.git
synced 2025-01-26 03:06:32 +11:00
Run pwm.rs and pwm_blink.rs through cargo-fmt
This commit is contained in:
parent
f87d7ba768
commit
d2aa2b238d
2 changed files with 9 additions and 5 deletions
|
@ -18,7 +18,12 @@ fn main() -> ! {
|
|||
|
||||
//Instead of having it take references to all of these pac objects, eventually this should just
|
||||
//take ownership of a GPIO pin.
|
||||
pwm_pin.default_config(&mut pac.PWM, &mut pac.PADS_BANK0, &mut pac.IO_BANK0, &mut pac.RESETS);
|
||||
pwm_pin.default_config(
|
||||
&mut pac.PWM,
|
||||
&mut pac.PADS_BANK0,
|
||||
&mut pac.IO_BANK0,
|
||||
&mut pac.RESETS,
|
||||
);
|
||||
|
||||
pwm_pin.set_ph_correct();
|
||||
|
||||
|
|
|
@ -47,9 +47,9 @@
|
|||
//! min_config() leaves those registers in the state they were before it was called (Careful, this can lead to unexpected behavior)
|
||||
//! It's recommended to only call min_config() after calling default_config() on a pin that shares a PWM block.
|
||||
|
||||
use embedded_hal::PwmPin;
|
||||
use crate::resets::SubsystemReset;
|
||||
use super::*;
|
||||
use crate::resets::SubsystemReset;
|
||||
use embedded_hal::PwmPin;
|
||||
|
||||
macro_rules! pwm {
|
||||
($PWMX:ident, $pwmx:ident, [
|
||||
|
@ -256,4 +256,3 @@ pwm! {
|
|||
Pwm7: (pwm7, "pwm7", [14, 15], 7),
|
||||
]
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue