1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2024-11-30 08:24:11 +01:00

OP-256 PIOS/PWM: Disable from the pios_board.c file when not using PWM

git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2589 ebee16cc-31ac-478f-84a7-5cbb03baadba
This commit is contained in:
peabody124 2011-01-24 23:17:39 +00:00 committed by peabody124
parent 3968a99e22
commit 92dd78db51
2 changed files with 4 additions and 0 deletions

View File

@ -551,6 +551,7 @@ const struct pios_servo_cfg pios_servo_cfg = {
/* /*
* PWM Inputs * PWM Inputs
*/ */
#if defined(PIOS_INCLUDE_PWM)
#include <pios_pwm_priv.h> #include <pios_pwm_priv.h>
const struct pios_pwm_channel pios_pwm_channels[] = { const struct pios_pwm_channel pios_pwm_channels[] = {
{ {
@ -645,6 +646,7 @@ void PIOS_TIM4_irq_handler()
{ {
PIOS_PWM_irq_handler(TIM4); PIOS_PWM_irq_handler(TIM4);
} }
#endif
/* /*
* I2C Adapters * I2C Adapters

View File

@ -691,6 +691,7 @@ const struct pios_servo_cfg pios_servo_cfg = {
/* /*
* PWM Inputs * PWM Inputs
*/ */
#if defined(PIOS_INCLUDE_PWM)
#include <pios_pwm_priv.h> #include <pios_pwm_priv.h>
const struct pios_pwm_channel pios_pwm_channels[] = { const struct pios_pwm_channel pios_pwm_channels[] = {
{ {
@ -793,6 +794,7 @@ void PIOS_TIM3_irq_handler()
{ {
PIOS_PWM_irq_handler(TIM3); PIOS_PWM_irq_handler(TIM3);
} }
#endif
/* /*
* COM devices * COM devices