projects
/
mirrors
/
FD230.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9eb3f63
)
修改当未定义cat1时 spi无法编译的问题
author
hcj
<1224667075@qq.com>
Mon, 15 Dec 2025 04:28:05 +0000
(12:28 +0800)
committer
hcj
<1224667075@qq.com>
Mon, 15 Dec 2025 04:28:05 +0000
(12:28 +0800)
code/sdk/zhihui/utils/custom_spi.c
patch
|
blob
|
history
diff --git
a/code/sdk/zhihui/utils/custom_spi.c
b/code/sdk/zhihui/utils/custom_spi.c
index
acdf069
..
4e35dec
100644
(file)
--- a/
code/sdk/zhihui/utils/custom_spi.c
+++ b/
code/sdk/zhihui/utils/custom_spi.c
@@
-25,7
+25,11
@@
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};