simpler conditional compilation

This commit is contained in:
rusefi 2022-08-06 19:50:45 -04:00
parent 05b392aadd
commit a49bb5337f
3 changed files with 9 additions and 1 deletions

View File

@ -131,6 +131,7 @@ CPPSRC = $(ALLCPPSRC) \
can.cpp \
uart.cpp \
sent.cpp \
sent_hw_icu.cpp \
sent_hw_pal.cpp \
# List ASM source files here.

View File

@ -11,6 +11,8 @@
#include "sent.h"
#include "sent_hw_icu.h"
#if SENT_MODE_ICU
static void icuperiodcb_in1(ICUDriver *icup);
static void icuperiodcb_in2(ICUDriver *icup);
#if SENT_DEV == SENT_SILABS_SENS
@ -70,7 +72,7 @@ static ICUConfig icucfg_in4 =
0U,
0xFFFFFFFFU
};
#endif
#endif // SENT_DEV
static void icuperiodcb_in1(ICUDriver *icup)
{
@ -123,3 +125,4 @@ void InitSent()
#endif
}
#endif // SENT_MODE_ICU

View File

@ -11,6 +11,8 @@
#include "sent.h"
#include "sent_hw_pal.h"
#if SENT_MODE_PAL
uint32_t cyccnt_ch1;
uint32_t cyccnt_ch1_prev = 0;
uint16_t cyccnt_ch1_period;
@ -226,3 +228,5 @@ uint8_t SENT_GetTickValue(uint16_t dwt_val)
#endif
}
#pragma GCC pop_options
#endif // SENT_MODE_PAL