mirror of
https://github.com/paparazzi/paparazzi.git
synced 2026-05-28 01:53:48 +08:00
fix ppm interrupt definitions for lpc21
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user