⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 mc13192_hw_config.c

📁 用于WSN的PDA搜救器
💻 C
字号:
/**
 * Copyright (c) 2004, Freescale Semiconductor
 * Freescale Confidential Proprietary
 *
 * File name : MC13192_hw_config.c
 * Project name: SMAC (Simple Media Access Controller)
 *
 * Department : Freescale Radio Products Division
 *
 * Description : This is the SMAC C source driver header file for the  MC13192 
 * transceiver hardware interconnections. Initialization is accomplished by the 
 * MC13192_hw_config.c source file.
 *
 * $Author: flr005 $
 * $Date: 2006/02/23 16:24:36 $
 * $Name:  $
 */
 #define  MC13192_HW_CONFIG_GLOBALS
 
#include "include.h"


/* Globals */

/*
 * MC13192Init: Initialize the MC13192 register map.
 *
 * Parameters: None
 *
 * Return : None
 */
void MC13192Init(void)
{
    UINT16  u16Temp;
    
    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,0x4C00);   /* Enable CLKo in Doze  */
                                //4c00  Dual Port Mode
                                //5c00  Single Port Mode
    SPIDrvWrite(0x0C,0x0381);   /* IRQ pull-up disable. Vdd for RF switch is set*/
    SPIDrvWrite(0x04,0xA08D);   /* New cal value */
    SPIDrvWrite(0x05,0x8351);   /* Acoma, TC1, Doze, ATTN masks, LO1, CRC */
    SPIDrvWrite(0x06,0x4720);   /* CCA, TX, RX, energy detect */
    SPIDrvWrite(0x0B,0xC0FE);   /* IRQ pull-up disable. Vdd for RF switch is set*/
    
    u16Temp = SPIDrvRead(0x25);    //set RST

}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -