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

[stm32] actuators_pwm: replace set_servo_gpio with gpio_setup_pin_af #757

Closed
wants to merge 1 commit into from

Conversation

flixr
Copy link
Member

@flixr flixr commented Jun 20, 2014

  • AFIO remap in board file
  • gpio_setup_pin_af with uint32_t for af
  • remove PWM_SERVO_x_RCC

Confirmed to fix actuators_pwm on LisaL, please also test on LisaM and F4 boards...

- AFIO remap in board file
- gpio_setup_pin_af with uint32_t for af
- remove PWM_SERVO_x_RCC
@flixr flixr added the stm32 label Jun 20, 2014
@flixr flixr added this to the v5.2 milestone Jun 20, 2014
@@ -51,7 +51,11 @@ extern void gpio_setup_input(uint32_t port, uint16_t gpios);
* Setup a gpio for input or output with alternate function.
* This is an STM32 specific helper funtion and should only be used in stm32 arch code.
*/
#if defined(STM32F1)
extern void gpio_setup_pin_af(uint32_t port, uint16_t pin, uint32_t af, bool_t is_output);
#else
extern void gpio_setup_pin_af(uint32_t port, uint16_t pin, uint8_t af, bool_t is_output);

Choose a reason for hiding this comment

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

uint32_t af ?

Copy link
Member Author

Choose a reason for hiding this comment

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

In f4 its only 8bit

Copy link
Member Author

Choose a reason for hiding this comment

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

and on F1 you pass a 32bit value... if that is what you meant.

Copy link
Member

Choose a reason for hiding this comment

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

I also had problems with the gpio_get when compiling an F4.. that it was giving a warning sometimes.

Copy link
Member Author

Choose a reason for hiding this comment

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

That is not related to this pull, but can you be a bit more specific? gpio_get is a function from libopencm3...

@flixr flixr closed this in 2f0df31 Jun 24, 2014
@flixr flixr deleted the lisa_l_pwm branch June 24, 2014 11:22
@flixr flixr modified the milestone: v5.2 Jul 26, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants