更改仓管库地址,CH584M

This commit is contained in:
stark1898y 2024-12-30 10:15:27 +08:00
parent 25410c9dee
commit b4f3ab2c99
23 changed files with 51 additions and 29 deletions

View File

@ -47,7 +47,7 @@
<option id="ilg.gnumcueclipse.managedbuild.cross.riscv.option.target.isa.atomic.985553432" name="Atomic extension (RVA)" superClass="ilg.gnumcueclipse.managedbuild.cross.riscv.option.target.isa.atomic" useByScannerDiscovery="false" value="true" valueType="boolean"/>
<option id="ilg.gnumcueclipse.managedbuild.cross.riscv.option.optimization.nocommon.1193890948" name="No common unitialized (-fno-common)" superClass="ilg.gnumcueclipse.managedbuild.cross.riscv.option.optimization.nocommon" useByScannerDiscovery="true" value="true" valueType="boolean"/>
<targetPlatform archList="all" binaryParser="org.eclipse.cdt.core.ELF" id="ilg.gnumcueclipse.managedbuild.cross.riscv.targetPlatform.1944008784" isAbstract="false" osList="all" superClass="ilg.gnumcueclipse.managedbuild.cross.riscv.targetPlatform"/>
<builder buildPath="${workspace_loc:/BLE_TYQ_CH592F}/obj" id="ilg.gnumcueclipse.managedbuild.cross.riscv.builder.1421508906" keepEnvironmentInBuildfile="false" managedBuildOn="true" name="GNU Make 构建器" parallelBuildOn="true" parallelizationNumber="optimal" superClass="ilg.gnumcueclipse.managedbuild.cross.riscv.builder"/>
<builder buildPath="${workspace_loc:/BLE_TYQ_CH584M}/obj" id="ilg.gnumcueclipse.managedbuild.cross.riscv.builder.1421508906" keepEnvironmentInBuildfile="false" managedBuildOn="true" name="GNU Make 构建器" parallelBuildOn="true" parallelizationNumber="optimal" superClass="ilg.gnumcueclipse.managedbuild.cross.riscv.builder"/>
<tool id="ilg.gnumcueclipse.managedbuild.cross.riscv.tool.assembler.1244756189" name="GNU RISC-V Cross Assembler" superClass="ilg.gnumcueclipse.managedbuild.cross.riscv.tool.assembler">
<option id="ilg.gnumcueclipse.managedbuild.cross.riscv.option.assembler.usepreprocessor.1692176068" name="Use preprocessor" superClass="ilg.gnumcueclipse.managedbuild.cross.riscv.option.assembler.usepreprocessor" useByScannerDiscovery="false" value="true" valueType="boolean"/>
<option IS_BUILTIN_EMPTY="false" IS_VALUE_EMPTY="true" id="ilg.gnumcueclipse.managedbuild.cross.riscv.option.assembler.include.paths.1034038285" name="Include paths (-I)" superClass="ilg.gnumcueclipse.managedbuild.cross.riscv.option.assembler.include.paths" useByScannerDiscovery="true" valueType="includePath"/>
@ -173,5 +173,5 @@
</storageModule>
<storageModule moduleId="org.eclipse.cdt.core.LanguageSettingsProviders"/>
<storageModule moduleId="org.eclipse.cdt.make.core.buildtargets"/>
</cproject>

View File

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<projectDescription>
<name>BLE_TYQ_CH592F</name>
<name>BLE_TYQ_CH584M</name>
<comment/>
<projects>
</projects>

View File

@ -3,7 +3,7 @@
* @Date : 2024-12-08 12:20:47
* @LastEditors : stark1898y 1658608470@qq.com
* @LastEditTime : 2024-12-08 12:20:47
* @FilePath : \BLE_TYQ_CH592F\BSP\inc\bsp_adc.h
* @FilePath : \BLE_TYQ_CH584M\BSP\inc\bsp_adc.h
* @Description :
*
* Copyright (c) 2024 by yzy, All Rights Reserved.

View File

@ -3,7 +3,7 @@
* @Date : 2024-12-09 09:50:56
* @LastEditors : stark1898y 1658608470@qq.com
* @LastEditTime : 2024-12-17 16:12:04
* @FilePath : \BLE_TYQ_CH592F\BSP\inc\bsp_beep_led_emv.h
* @FilePath : \BLE_TYQ_CH584M\BSP\inc\bsp_beep_led_emv.h
* @Description :
*
* Copyright (c) 2024 by yzy, All Rights Reserved.

View File

@ -3,7 +3,7 @@
* @Date : 2024-12-12 15:54:51
* @LastEditors : stark1898y 1658608470@qq.com
* @LastEditTime : 2024-12-12 16:34:01
* @FilePath : \BLE_TYQ_CH592F\BSP\inc\bsp_flash.h
* @FilePath : \BLE_TYQ_CH584M\BSP\inc\bsp_flash.h
* @Description :
*
* Copyright (c) 2024 by yzy, All Rights Reserved.

View File

@ -3,7 +3,7 @@
* @Date : 2024-12-15 15:42:00
* @LastEditors : stark1898y 1658608470@qq.com
* @LastEditTime : 2024-12-16 20:50:17
* @FilePath : \BLE_TYQ_CH592F\BSP\inc\bsp_i2c.h
* @FilePath : \BLE_TYQ_CH584M\BSP\inc\bsp_i2c.h
* @Description :
*
* Copyright (c) 2024 by yzy, All Rights Reserved.

View File

@ -3,7 +3,7 @@
* @Date : 2024-12-15 16:13:37
* @LastEditors : stark1898y 1658608470@qq.com
* @LastEditTime : 2024-12-15 16:13:37
* @FilePath : \BLE_TYQ_CH592F - \BSP\inc\bsp_iwdg.h
* @FilePath : \BLE_TYQ_CH584M - \BSP\inc\bsp_iwdg.h
* @Description :
*
* Copyright (c) 2024 by yzy, All Rights Reserved.
@ -13,7 +13,7 @@
* @Date : 2024-12-14 10:51:01
* @LastEditors : stark1898y 1658608470@qq.com
* @LastEditTime : 2024-12-15 11:16:24
* @FilePath : \BLE_TYQ_CH592F\BSP\inc\bsp_iwdg.h
* @FilePath : \BLE_TYQ_CH584M\BSP\inc\bsp_iwdg.h
* @Description :
*
* Copyright (c) 2024 by yzy, All Rights Reserved.

View File

@ -3,7 +3,7 @@
* @Date : 2024-12-15 15:01:15
* @LastEditors : stark1898y 1658608470@qq.com
* @LastEditTime : 2024-12-15 16:24:28
* @FilePath : \BLE_TYQ_CH592F - \BSP\inc\bsp_tim.h
* @FilePath : \BLE_TYQ_CH584M - \BSP\inc\bsp_tim.h
* @Description :
*
* Copyright (c) 2024 by yzy, All Rights Reserved.

View File

@ -3,7 +3,7 @@
* @Date : 2024-12-12 15:55:38
* @LastEditors : stark1898y 1658608470@qq.com
* @LastEditTime : 2024-12-17 15:51:09
* @FilePath : \BLE_TYQ_CH592F\BSP\inc\bsp_valve.h
* @FilePath : \BLE_TYQ_CH584M\BSP\inc\bsp_valve.h
* @Description :
*
* Copyright (c) 2024 by yzy, All Rights Reserved.

View File

@ -3,7 +3,7 @@
* @Date : 2024-12-12 15:54:57
* @LastEditors : stark1898y 1658608470@qq.com
* @LastEditTime : 2024-12-16 08:55:00
* @FilePath : \BLE_TYQ_CH592F\BSP\src\bsp_flash.c
* @FilePath : \BLE_TYQ_CH584M\BSP\src\bsp_flash.c
* @Description :
*
* Copyright (c) 2024 by yzy, All Rights Reserved.

View File

@ -3,7 +3,7 @@
* @Date : 2024-12-15 16:13:41
* @LastEditors : stark1898y 1658608470@qq.com
* @LastEditTime : 2024-12-15 16:13:42
* @FilePath : \BLE_TYQ_CH592F - \BSP\src\bsp_iwdg.c
* @FilePath : \BLE_TYQ_CH584M - \BSP\src\bsp_iwdg.c
* @Description :
*
* Copyright (c) 2024 by yzy, All Rights Reserved.

View File

@ -3,7 +3,7 @@
* @Date : 2024-12-15 15:01:15
* @LastEditors : stark1898y 1658608470@qq.com
* @LastEditTime : 2024-12-15 16:24:32
* @FilePath : \BLE_TYQ_CH592F - \BSP\src\bsp_tim.c
* @FilePath : \BLE_TYQ_CH584M - \BSP\src\bsp_tim.c
* @Description :
*
* Copyright (c) 2024 by yzy, All Rights Reserved.

View File

@ -2,8 +2,8 @@
* @Author : stark1898y 1658608470@qq.com
* @Date : 2024-12-15 15:01:15
* @LastEditors : stark1898y 1658608470@qq.com
* @LastEditTime : 2024-12-17 16:12:13
* @FilePath : \BLE_TYQ_CH592F\BSP\src\bsp_valve.c
* @LastEditTime : 2024-12-24 11:17:00
* @FilePath : \BLE_TYQ_CH584M\BSP\src\bsp_valve.c
* @Description :
*
* Copyright (c) 2024 by yzy, All Rights Reserved.
@ -360,13 +360,34 @@ static uint16_t VAVLE_Task_ProcessEvent(uint8_t task_id, uint16_t events)
BSP_RequestBoost();
logDebug("VAVLE_CLOSE_ACTION_EVT");
// 关阀动作,一定要先关充电的防止其他12V用电
EMV_CHARGE_OFF_DEINIT;
// EMV_CHARGE_OFF_DEINIT;
logDebug("EMV_CHARGE_OFF_DEINIT");
BEEP_ON;
BOOST_EN;
EMV_CHARGE_EN;
DelayMs(10);
// BEEP_ON;
// EMV_CTRL
EMV_ON;
DelayMs(50);
{BEEP_OFF_DEINIT;
EMV_CHARGE_OFF_DEINIT;
EMV_OFF_DEINIT;
BSP_NoNeedBoost();
gValveData.switch_status = kClosed;
tmos_memset(&RelyData, 0, sizeof(RelyData));
BSP_VALVE_Generate_ValveResponse(&RelyData, kCmdCloseVavle, 1);
tmos_set_event(Peripheral_TaskID, SBP_REPLY_CMD_EVT);}
logDebug("EMV_ON");
tmos_start_task(vavle_task_id, VAVLE_CLOSE_END_EVT, MS1_TO_SYSTEM_TIME(100));

