在线时间0 小时
UID183336
注册时间2010-4-22
NXP金币0
该用户从未签到
新手上路

- 积分
- 104
- 最后登录
- 1970-1-1
|

楼主 |
发表于 2011-2-24 09:07:39
|
显示全部楼层
回复:SMAC
不符合附件的类型传不上去,安装后里边有device_header,driver,MC13192_hw_config等的头文件和 C source file,其中MC13192_hw_config.c source file具体内容如下:
* transceiver hardware interconnections. Initialization is accomplished by the
* MC13192_hw_config.c source file.
*
* $Author: flr005 $
* $Date: 2006/02/23 16:24:36 $
* $Name: $
*/
#include "device_header.h"
#include "pub_def.h"
#include "drivers.h"
#include "MC13192_hw_config.h"
/* Globals */
extern UINT8 gu8RTxMode;
/*
* MC13192Init: Initialize the MC13192 register map.
*
* Parameters: None
*
* Return : None
*/
void MC13192Init(void)
{
/* Please refer to document MC13192RM for hidden register initialization */
SPIDrvWrite(0x11,0x80FF); /* Eliminate Unlock Conditions due to L01 */
SPIDrvWrite(0x1B,0x8000); /* Disable TC1. */
SPIDrvWrite(0x1D,0x8000); /* Disable TC2. */
SPIDrvWrite(0x1F,0x8000); /* Disable TC3. */
SPIDrvWrite(0x21,0x8000); /* Disable TC4. */
SPIDrvWrite(0x07,0x0E00); /* Enable CLKo in Doze */
SPIDrvWrite(0x0C,0x0300); /* IRQ pull-up disable. */
SPIDrvRead(0x25); /* Sets the reset indicator bit */
SPIDrvWrite(0x04,0xA08D); /* New cal value */
SPIDrvWrite(0x08,0xFFF7); /* Preferred injection */
SPIDrvWrite(0x05,0x8351); /* Acoma, TC1, Doze, ATTN masks, LO1, CRC */
SPIDrvWrite(0x06,0x4720); /* CCA, TX, RX, energy detect */
/* Read the status register to clear any undesired IRQs. */
SPIDrvRead(0x24); /* Clear the status register, if set */
gu8RTxMode = IDLE_MODE; /* Update global to reflect MC13192 status */
}
|
|