From 7a2ff321965f1f24f3047fedd44a83f451f1f793 Mon Sep 17 00:00:00 2001 From: QuakeGod <QuakeGod@sina.com> Date: 星期三, 01 二月 2023 10:58:10 +0800 Subject: [PATCH] radio add new device type --- Src/KMachine.c | 20 ++++++++++++++++---- 1 files changed, 16 insertions(+), 4 deletions(-) diff --git a/Src/KMachine.c b/Src/KMachine.c index cad2702..5a88bf6 100644 --- a/Src/KMachine.c +++ b/Src/KMachine.c @@ -28,18 +28,30 @@ //uint32_t * pUID = (uint32_t *)(UID_BASE); const stKMInfoBlock KMInfoBlock = { - BOARD_TYPE, //nDeviceType + (BOARD_TYPE<<8) + BOARD_VER, //nDeviceType BOARD_VER, //nDevieVer 0x0100, //ProgVer 0x0100, //KLinkVer - 0x0100, //nCapacity - 16, //nDInput; - 16, //nDOutput + 0x0100, //KBusVer +// 0x0100, //KNetVer +// 0x0100, //KWLVer + + 4, //nCapacity1 ?K + 1, //nCapacity2 ?k + + DINPUT, //nDInput; + DOUTPUT, //nDOutput + 0, //nAInput 0, //nAOutput 0, //nHInput 0, //nHOutput 0, //nExt1; 0, //nExt2; + 0, //nLogSize; + 0, //nPorts; + 0, //nManSize; + 0, //nAbility; + 6, //nSwitchBits; }; const char VersionStr[] __attribute__((at(FLASH_BASE + 0X1000))) //__attribute__((at(0X8001000))) = "3.00"; -- Gitblit v1.9.1