mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2024-11-29 07:24:13 +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:
parent
3968a99e22
commit
92dd78db51
@ -551,6 +551,7 @@ const struct pios_servo_cfg pios_servo_cfg = {
|
||||
/*
|
||||
* PWM Inputs
|
||||
*/
|
||||
#if defined(PIOS_INCLUDE_PWM)
|
||||
#include <pios_pwm_priv.h>
|
||||
const struct pios_pwm_channel pios_pwm_channels[] = {
|
||||
{
|
||||
@ -645,6 +646,7 @@ void PIOS_TIM4_irq_handler()
|
||||
{
|
||||
PIOS_PWM_irq_handler(TIM4);
|
||||
}
|
||||
#endif
|
||||
|
||||
/*
|
||||
* I2C Adapters
|
||||
|
@ -691,6 +691,7 @@ const struct pios_servo_cfg pios_servo_cfg = {
|
||||
/*
|
||||
* PWM Inputs
|
||||
*/
|
||||
#if defined(PIOS_INCLUDE_PWM)
|
||||
#include <pios_pwm_priv.h>
|
||||
const struct pios_pwm_channel pios_pwm_channels[] = {
|
||||
{
|
||||
@ -793,6 +794,7 @@ void PIOS_TIM3_irq_handler()
|
||||
{
|
||||
PIOS_PWM_irq_handler(TIM3);
|
||||
}
|
||||
#endif
|
||||
|
||||
/*
|
||||
* COM devices
|
||||
|
Loading…
Reference in New Issue
Block a user