fix ppm interrupt definitions for lpc21

This commit is contained in:
Felix Ruess
2010-10-25 21:59:10 +00:00
parent 3043392778
commit de7decbf65
2 changed files with 13 additions and 21 deletions
+2 -10
View File
@@ -19,11 +19,8 @@ uint32_t sys_time_chrono; /* T0TC ticks */
#define PPM_IT 0x00
#endif
#if defined RADIO_CONTROL && defined RADIO_CONTROL_TYPE_PPM
#include <subsystems/radio_control/ppm.h>
#else
//FIXME remove this and fix timer mask
#define RADIO_CONTROL_PPM_IT 0x00
#endif
#ifdef MB_SCALE
#include "mb_scale.h"
@@ -58,6 +55,7 @@ uint32_t sys_time_chrono; /* T0TC ticks */
#define TRIGGER_IT 0x00
#endif
//FIXME: RADIO_CONTROL_PPM_IT not used anymore
#define TIMER0_IT_MASK (ACTUATORS_IT |\
PPM_IT |\
RADIO_CONTROL_PPM_IT |\
@@ -103,12 +101,6 @@ void TIMER0_ISR ( void ) {
LED_TOGGLE(3);
}
#endif
#if defined RADIO_CONTROL && defined RADIO_CONTROL_TYPE_PPM
if (T0IR&RADIO_CONTROL_PPM_IT) {
RADIO_CONTROL_PPM_ISR();
T0IR = RADIO_CONTROL_PPM_IT;
}
#endif
#ifdef MB_SCALE
if (T0IR&MB_SCALE_IT) {
MB_SCALE_ICP_ISR();