[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[paparazzi-commits] [5201] Allow airframe or makefile to overload servo
From: |
Allen Ibara |
Subject: |
[paparazzi-commits] [5201] Allow airframe or makefile to overload servo frequency for stm32 pwm output (instead of hard coded to 40Hz) |
Date: |
Mon, 02 Aug 2010 23:42:57 +0000 |
Revision: 5201
http://svn.sv.gnu.org/viewvc/?view=rev&root=paparazzi&revision=5201
Author: aibara
Date: 2010-08-02 23:42:57 +0000 (Mon, 02 Aug 2010)
Log Message:
-----------
Allow airframe or makefile to overload servo frequency for stm32 pwm output
(instead of hard coded to 40Hz)
Modified Paths:
--------------
paparazzi3/trunk/sw/airborne/booz/arch/stm32/actuators/booz_actuators_pwm_hw.c
Modified:
paparazzi3/trunk/sw/airborne/booz/arch/stm32/actuators/booz_actuators_pwm_hw.c
===================================================================
---
paparazzi3/trunk/sw/airborne/booz/arch/stm32/actuators/booz_actuators_pwm_hw.c
2010-08-02 23:41:51 UTC (rev 5200)
+++
paparazzi3/trunk/sw/airborne/booz/arch/stm32/actuators/booz_actuators_pwm_hw.c
2010-08-02 23:42:57 UTC (rev 5201)
@@ -31,7 +31,9 @@
#define PCLK 72000000
#define ONE_MHZ_CLK 1000000
+#ifndef SERVO_HZ
#define SERVO_HZ 40
+#endif
void booz_actuators_pwm_hw_init(void) {
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [paparazzi-commits] [5201] Allow airframe or makefile to overload servo frequency for stm32 pwm output (instead of hard coded to 40Hz),
Allen Ibara <=