Browse Source

efm32lg: acmp: Fixed ACMP_CTRL_HYSTSEL_HYSTx definition.

pull/771/merge
kbob 9 years ago
committed by Karl Palsson
parent
commit
74316e6901
  1. 2
      include/libopencm3/efm32/lg/acmp.h

2
include/libopencm3/efm32/lg/acmp.h

@ -61,7 +61,7 @@
#define ACMP_CTRL_HYSTSEL_MASK (0x7 << ACMP_CTRL_HYSTSEL_SHIFT)
#define ACMP_CTRL_HYSTSEL(v) \
(((v) << ACMP_CTRL_HYSTSEL_SHIFT) & ACMP_CTRL_HYSTSEL_MASK)
#define ACMP_CTRL_HYSTSEL_HYSTx(x) ACMP_CTRL_HYSTSEL_HYST(x)
#define ACMP_CTRL_HYSTSEL_HYSTx(x) ACMP_CTRL_HYSTSEL(x)
#define ACMP_CTRL_HYSTSEL_HYST0 ACMP_CTRL_HYSTSEL_HYSTx(0)
#define ACMP_CTRL_HYSTSEL_HYST1 ACMP_CTRL_HYSTSEL_HYSTx(1)
#define ACMP_CTRL_HYSTSEL_HYST2 ACMP_CTRL_HYSTSEL_HYSTx(2)

Loading…
Cancel
Save