Skip to content

Commit

Permalink
Define LCOMP mode only when LCOMP peripheral exists
Browse files Browse the repository at this point in the history
  • Loading branch information
nikolac committed Dec 19, 2020
1 parent 6e430f3 commit d97b044
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions variants/MyBoardNRF5/WVariant_arduino.h
Original file line number Diff line number Diff line change
Expand Up @@ -135,11 +135,13 @@ extern const PinDescription g_APinDescription[] ;
#endif
#define AREF LPCOMP_REFSEL_REFSEL_ARef | (LPCOMP_EXTREFSEL_EXTREFSEL_AnalogReference0 << 16)

#if defined(LPCOMP_PRESENT)
typedef enum{
UP = LPCOMP_ANADETECT_ANADETECT_Up,
DOWN = LPCOMP_ANADETECT_ANADETECT_Down,
CROSS = LPCOMP_ANADETECT_ANADETECT_Cross
}detect_mode;
#endif


#ifdef __cplusplus
Expand Down

0 comments on commit d97b044

Please sign in to comment.