资源简介
zigbee源程序,包括定位源程序,对于想开发zigbee的很有帮助
代码片段和文件信息
/*********************************************************************
Filename: SampleAppHw.c
Revised: $Date: 2007-03-08 13:26:13 -0800 (Thu 08 Mar 2007) $
Revision: $Revision: 13719 $
Description:
Copyright (c) 2007 by Texas Instruments Inc.
All Rights Reserved. Permission to use reproduce copy prepare
derivative works modify distribute perform display or sell this
software and/or its documentation for any purpose is prohibited
without the express written consent of Texas Instruments Inc.
*********************************************************************/
/*********************************************************************
* INCLUDES
*/
#include “ZComDef.h“
#include “hal_mcu.h“
#include “hal_defs.h“
#include “SampleAppHw.h“
/*********************************************************************
* MACROS
*/
/*********************************************************************
* CONSTANTS
*/
#if defined( CC2430DB )
/* NOTES: Jumper should be between P7.1 and P7.3 on the CC2430DB.
* P7.1 -> CC2430 P1.3
* p7.3 -> CC2430 P0.4
*/
#define JUMPERIN_BIT 0x08
#define JUMPERIN_SEL P1SEL
#define JUMPERIN_DIR P1DIR
#define JUMPERIN_INP P1INP
#define JUMPERIN P1
#define JUMPEROUT_BIT 0x10
#define JUMPEROUT_SEL P0SEL
#define JUMPEROUT_DIR P0DIR
#define JUMPEROUT_INP P0INP
#define JUMPEROUT P0
#elif defined( CC2430EB )
/* NOTES: Jumper should be between I/O A pin 9 and 11 on the CC2430EB.
* I/O A pin 9 -> CC2430 P0.2
* I/O A pin 11 -> CC2430 P0.3
*/
#define JUMPERIN_BIT 0x04
#define JUMPERIN_SEL P0SEL
#define JUMPERIN_DIR P0DIR
#define JUMPERIN_INP P0INP
#define JUMPERIN P0
#define JUMPEROUT_BIT 0x08
#define JUMPEROUT_SEL P0SEL
#define JUMPEROUT_DIR P0DIR
#define JUMPEROUT_INP P0INP
#define JUMPEROUT P0
#if defined (HAL_UART) && (HAL_UART==TRUE)
#error The UART will not work with this configuration. The RX & TX pins are used.
#endif
#else
#error Unsupported board
#endif
/*********************************************************************
* TYPEDEFS
*/
/*********************************************************************
* GLOBAL VARIABLES
*/
/*********************************************************************
* EXTERNAL VARIABLES
*/
/*********************************************************************
* EXTERNAL FUNCTIONS
*/
/*********************************************************************
* LOCAL VARIABLES
*/
/*********************************************************************
* LOCAL FUNCTIONS
*/
/*********************************************************************
* @fn readCoordinatorJumper
*
* @brief Checks for a jumper to determine if the device should
* become a coordinator
*
* NOTES: Jumpe
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 1478 2007-03-08 14:26 SampleApp\Source\SampleAppHw.h
文件 2500 2007-03-08 14:26 SampleApp\Source\SampleApp.h
文件 14421 2007-05-31 15:56 SampleApp\Source\SampleApp.c
文件 3386 2007-03-08 14:26 SampleApp\Source\OSAL_SampleApp.c
文件 4759 2007-03-08 14:26 SampleApp\CC2430DB\Source\SampleAppHw.c
文件 1228 2007-03-08 14:26 SampleApp\CC2430DB\SampleApp.eww
文件 251247 2007-04-03 13:23 SampleApp\CC2430DB\SampleApp.ewp
文件 86502 2007-04-03 13:23 SampleApp\CC2430DB\SampleApp.ewd
文件 5906 2009-06-08 14:39 SampleApp\CC2430DB\settings\SampleApp.wsdt
文件 63 2009-06-08 14:39 SampleApp\CC2430DB\settings\SampleApp.dbgdt
文件 85 2009-06-08 14:39 SampleApp\CC2430DB\settings\SampleApp.dni
文件 1321476 2009-05-13 10:24 SampleApp\CC2430DB\CoordinatorDB\Exe\SampleApp.d51
文件 6187 2009-05-25 10:20 SampleApp\CC2430DB\CoordinatorDB\Obj\SampleApp.pbd
文件 155491 2009-05-11 16:23 SampleApp\CC2430DB\CoordinatorDB\Obj\AF.r51
文件 805 2009-05-11 16:23 SampleApp\CC2430DB\CoordinatorDB\Obj\AccessCodeSpace.r51
文件 1159 2009-05-11 16:23 SampleApp\CC2430DB\CoordinatorDB\Obj\DebugTrace.r51
文件 16853 2009-05-11 16:23 SampleApp\CC2430DB\CoordinatorDB\Obj\FlashErasePage.r51
文件 1147 2009-05-11 16:23 SampleApp\CC2430DB\CoordinatorDB\Obj\MTEL.r51
文件 4298 2009-05-11 16:23 SampleApp\CC2430DB\CoordinatorDB\Obj\MT_AF.r51
文件 8025 2009-05-11 16:23 SampleApp\CC2430DB\CoordinatorDB\Obj\MT_NWK.r51
文件 1151 2009-05-11 16:23 SampleApp\CC2430DB\CoordinatorDB\Obj\MT_ZDO.r51
文件 132270 2009-05-11 16:23 SampleApp\CC2430DB\CoordinatorDB\Obj\OSAL.r51
文件 21300 2009-05-11 16:23 SampleApp\CC2430DB\CoordinatorDB\Obj\OSAL_Memory.r51
文件 330743 2009-05-11 16:23 SampleApp\CC2430DB\CoordinatorDB\Obj\OSAL_Nv.r51
文件 8932 2009-05-11 16:23 SampleApp\CC2430DB\CoordinatorDB\Obj\OSAL_PwrMgr.r51
文件 18497 2009-05-11 16:23 SampleApp\CC2430DB\CoordinatorDB\Obj\OSAL_Tasks.r51
文件 56330 2009-05-11 16:23 SampleApp\CC2430DB\CoordinatorDB\Obj\OSAL_Timers.r51
文件 36527 2009-05-11 16:23 SampleApp\CC2430DB\CoordinatorDB\Obj\OnBoard.r51
文件 6490 2009-05-11 16:23 SampleApp\CC2430DB\CoordinatorDB\Obj\SPIMgr.r51
文件 58644 2009-05-11 16:23 SampleApp\CC2430DB\CoordinatorDB\Obj\SampleApp.r51
............此处省略220个文件信息
评论
共有 条评论