Read/write BK4819 regs through UART

This commit is contained in:
Krzysiek Egzmont
2023-12-09 19:01:38 +01:00
parent 38ec40b0db
commit 995045006f
2 changed files with 57 additions and 0 deletions

View File

@@ -49,6 +49,7 @@ ENABLE_SCAN_RANGES ?= 1
# ---- DEBUGGING ----
ENABLE_AM_FIX_SHOW_DATA ?= 0
ENABLE_AGC_SHOW_DATA ?= 0
ENABLE_UART_RW_BK_REGS ?= 0
#############################################################
@@ -369,6 +370,9 @@ endif
ifeq ($(ENABLE_FLASHLIGHT),1)
CFLAGS += -DENABLE_FLASHLIGHT
endif
ifeq ($(ENABLE_UART_RW_BK_REGS),1)
CFLAGS += -DENABLE_UART_RW_BK_REGS
endif
LDFLAGS =
LDFLAGS += -z noexecstack -mcpu=cortex-m0 -nostartfiles -Wl,-T,firmware.ld -Wl,--gc-sections