Skip to content

Commit d97b044

Browse files
committed
Define LCOMP mode only when LCOMP peripheral exists
1 parent 6e430f3 commit d97b044

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

variants/MyBoardNRF5/WVariant_arduino.h

+2
Original file line numberDiff line numberDiff line change
@@ -135,11 +135,13 @@ extern const PinDescription g_APinDescription[] ;
135135
#endif
136136
#define AREF LPCOMP_REFSEL_REFSEL_ARef | (LPCOMP_EXTREFSEL_EXTREFSEL_AnalogReference0 << 16)
137137

138+
#if defined(LPCOMP_PRESENT)
138139
typedef enum{
139140
UP = LPCOMP_ANADETECT_ANADETECT_Up,
140141
DOWN = LPCOMP_ANADETECT_ANADETECT_Down,
141142
CROSS = LPCOMP_ANADETECT_ANADETECT_Cross
142143
}detect_mode;
144+
#endif
143145

144146

145147
#ifdef __cplusplus

0 commit comments

Comments
 (0)