没有合适的资源?快使用搜索试试~ 我知道了~
The below code include downloading GV7704 firmware & configuring the loop output. The enclosed is the version 3.1.0.20 firmware code of gv7704.
资源推荐
资源详情
资源评论
The below code include downloading GV7704 firmware & configuring the loop output.
The enclosed is the version 3.1.0.20 firmware code of gv7704.
Download step code:
uint8_t semGv_CodeGV7704(uint8_t vpCs)
{
uint8_t rc=0;
uint32_t vRegValue;
#ifdef DEF_SEM_DEBUG_SPICS
semGv_SpiCsNew(vpCs,ENUM_GV77XX_SPI_CS_ENABLE);
#endif
/*get chip rev & software rev*/
rc=semGv_GetBitsOfReg(vpCs,ENUM_BASE_ADDR_REG_MAIN,0x00,0,8,&vRegValue);
if(rc!=DEF_SEM_TRUE)
{
return DEF_SEM_FALSE;
}
//return 0;
//rc=semGv_GetFwVersionFromGV7700(vpCs);
//semGv_P2_5LED(DEF_SEM_LED_OFF);
#if 0
/*1-2-0Start the GV7704 chip:LOCAL_HOST_RESET=0x30*/
rc=semGv_SetBitsOfReg(vpCs,ENUM_BASE_ADDR_REG_MAIN,0x30,1,1,0x1);
if(rc!=DEF_SEM_TRUE)
{
The enclosed is the version 3.1.0.20 firmware code of gv7704.
Download step code:
uint8_t semGv_CodeGV7704(uint8_t vpCs)
{
uint8_t rc=0;
uint32_t vRegValue;
#ifdef DEF_SEM_DEBUG_SPICS
semGv_SpiCsNew(vpCs,ENUM_GV77XX_SPI_CS_ENABLE);
#endif
/*get chip rev & software rev*/
rc=semGv_GetBitsOfReg(vpCs,ENUM_BASE_ADDR_REG_MAIN,0x00,0,8,&vRegValue);
if(rc!=DEF_SEM_TRUE)
{
return DEF_SEM_FALSE;
}
//return 0;
//rc=semGv_GetFwVersionFromGV7700(vpCs);
//semGv_P2_5LED(DEF_SEM_LED_OFF);
#if 0
/*1-2-0Start the GV7704 chip:LOCAL_HOST_RESET=0x30*/
rc=semGv_SetBitsOfReg(vpCs,ENUM_BASE_ADDR_REG_MAIN,0x30,1,1,0x1);
if(rc!=DEF_SEM_TRUE)
{
return DEF_SEM_FALSE;
}
#endif
/*1-2-0Start the GV7704 chip:RESET_8051=0x26*/
rc=semGv_SetBitsOfReg(vpCs,ENUM_BASE_ADDR_REG_MAIN,0x26,0,1,0x1);
if(rc!=DEF_SEM_TRUE)
{
return DEF_SEM_FALSE;
}
/*1-1-enable Or disable the decryption engine:DECRYPTION_ENABLE=0x26*/
//0x004027
#ifdef DEF_GV7704_ENABLE_DECRYPTION
rc=semGv_SetBitsOfReg(vpCs,ENUM_BASE_ADDR_REG_MAIN,0x26,1,1,0x1);
if(rc!=DEF_SEM_TRUE)
{
return DEF_SEM_FALSE;
}
#else
rc=semGv_SetBitsOfReg(vpCs,ENUM_BASE_ADDR_REG_MAIN,0x26,1,1,0x0);
if(rc!=DEF_SEM_TRUE)
{
return DEF_SEM_FALSE;
}
#endif
/*1-2-1enable the DMA:START_DMA=0x30*/
rc=semGv_SetBitsOfReg(vpCs,ENUM_BASE_ADDR_REG_MAIN,0x2f,0,1,0x1);
if(rc!=DEF_SEM_TRUE)
}
#endif
/*1-2-0Start the GV7704 chip:RESET_8051=0x26*/
rc=semGv_SetBitsOfReg(vpCs,ENUM_BASE_ADDR_REG_MAIN,0x26,0,1,0x1);
if(rc!=DEF_SEM_TRUE)
{
return DEF_SEM_FALSE;
}
/*1-1-enable Or disable the decryption engine:DECRYPTION_ENABLE=0x26*/
//0x004027
#ifdef DEF_GV7704_ENABLE_DECRYPTION
rc=semGv_SetBitsOfReg(vpCs,ENUM_BASE_ADDR_REG_MAIN,0x26,1,1,0x1);
if(rc!=DEF_SEM_TRUE)
{
return DEF_SEM_FALSE;
}
#else
rc=semGv_SetBitsOfReg(vpCs,ENUM_BASE_ADDR_REG_MAIN,0x26,1,1,0x0);
if(rc!=DEF_SEM_TRUE)
{
return DEF_SEM_FALSE;
}
#endif
/*1-2-1enable the DMA:START_DMA=0x30*/
rc=semGv_SetBitsOfReg(vpCs,ENUM_BASE_ADDR_REG_MAIN,0x2f,0,1,0x1);
if(rc!=DEF_SEM_TRUE)
剩余12页未读,继续阅读
资源评论
- cg8652020-03-24给的不全,垃圾
gzast163
- 粉丝: 10
- 资源: 4
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- C语言-leetcode题解之56-merge-intervals.c
- C语言-leetcode题解之55-jump-game.c
- C语言-leetcode题解之54-spiral-matrix.c
- C语言-leetcode题解之53-maximum-subarray.c
- C语言-leetcode题解之50-powx-n.c
- C语言-leetcode题解之49-group-anagrams.c
- C语言-leetcode题解之48-rotate-image.c
- C语言-leetcode题解之47-permutations-ii.c
- C语言-leetcode题解之46-permutations.c
- llama.unity-unity
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功