From a6bf1e117c45838d64eab1b3171ff544cc443e74 Mon Sep 17 00:00:00 2001 From: Matthew Date: Sun, 9 Mar 2025 22:18:23 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E6=8E=A7=E5=88=B6=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/src/main/cpp/CMakeLists.txt | 2 +- app/src/main/cpp/GPIOControl.h | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/app/src/main/cpp/CMakeLists.txt b/app/src/main/cpp/CMakeLists.txt index 03c4e22d..9d18a0af 100644 --- a/app/src/main/cpp/CMakeLists.txt +++ b/app/src/main/cpp/CMakeLists.txt @@ -21,7 +21,7 @@ if(ANDROID_ABI STREQUAL "armeabi-v7a") add_definitions(-DUSING_N938) elseif(ANDROID_ABI STREQUAL "arm64-v8a") # add_definitions(-DUSING_N938) - # add_definitions(-DUSING_PLZ) + add_definitions(-DUSING_PLZ) endif() # OUTPUT_DBG_INFO: 输出调试相关信息 diff --git a/app/src/main/cpp/GPIOControl.h b/app/src/main/cpp/GPIOControl.h index 1f23437b..7c02046d 100644 --- a/app/src/main/cpp/GPIOControl.h +++ b/app/src/main/cpp/GPIOControl.h @@ -51,6 +51,9 @@ #define CMD_SET_3V3_PWR_EN 132 #endif +#define CMD_GET_CAMERA_STATUS 310 +#define CMD_SET_INIT_STATUS 401 + #else // defined(USING_PLZ) #define CMD_SET_OTG_STATE 107 @@ -100,6 +103,9 @@ #define CMD_SET_LIGHT1_RESISTOR_ENABLE 524 #define CMD_SET_100M_RESET 526 +#define CMD_GET_CAMERA_STATUS 310 +#define CMD_SET_INIT_STATUS 401 + #endif // USING_PLZ #else // defined(USING_N938)