Przeglądaj źródła

release/cc1101 debug build

aanper 5 lat temu
rodzic
commit
3b993578f4
2 zmienionych plików z 13 dodań i 2 usunięć
  1. 8 2
      applications/applications.mk
  2. 5 0
      applications/startup.h

+ 8 - 2
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)

+ 5 - 0
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