Skip to content

Commit

Permalink
burstgen: get the fw build version from Makefile
Browse files Browse the repository at this point in the history
TODO: modify fwlib_init() or use new function to get the version as string
  • Loading branch information
ebold-cscotos committed Oct 23, 2024
1 parent 3248c54 commit ab6ee46
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
3 changes: 2 additions & 1 deletion modules/burst_generator/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ DEBUGLVL = 1
EXTRA_FLAGS ?=
CFLAGS = -I$(PATHFW) -I$(PATHSCU) \
-I$(PATHFW)/../common-libs/include \
-DDEBUGLEVEL=$(DEBUGLVL) $(EXTRA_FLAGS)
-DDEBUGLEVEL=$(DEBUGLVL) $(EXTRA_FLAGS) \
-DBG_FW_VERSION=0x$(subst .,,$(VERSION))

SRC_FILES = $(PATHFW)/$(TARGET).c \
$(PATHFW)/../common-libs/fw/common-fwlib.c \
Expand Down
1 change: 0 additions & 1 deletion modules/burst_generator/bg.h
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ extern uint32_t* _startshared[];

/* id number to identify the LM32 firmware for burst generator */
#define BG_FW_ID 0xb2b2b2b2UL
#define BG_FW_VERSION 0x000100 // 0xMMmmRR, M-major, m-minor, R-revision
#define BG_TAG "bg"

#define N_BURSTS 17 // maximum number of bursts can be generated, but bursts 1..N_BURSTS-1 are used
Expand Down

0 comments on commit ab6ee46

Please sign in to comment.