endif
-#uncomment to enable EMV
+# uncomment these two; to enable EMV
#APP_CFLAGS += -DWITH_EMV
-#uncomment to fix 256 vs 512kb Devices
+#COMMON_FLAGS += -DWITH_EMV
+
+# uncomment these two; to fix 256 vs 512kb PM3 devices
+# flashing bootrom -b is needed
APP_CFLAGS += -DHAS_512_FLASH
+COMMON_FLAGS += -DHAS_512_FLASH
+
# Also search prerequisites in the common directory (for usb.c), the fpga directory (for fpga.bit), and the zlib directory
VPATH = . ../common ../fpga ../zlib