[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[paparazzi-commits] [paparazzi/paparazzi] 649f2b: [stm32] F4: fix ppm in
From: |
GitHub |
Subject: |
[paparazzi-commits] [paparazzi/paparazzi] 649f2b: [stm32] F4: fix ppm input timer frequency for TIM2 |
Date: |
Tue, 09 Jul 2013 12:48:53 -0700 |
Branch: refs/heads/v5.0
Home: https://github.com/paparazzi/paparazzi
Commit: 649f2bd1dbc5702edbc4cbacf44d25ba3ccd8cc9
https://github.com/paparazzi/paparazzi/commit/649f2bd1dbc5702edbc4cbacf44d25ba3ccd8cc9
Author: Felix Ruess <address@hidden>
Date: 2013-07-09 (Tue, 09 Jul 2013)
Changed paths:
M sw/airborne/arch/stm32/subsystems/radio_control/ppm_arch.c
M sw/airborne/arch/stm32/subsystems/radio_control/ppm_arch.h
M sw/airborne/boards/krooz_sd.h
Log Message:
-----------
[stm32] F4: fix ppm input timer frequency for TIM2
- krooz: don't use TIM2 for PWM
- change to 6 ticks per usec to fit all frequencies
- on the F1 we assume to run at 72MHz for HCLK and both timer clocks
TIM1 -> APB2 = HCLK = 72MHz
TIM2 -> 2 * APB1 = 2 * 36MHz = 72MHz
- on the F4 we assume 2 * AHB clock:
TIM1 -> 2 * APB2 = 168MHz
TIM2 -> 2 * APB1 = 84MHz
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [paparazzi-commits] [paparazzi/paparazzi] 649f2b: [stm32] F4: fix ppm input timer frequency for TIM2,
GitHub <=