更改内容:优化和玄恒耳机芯片双向通讯功能;通讯波特率为:9600bps;CRC16校验和算法为:CRC-16-CCITT-FALSE。
This commit is contained in:
parent
73b823b48a
commit
b12844ffba
Binary file not shown.
File diff suppressed because it is too large
Load Diff
Binary file not shown.
BIN
Out/8835_EVB_250109_1723.bin
Normal file
BIN
Out/8835_EVB_250109_1723.bin
Normal file
Binary file not shown.
1006
Out/8835_EVB_250109_1723.hex
Normal file
1006
Out/8835_EVB_250109_1723.hex
Normal file
File diff suppressed because it is too large
Load Diff
BIN
Out/8835_EVB_250109_1723_C981_010102.bin
Normal file
BIN
Out/8835_EVB_250109_1723_C981_010102.bin
Normal file
Binary file not shown.
File diff suppressed because one or more lines are too long
@ -30,7 +30,7 @@
|
|||||||
\******************************************************************************/
|
\******************************************************************************/
|
||||||
|
|
||||||
#if XUANHENG
|
#if XUANHENG
|
||||||
#define Baud_Rate0 115200//9600//19200//38400//93750
|
#define Baud_Rate0 9600//9600//19200//38400//93750
|
||||||
#else
|
#else
|
||||||
#define Baud_Rate0 9600//9600//19200//38400//93750
|
#define Baud_Rate0 9600//9600//19200//38400//93750
|
||||||
#endif
|
#endif
|
||||||
@ -40,6 +40,8 @@
|
|||||||
#define Baud_Rate1 9600//19200//38400//93750
|
#define Baud_Rate1 9600//19200//38400//93750
|
||||||
#define S1REL_VALUE (1024-345600/Baud_Rate1)
|
#define S1REL_VALUE (1024-345600/Baud_Rate1)
|
||||||
|
|
||||||
|
/* Log Debug 接口。 */
|
||||||
|
|
||||||
#define Baud_Rate2 115200//19200//38400//93750
|
#define Baud_Rate2 115200//19200//38400//93750
|
||||||
#define S2REL_VALUE (1024-345600/Baud_Rate2)
|
#define S2REL_VALUE (1024-345600/Baud_Rate2)
|
||||||
|
|
||||||
@ -53,8 +55,7 @@ extern char putchar (char ch);
|
|||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#define COM0_Data_Lenth 32
|
||||||
#define COM0_Data_Lenth 64
|
|
||||||
|
|
||||||
#ifdef VOX_RX
|
#ifdef VOX_RX
|
||||||
|
|
||||||
|
@ -1474,7 +1474,7 @@ void Vox_Follow_Chg( g_Vox_Fllow_Chg_Cfg *n_Vox_Fllow_Chg )
|
|||||||
*******************************************************************************
|
*******************************************************************************
|
||||||
* u16 CalCheckCrc16(u8 * pucFrame, u16 usLen)
|
* u16 CalCheckCrc16(u8 * pucFrame, u16 usLen)
|
||||||
*
|
*
|
||||||
* Description : 校验和的计算(CRC-16-XMODE)
|
* Description : 校验和的计算(CRC-16-CCITT-FALSE)
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* Arguments : u8 *pucFrame: 数据存放地址
|
* 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 CalCheckCrc16(uint8_t *pucFrame, unsigned int usLen)
|
||||||
{
|
{
|
||||||
uint16_t wCRCin = 0x0000;
|
uint16_t wCRCin = 0xFFFF;
|
||||||
uint16_t wCPoly = 0x1021;
|
uint16_t wCPoly = 0x1021;
|
||||||
uint8_t wChar = 0;
|
uint8_t wChar = 0;
|
||||||
unsigned int i;
|
unsigned int i;
|
||||||
|
Binary file not shown.
Binary file not shown.
Loading…
Reference in New Issue
Block a user