Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

move PWM pins connecting after inialization #791

Merged
merged 1 commit into from
Oct 4, 2024
Merged

Conversation

burrbull
Copy link
Member

@burrbull burrbull commented Aug 4, 2024

The main idea is from stm32-rs/stm32f3xx-hal#34 but with several changes.

Always split PWM on manager and channels.

The main disadvantage is removed embedded_hal_02::Pwm as no more Pwm struct.

cc @apollolabsdev @kossnikita

@burrbull burrbull force-pushed the pwm-pins-after branch 2 times, most recently from c564f07 to 328bce5 Compare August 4, 2024 20:03
@burrbull burrbull mentioned this pull request Aug 7, 2024
pub fn set_duty(&mut self, duty: u16) {
TIM::set_cc_value(C, duty as u32)
}
self.tim.start_pwm();
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should it be stopped here? Add pub fn start/stop ?

@burrbull burrbull marked this pull request as ready for review October 4, 2024 06:34
@burrbull burrbull merged commit e6e42f1 into master Oct 4, 2024
22 checks passed
@burrbull burrbull deleted the pwm-pins-after branch October 5, 2024 11:24
rursprung added a commit to rursprung/tb6612fng-rs that referenced this pull request Oct 8, 2024
this is a breaking change. see stm32-rs/stm32f4xx-hal#791 for details.
rursprung added a commit to rursprung/tb6612fng-rs that referenced this pull request Oct 8, 2024
this is a breaking change. see stm32-rs/stm32f4xx-hal#791 for details.
rursprung added a commit to rursprung/tb6612fng-rs that referenced this pull request Oct 12, 2024
this is a breaking change and thus needs some manual changes.
see stm32-rs/stm32f4xx-hal#791 for details.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant