fix:修改UDP通讯中,取电变化上报机制
1、问题点:当RCU网络状态异常的情况下,网络还处于协商状态下,还未进入正常通讯环节时,取电变化不会进行判断。这会导致取电变化上报与实际产生取电状态时间点对不上。 2、将BLV_C1F_Module代码上传至Gitea,之前代码修改记录请查看 .\BasicCode\Readme.txt
This commit is contained in:
53
BasicCode/Drive/BLE/multiCentral_main.c
Normal file
53
BasicCode/Drive/BLE/multiCentral_main.c
Normal file
@@ -0,0 +1,53 @@
|
||||
/********************************** (C) COPYRIGHT *******************************
|
||||
* File Name : main.c
|
||||
* Author : WCH
|
||||
* Version : V1.1
|
||||
* Date : 2019/11/05
|
||||
* Description :
|
||||
*******************************************************************************/
|
||||
|
||||
/******************************************************************************/
|
||||
/* ͷ<>ļ<EFBFBD><C4BC><EFBFBD><EFBFBD><EFBFBD> */
|
||||
#include "CONFIG.h"
|
||||
#include "CH57x_common.h"
|
||||
#include "HAL.h"
|
||||
#include "peripheral.h"
|
||||
#include "multiCentral.h"
|
||||
|
||||
/*********************************************************************
|
||||
* GLOBAL TYPEDEFS
|
||||
*/
|
||||
__align(4) u32 MEM_BUF[BLE_MEMHEAP_SIZE/4];
|
||||
|
||||
#if (defined (BLE_MAC)) && (BLE_MAC == TRUE)
|
||||
u8C MacAddr[6] = {0x84,0xC2,0xE4,0x03,0x02,0x02};
|
||||
#endif
|
||||
|
||||
/*******************************************************************************
|
||||
* Function Name : main
|
||||
* Description : <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
* Input : None
|
||||
* Output : None
|
||||
* Return : None
|
||||
*******************************************************************************/
|
||||
int main( void )
|
||||
{
|
||||
#ifdef DEBUG
|
||||
GPIOA_SetBits(bTXD1);
|
||||
GPIOA_ModeCfg(bTXD1, GPIO_ModeOut_PP_5mA);
|
||||
UART1_DefInit( );
|
||||
#endif
|
||||
PRINT("%s\n",VER_LIB);
|
||||
CH57X_BLEInit( );
|
||||
HAL_Init( );
|
||||
GAPRole_PeripheralInit( );
|
||||
GAPRole_CentralInit( );
|
||||
|
||||
Peripheral_Init( );
|
||||
Central_Init( );
|
||||
while(1){
|
||||
TMOS_SystemProcess( );
|
||||
}
|
||||
}
|
||||
|
||||
/******************************** endfile @ main ******************************/
|
||||
Reference in New Issue
Block a user