post_rules.mk 307 B

12345678
  1. # if ENCODER_ENABLE is set, add defines but avoid adding encoder.c as it's replaced by custom code in rev2.c
  2. ifeq ($(strip $(ENCODER_ENABLE)), yes)
  3. ENCODER_ENABLE := no
  4. OPT_DEFS += -DENCODER_ENABLE
  5. ifeq ($(strip $(ENCODER_MAP_ENABLE)), yes)
  6. OPT_DEFS += -DENCODER_MAP_ENABLE
  7. endif
  8. endif