Skip to content

Commit 5b4a65f

Browse files
authored
Merge pull request #2479 from particle-iot/fix/deprecate-tinker-fqc
Deprecate tinker fqc
2 parents dc76d42 + da2d5b4 commit 5b4a65f

20 files changed

+52
-2584
lines changed

.gitmodules

+3
Original file line numberDiff line numberDiff line change
@@ -51,3 +51,6 @@
5151
[submodule "third_party/ambd_sdk/ambd_sdk"]
5252
path = third_party/ambd_sdk/ambd_sdk
5353
url = https://github.com/particle-iot/realtek_ambd_sdk_public.git
54+
[submodule "third_party/coremark/coremark"]
55+
path = third_party/coremark/coremark
56+
url = https://github.com/particle-iot/coremark

build/release.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,7 @@ if [ $PLATFORM_ID -eq 12 ] || [ $PLATFORM_ID -eq 13 ] || [ $PLATFORM_ID -eq 15 ]
337337
if [ "$MODULAR" = "n" ]; then
338338
declare -a apps=("tinker-serial1-debugging" "tinker-serial-debugging")
339339
else
340-
declare -a apps=("tinker" "tinker-fqc")
340+
declare -a apps=("tinker")
341341
fi
342342

343343
for app in ${apps[@]}; do

third_party/coremark/Makefile

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
MODULE=coremark
2+
COREMARK_MODULE_PATH=.
3+
4+
# Target this makefile is building.
5+
TARGET_TYPE = a
6+
7+
BUILD_PATH_EXT=$(COREMARK_BUILD_PATH_EXT)
8+
9+
DEPENDENCIES += services
10+
11+
PROJECT_ROOT ?= ../..
12+
include ../../build/arm-tlm.mk

third_party/coremark/build.mk

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
TARGET_COREMARK_SRC_PATH = $(COREMARK_MODULE_PATH)/coremark
2+
3+
# C source files included in this build.
4+
CSRC += $(TARGET_COREMARK_SRC_PATH)/core_list_join.c
5+
CSRC += $(TARGET_COREMARK_SRC_PATH)/core_main.c
6+
CSRC += $(TARGET_COREMARK_SRC_PATH)/core_matrix.c
7+
CSRC += $(TARGET_COREMARK_SRC_PATH)/core_portme.c
8+
CSRC += $(TARGET_COREMARK_SRC_PATH)/core_state.c
9+
CSRC += $(TARGET_COREMARK_SRC_PATH)/core_util.c

third_party/coremark/coremark

Submodule coremark added at 80f7f75

third_party/coremark/import.mk

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
COREMARK_MODULE_NAME = coremark
2+
COREMARK_MODULE_PATH ?= $(PROJECT_ROOT)/third_party/$(COREMARK_MODULE_NAME)
3+
include $(COREMARK_MODULE_PATH)/include.mk
4+
5+
COREMARK_BUILD_PATH_EXT = $(BUILD_TARGET_PLATFORM)
6+
COREMARK_LIB_DIR = $(BUILD_PATH_BASE)/$(COREMARK_MODULE_NAME)/$(COREMARK_BUILD_PATH_EXT)
7+
COREMARK_LIB_DEP = $(COREMARK_LIB_DIR)/lib$(COREMARK_MODULE_NAME).a

third_party/coremark/include.mk

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
TARGET_COREMARK_PATH = $(COREMARK_MODULE_PATH)
2+
INCLUDE_DIRS += $(COREMARK_MODULE_PATH)/coremark

user/applications/tinker-fqc/tinker-fqc.mk

-22
This file was deleted.

user/applications/tinker/application.cpp

+4-4
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
/* Includes ------------------------------------------------------------------*/
1919
#include "application.h"
2020
#include <cctype>
21-
#if HAL_PLATFORM_RTL872X
21+
#if HAL_PLATFORM_RTL872X && ENABLE_FQC_FUNCTIONALITY
2222
#include "request_handler.h"
2323
#include "src/burnin_test.h"
2424
#endif
@@ -128,7 +128,7 @@ void setup()
128128
Particle.function("analogread", tinkerAnalogRead);
129129
Particle.function("analogwrite", tinkerAnalogWrite);
130130

131-
#if HAL_PLATFORM_RTL872X
131+
#if HAL_PLATFORM_RTL872X && ENABLE_FQC_FUNCTIONALITY
132132
BurninTest::instance()->setup();
133133
#endif
134134
}
@@ -138,7 +138,7 @@ void loop()
138138
{
139139
//This will run in a loop
140140

141-
#if HAL_PLATFORM_RTL872X
141+
#if HAL_PLATFORM_RTL872X && ENABLE_FQC_FUNCTIONALITY
142142
BurninTest::instance()->loop();
143143
#endif
144144
}
@@ -260,7 +260,7 @@ int tinkerAnalogWrite(String command)
260260
return -1;
261261
}
262262

263-
#if HAL_PLATFORM_RTL872X
263+
#if HAL_PLATFORM_RTL872X && ENABLE_FQC_FUNCTIONALITY
264264
// Tinker app specific USB requests. For P2 these are FQC commands
265265
void ctrl_request_custom_handler(ctrl_request* req) {
266266
particle::RequestHandler::instance()->process(req);

user/applications/tinker/include.mk

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
ifeq ($(APP),tinker)
2+
COREMARK_DEPENDENCY = third_party/coremark
3+
4+
include $(PROJECT_ROOT)/$(COREMARK_DEPENDENCY)/import.mk
5+
6+
LIBS += $(notdir $(COREMARK_DEPENDENCY))
7+
LIB_DIRS += $(COREMARK_LIB_DIR)
8+
endif

0 commit comments

Comments
 (0)