[ion/device] Add parameter PCB_LATEST

This indicates the latest PCB revision on which this version of Epsilon
can run.
This commit is contained in:
Gabriel Ozouf
2021-03-12 14:10:24 +01:00
committed by Gabriel
parent 3000431f3b
commit e456667d5e
3 changed files with 3 additions and 1 deletions

View File

@@ -1,2 +1,3 @@
TOOLCHAIN ?= arm-gcc-m4f
ION_KEYBOARD_LAYOUT = layout_B2
PCB_LATEST = 0

View File

@@ -1,2 +1,3 @@
TOOLCHAIN ?= arm-gcc-m7f
ION_KEYBOARD_LAYOUT = layout_B3
PCB_LATEST = 111

View File

@@ -12,7 +12,7 @@ endif
ion_src += ion/src/shared/collect_registers.cpp
ION_DEVICE_SFLAGS = -Iion/src/device/$(MODEL) -Iion/src/device/shared
ION_DEVICE_SFLAGS = -Iion/src/device/$(MODEL) -Iion/src/device/shared -DPCB_LATEST=$(PCB_LATEST)
$(call object_for,$(ion_device_src) $(ion_device_flasher_src) $(ion_device_bench_src)): SFLAGS += $(ION_DEVICE_SFLAGS)