更改内容:优化和玄恒耳机芯片双向通讯功能;通讯波特率为:9600bps;CRC16校验和算法为:CRC-16-CCITT-FALSE。

This commit is contained in:
Alex xu 2025-01-09 18:58:03 +08:00
parent 73b823b48a
commit b12844ffba
11 changed files with 1180 additions and 1179 deletions

Binary file not shown.

File diff suppressed because it is too large Load Diff

Binary file not shown.

1006
Out/8835_EVB_250109_1723.hex Normal file

File diff suppressed because it is too large Load Diff

Binary file not shown.

File diff suppressed because one or more lines are too long

View File

@ -30,7 +30,7 @@
\******************************************************************************/
#if XUANHENG
#define Baud_Rate0 115200//9600//19200//38400//93750
#define Baud_Rate0 9600//9600//19200//38400//93750
#else
#define Baud_Rate0 9600//9600//19200//38400//93750
#endif
@ -40,6 +40,8 @@
#define Baud_Rate1 9600//19200//38400//93750
#define S1REL_VALUE (1024-345600/Baud_Rate1)
/* Log Debug 接口。 */
#define Baud_Rate2 115200//19200//38400//93750
#define S2REL_VALUE (1024-345600/Baud_Rate2)
@ -53,8 +55,7 @@ extern char putchar (char ch);
#endif
#define COM0_Data_Lenth 64
#define COM0_Data_Lenth 32
#ifdef VOX_RX

View File

@ -1474,7 +1474,7 @@ void Vox_Follow_Chg( g_Vox_Fllow_Chg_Cfg *n_Vox_Fllow_Chg )
*******************************************************************************
* u16 CalCheckCrc16(u8 * pucFrame, u16 usLen)
*
* Description : (CRC-16-XMODE)
* Description : (CRC-16-CCITT-FALSE)
*
*
* Arguments : u8 *pucFrame:
@ -1489,7 +1489,7 @@ void Vox_Follow_Chg( g_Vox_Fllow_Chg_Cfg *n_Vox_Fllow_Chg )
uint16_t CalCheckCrc16(uint8_t *pucFrame, unsigned int usLen)
{
uint16_t wCRCin = 0x0000;
uint16_t wCRCin = 0xFFFF;
uint16_t wCPoly = 0x1021;
uint8_t wChar = 0;
unsigned int i;