1、问题点:当RCU网络状态异常的情况下,网络还处于协商状态下,还未进入正常通讯环节时,取电变化不会进行判断。这会导致取电变化上报与实际产生取电状态时间点对不上。 2、将BLV_C1F_Module代码上传至Gitea,之前代码修改记录请查看 .\BasicCode\Readme.txt
54 lines
1.4 KiB
C
54 lines
1.4 KiB
C
/********************************** (C) COPYRIGHT *******************************
|
|
* File Name : main.c
|
|
* Author : WCH
|
|
* Version : V1.1
|
|
* Date : 2019/11/05
|
|
* Description :
|
|
*******************************************************************************/
|
|
|
|
/******************************************************************************/
|
|
/* Í·Îļþ°üº¬ */
|
|
#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 : Ö÷º¯Êý
|
|
* 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 ******************************/
|