From 3b993578f48f7f444795c4f55315a108b71d456f Mon Sep 17 00:00:00 2001 From: aanper Date: Mon, 19 Oct 2020 09:22:38 +0300 Subject: [PATCH] release/cc1101 debug build --- applications/applications.mk | 10 ++++++++-- applications/startup.h | 5 +++++ 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/applications/applications.mk b/applications/applications.mk index 869666c0..aff66448 100644 --- a/applications/applications.mk +++ b/applications/applications.mk @@ -3,7 +3,7 @@ LIB_DIR = $(PROJECT_ROOT)/lib CFLAGS += -I$(APP_DIR) -APP_RELEASE ?= 0 +APP_RELEASE ?= 1 ifeq ($(APP_RELEASE), 1) APP_GUI = 1 APP_INPUT = 1 @@ -21,7 +21,6 @@ C_SOURCES += $(wildcard $(APP_DIR)/app-loader/*.c) APP_EXAMPLE_BLINK = 1 APP_EXAMPLE_UART_WRITE = 1 APP_EXAMPLE_INPUT_DUMP = 1 -APP_CC1101 = 1 endif APP_TEST ?= 0 @@ -93,6 +92,13 @@ APP_INPUT = 1 APP_GUI = 1 endif +ifeq ($(APP_RELEASE), 1) +C_SOURCES += $(wildcard $(APP_DIR)/cc1101-workaround/*.c) +CPP_SOURCES += $(wildcard $(APP_DIR)/cc1101-workaround/*.cpp) +APP_INPUT = 1 +APP_GUI = 1 +endif + # device drivers APP_GUI ?= 0 ifeq ($(APP_GUI), 1) diff --git a/applications/startup.h b/applications/startup.h index ff8000a0..aaf55c64 100644 --- a/applications/startup.h +++ b/applications/startup.h @@ -26,6 +26,7 @@ void fatfs_list(void* p); void gui_task(void* p); void backlight_control(void* p); void app_loader(void* p); +void cc1101_workaround(void* p); const FlipperStartupApp FLIPPER_STARTUP[] = { #ifdef APP_DISPLAY @@ -46,6 +47,10 @@ const FlipperStartupApp FLIPPER_STARTUP[] = { {.app = app_loader, .name = "app_loader", .libs = {1, FURI_LIB{"menu_task"}}}, #endif +#ifdef APP_CC1101 + {.app = cc1101_workaround, .name = "cc1101 workaround", .libs = {1, FURI_LIB{"gui_task"}}}, +#endif + // {.app = coreglitch_demo_0, .name = "coreglitch_demo_0", .libs = ""}, #ifdef APP_TEST