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

Fix pwm period calc #3795

Merged
merged 6 commits into from
Mar 9, 2017
Merged

Fix pwm period calc #3795

merged 6 commits into from
Mar 9, 2017

Commits on Feb 17, 2017

  1. STM32 L1: Define PWM Channels in PeripheralsPins.c

    As done for other families, let's define the PWM channel in the PWM
    pins table definition rather than driver.
    LMESTM committed Feb 17, 2017
    Configuration menu
    Copy the full SHA
    293b9fc View commit details
    Browse the repository at this point in the history
  2. STM32: make PWM driver into a common file

    The pwmout driver is very similar for each STM32 family.
    
    The only family specific part is defined in pwmout_device.h file.
    It mainly contains few specific information:
    - The mapping of PWM/TIMERS to APB1 or APB2 so that we can get the clock
    - The clock calculation uses the right APB clock, which was sometimes
    not the case before and could have lead to errors in case dividers were
    enabled on APB clock settings. This case is now covered.
    - Inactivation of inverted support on feaw families
    LMESTM committed Feb 17, 2017
    Configuration menu
    Copy the full SHA
    1cbb3e1 View commit details
    Browse the repository at this point in the history

Commits on Feb 27, 2017

  1. STM32: pwm period and prescaler calculation

    Correct the while loop limit and add a safe guard to avoid infinite loop.
    LMESTM committed Feb 27, 2017
    Configuration menu
    Copy the full SHA
    8e5d2eb View commit details
    Browse the repository at this point in the history
  2. STM32: move pwmout device tables to C file

    In order to avoid possible multiple definitions errors, move the table
    initialization to the C file instead of header file
    LMESTM committed Feb 27, 2017
    Configuration menu
    Copy the full SHA
    747e8e1 View commit details
    Browse the repository at this point in the history
  3. STM32: fix formatting

    Use the recommended style
    if (condition) {
      do();
    } else {
      do_else();
    }
    LMESTM committed Feb 27, 2017
    Configuration menu
    Copy the full SHA
    3842f6e View commit details
    Browse the repository at this point in the history

Commits on Mar 7, 2017

  1. Fix XDOT compilation error

    Typo with misplaced closing parenthesis leads to compilation error,
    which is fixed with this patch
    LMESTM committed Mar 7, 2017
    Configuration menu
    Copy the full SHA
    400b89e View commit details
    Browse the repository at this point in the history