mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-02-21 11:54:15 +01:00
OP-256 PIOS/PWM: Set the interrupts correctly
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2577 ebee16cc-31ac-478f-84a7-5cbb03baadba
This commit is contained in:
parent
d4b4a6ca37
commit
7554021ed0
@ -751,12 +751,10 @@ const struct pios_pwm_channel pios_pwm_channels[] = {
|
|||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
void TIM2_IRQHandler();
|
void TIM1_CC_IRQHandler();
|
||||||
void TIM3_IRQHandler();
|
void TIM3_IRQHandler();
|
||||||
void TIM4_IRQHandler();
|
void TIM1_CC_IRQHandler() __attribute__ ((alias ("PIOS_TIM1_CC_irq_handler")));
|
||||||
void TIM2_IRQHandler() __attribute__ ((alias ("PIOS_TIM2_irq_handler")));
|
|
||||||
void TIM3_IRQHandler() __attribute__ ((alias ("PIOS_TIM3_irq_handler")));
|
void TIM3_IRQHandler() __attribute__ ((alias ("PIOS_TIM3_irq_handler")));
|
||||||
void TIM4_IRQHandler() __attribute__ ((alias ("PIOS_TIM4_irq_handler")));
|
|
||||||
const struct pios_pwm_cfg pios_pwm_cfg = {
|
const struct pios_pwm_cfg pios_pwm_cfg = {
|
||||||
.tim_base_init = {
|
.tim_base_init = {
|
||||||
.TIM_Prescaler = (PIOS_MASTER_CLOCK / 1000000) - 1,
|
.TIM_Prescaler = (PIOS_MASTER_CLOCK / 1000000) - 1,
|
||||||
@ -787,18 +785,14 @@ const struct pios_pwm_cfg pios_pwm_cfg = {
|
|||||||
.channels = pios_pwm_channels,
|
.channels = pios_pwm_channels,
|
||||||
.num_channels = NELEMENTS(pios_pwm_channels),
|
.num_channels = NELEMENTS(pios_pwm_channels),
|
||||||
};
|
};
|
||||||
void PIOS_TIM2_irq_handler()
|
void TIM1_CC_IRQHandler()
|
||||||
{
|
{
|
||||||
PIOS_PWM_irq_handler(TIM2);
|
PIOS_PWM_irq_handler(TIM1);
|
||||||
}
|
}
|
||||||
void PIOS_TIM3_irq_handler()
|
void TIM3_IRQHandler()
|
||||||
{
|
{
|
||||||
PIOS_PWM_irq_handler(TIM3);
|
PIOS_PWM_irq_handler(TIM3);
|
||||||
}
|
}
|
||||||
void PIOS_TIM4_irq_handler()
|
|
||||||
{
|
|
||||||
PIOS_PWM_irq_handler(TIM4);
|
|
||||||
}
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* COM devices
|
* COM devices
|
||||||
|
Loading…
x
Reference in New Issue
Block a user