修改当未定义cat1时 spi无法编译的问题
authorhcj <1224667075@qq.com>
Mon, 15 Dec 2025 04:28:05 +0000 (12:28 +0800)
committerhcj <1224667075@qq.com>
Mon, 15 Dec 2025 04:28:05 +0000 (12:28 +0800)
code/sdk/zhihui/utils/custom_spi.c

index acdf069..4e35dec 100644 (file)
 void custom_spi_start(void);
 
 /* 外部变量:Python服务版本号 */
+#ifdef SUPPORT_CAT1_SERVICE
 extern uint8_t g_py_ver;
+#else
+uint8_t g_py_ver = 28;
+#endif
 
 static osSemaphoreId_t g_semaphore_spi_id = NULL;
 static app_task_definition_t taskcfg={0};