View File

@ -726,8 +726,8 @@ static void simpleProfile_HandleConnStatusCB(uint16_t connHandle, uint8_t change
}
}
//定义使能通知函数connection_handle连接句柄表示要进行操作的连接
// https://www.cnblogs.com/ZYL-FS/p/17759138.html
// 定义使能通知函数connection_handle连接句柄表示要进行操作的连接
uint8_t enable_notify(uint16_t connection_handle, uint8_t enable)
{
uint16_t cccd = 0; //定义一个变量cccd特征的配置值

View File

@ -1,8 +1,9 @@
# [BLE_TYQ_CH592F](https://gitee.com/SXDT-Embedded/ble_-tyq_-ch592-f)
# [BLE_TYQ_CH584M](https://gitee.com/SXDT-Embedded/ble_-tyq_-ch592-f)
基于“CH592EVT_V1-4”
![1734342111476](image/README/1734342111476.png)
![1734342096541](image/README/1734342096541.png)
2024-12-30更换为CH584M加入电磁阀状态检测BLE_TYQ_CH584M_V2-0

View File

@ -3,7 +3,7 @@
* @Date : 2024-07-04 16:13:57
* @LastEditors : stark1898y 1658608470@qq.com
* @LastEditTime : 2024-12-14 15:56:11
* @FilePath : \BLE_TYQ_CH592F\common\FlexibleButton-2.0.1\flexible_button.h
* @FilePath : \BLE_TYQ_CH584M\common\FlexibleButton-2.0.1\flexible_button.h
* @Description :
*
* Copyright (c) 2024 by yzy, All Rights Reserved.

View File

@ -3,7 +3,7 @@
* @Date : 2024-12-12 09:44:00
* @LastEditors : stark1898y 1658608470@qq.com
* @LastEditTime : 2024-12-12 10:08:36
* @FilePath : \BLE_TYQ_CH592F\common\letter-shell\shell.c
* @FilePath : \BLE_TYQ_CH584M\common\letter-shell\shell.c
* @Description :
*
* Copyright (c) 2024 by yzy, All Rights Reserved.

View File

@ -3,7 +3,7 @@
* @Date : 2024-12-12 09:44:00
* @LastEditors : stark1898y 1658608470@qq.com
* @LastEditTime : 2024-12-12 10:08:31
* @FilePath : \BLE_TYQ_CH592F\common\letter-shell\shell.h
* @FilePath : \BLE_TYQ_CH584M\common\letter-shell\shell.h
* @Description :
*
* Copyright (c) 2024 by yzy, All Rights Reserved.

View File

@ -3,7 +3,7 @@
* @Date : 2024-12-12 09:44:00
* @LastEditors : stark1898y 1658608470@qq.com
* @LastEditTime : 2024-12-12 10:08:57
* @FilePath : \BLE_TYQ_CH592F\common\letter-shell\shell_companion.c
* @FilePath : \BLE_TYQ_CH584M\common\letter-shell\shell_companion.c
* @Description :
*
* Copyright (c) 2024 by yzy, All Rights Reserved.

View File

@ -3,7 +3,7 @@
* @Date : 2024-12-12 09:44:00
* @LastEditors : stark1898y 1658608470@qq.com
* @LastEditTime : 2024-12-12 10:08:47
* @FilePath : \BLE_TYQ_CH592F\common\letter-shell\shell_ext.h
* @FilePath : \BLE_TYQ_CH584M\common\letter-shell\shell_ext.h
* @Description :
*
* Copyright (c) 2024 by yzy, All Rights Reserved.

View File

@ -3,7 +3,7 @@
* @Date : 2024-12-12 09:44:00
* @LastEditors : stark1898y 1658608470@qq.com
* @LastEditTime : 2024-12-12 13:34:24
* @FilePath : \BLE_TYQ_CH592F\common\lwrb-3.2.0\lwrb.h
* @FilePath : \BLE_TYQ_CH584M\common\lwrb-3.2.0\lwrb.h
* @Description :
*
* Copyright (c) 2024 by yzy, All Rights Reserved.

View File

@ -3,7 +3,7 @@
* @Date : 2024-12-12 13:35:45
* @LastEditors : stark1898y 1658608470@qq.com
* @LastEditTime : 2024-12-12 13:35:45
* @FilePath : \BLE_TYQ_CH592F\common\lwrb-3.2.0\lwrb_ex.c
* @FilePath : \BLE_TYQ_CH584M\common\lwrb-3.2.0\lwrb_ex.c
* @Description :
*
* Copyright (c) 2024 by yzy, All Rights Reserved.