simpler conditional compilation
This commit is contained in:
parent
05b392aadd
commit
a49bb5337f
|
@ -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.
|
||||
|
|
|
@ -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
|
|
@ -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
|
Loading…
Reference in New Issue