资源简介
1、基于Z-Stack-3.0.2;
2、IAR版本:IAR-10.10;
3、平台:CC2530;
4、剔除所有ZigBee相关的代码,只留下OSAL核心部分和HAL层;
5、OSAL定时器采用16位计数器的定时器1,单位计时:4us,累计1ms更新OSAL_Clock和OSAL_Timer;
6、增加睡眠时间更新,使OSAL_Clock和OSAL_Timer不丢失时间;
7、在IO中断服务程序立即启动HAL_PWRMGR_HOLD_EVENT事件,是按键能正常反应(原版Z-Stack睡眠是按键反应较慢),按键事件完成后立即启动HAL_PWRMGR_CONSERVE_EVENT事件,使使设备能正常睡眠;

代码片段和文件信息
/**************************************************************************************************
Filename: hal_assert.c
Revised: $Date: 2014-07-23 12:14:30 -0700 (Wed 23 Jul 2014) $
Revision: $Revision: 39492 $
Description: Describe the purpose and contents of the file.
Copyright 2006-2014 Texas Instruments Incorporated. All rights reserved.
IMPORTANT: Your use of this Software is limited to those specific rights
granted under the terms of a software license agreement between the user
who downloaded the software his/her employer (which must be your employer)
and Texas Instruments Incorporated (the “License“). You may not use this
Software unless you agree to abide by the terms of the License. The License
limits your use and you acknowledge that the Software may not be modified
copied or distributed unless embedded on a Texas Instruments microcontroller
or used solely and exclusively in conjunction with a Texas Instruments radio
frequency transceiver which is integrated into your product. Other than for
the foregoing purpose you may not use reproduce copy prepare derivative
works of modify distribute perform display or sell this Software and/or
its documentation for any purpose.
YOU FURTHER ACKNOWLEDGE AND AGREE THAT THE SOFTWARE AND DOCUMENTATION ARE
PROVIDED 揂S IS?WITHOUT WARRANTY OF ANY KIND EITHER EXPRESS OR IMPLIED
INCLUDING WITHOUT LIMITATION ANY WARRANTY OF MERCHANTABILITY title
NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL
TEXAS INSTRUMENTS OR ITS LICENSORS BE LIABLE OR OBLIGATED UNDER CONTRACT
NEGLIGENCE STRICT LIABILITY CONTRIBUTION BREACH OF WARRANTY OR OTHER
LEGAL EQUITABLE THEORY ANY DIRECT OR INDIRECT DAMAGES OR EXPENSES
INCLUDING BUT NOT LIMITED TO ANY INCIDENTAL SPECIAL INDIRECT PUNITIVE
OR CONSEQUENTIAL DAMAGES LOST PROFITS OR LOST DATA COST OF PROCUREMENT
OF SUBSTITUTE GOODS TECHNOLOGY SERVICES OR ANY CLAIMS BY THIRD PARTIES
(INCLUDING BUT NOT LIMITED TO ANY DEFENSE THEREOF) OR OTHER SIMILAR COSTS.
Should you have any questions regarding your right to use this Software
contact Texas Instruments Incorporated at www.TI.com.
**************************************************************************************************/
/* ------------------------------------------------------------------------------------------------
* Includes
* ------------------------------------------------------------------------------------------------
*/
#include “hal_assert.h“
#include “hal_types.h“
#include “hal_board.h“
#include “hal_defs.h“
#include “hal_mcu.h“
#if (defined HAL_MCU_AVR) || (defined HAL_MCU_CC2430) || (defined HAL_MCU_CC2530) || \
(defined HAL_MCU_CC2533) || (defined HAL_MCU_MSP430)
/* for access to debug data */
//#include “mac_rx.h“
//#include “mac_tx.h“
#endif
/* ---------
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2018-10-29 09:44 OSAL\
目录 0 2018-10-29 09:44 OSAL\Components\
目录 0 2018-10-29 09:44 OSAL\Components\hal\
目录 0 2018-10-29 14:53 OSAL\Components\hal\common\
文件 9968 2018-10-28 12:18 OSAL\Components\hal\common\hal_assert.c
文件 8937 2018-10-29 14:53 OSAL\Components\hal\common\hal_drivers.c
目录 0 2018-10-29 14:41 OSAL\Components\hal\include\
文件 6268 2018-08-24 12:56 OSAL\Components\hal\include\hal_adc.h
文件 5478 2018-06-05 11:21 OSAL\Components\hal\include\hal_assert.h
文件 28 2018-06-05 11:21 OSAL\Components\hal\include\hal_board.h
文件 5989 2018-06-05 11:21 OSAL\Components\hal\include\hal_defs.h
文件 4434 2018-06-05 11:21 OSAL\Components\hal\include\hal_drivers.h
文件 4961 2018-06-05 11:21 OSAL\Components\hal\include\hal_flash.h
文件 6233 2018-10-29 14:41 OSAL\Components\hal\include\hal_key.h
文件 6092 2018-06-05 11:21 OSAL\Components\hal\include\hal_lcd.h
文件 4288 2018-06-05 11:21 OSAL\Components\hal\include\hal_led.h
文件 6049 2018-06-05 11:21 OSAL\Components\hal\include\hal_rpc.h
文件 3279 2018-10-28 20:36 OSAL\Components\hal\include\hal_sleep.h
文件 12462 2018-06-05 11:21 OSAL\Components\hal\include\hal_timer.h
文件 7795 2018-06-05 11:21 OSAL\Components\hal\include\hal_uart.h
目录 0 2018-10-29 09:44 OSAL\Components\hal\target\
目录 0 2018-10-29 14:48 OSAL\Components\hal\target\CC2530EB\
文件 24990 2018-06-05 11:21 OSAL\Components\hal\target\CC2530EB\_hal_uart_dma.c
文件 17443 2018-06-05 11:21 OSAL\Components\hal\target\CC2530EB\_hal_uart_isr.c
文件 30369 2018-10-23 21:49 OSAL\Components\hal\target\CC2530EB\font.c
文件 300 2018-10-23 21:49 OSAL\Components\hal\target\CC2530EB\font.h
文件 12061 2018-08-24 12:56 OSAL\Components\hal\target\CC2530EB\hal_adc.c
文件 5289 2018-06-05 11:21 OSAL\Components\hal\target\CC2530EB\hal_aes.h
文件 18346 2018-10-29 11:12 OSAL\Components\hal\target\CC2530EB\hal_board_cfg.h
文件 3054 2018-06-05 11:21 OSAL\Components\hal\target\CC2530EB\hal_ccm.h
文件 5541 2018-06-05 11:21 OSAL\Components\hal\target\CC2530EB\hal_dma.c
............此处省略68个文件信息
相关资源
- cc2530寄存器手册
- IEEE 802.15.4的CC2530无线数据收发设计
- IEEE 802.15.4的CC2530无线数据收发设计
- ZStack-CC2530-2.5.1a
- 基于ZigBee温室环境监测系统电路设计
- 智能分户供暖监控系统的无线温控器
- CC2530的分布式无线数据采集系统设计
- CC2530 BasicRFTI源文件
- cc2530-contiki读取DHT11并发送数据例程
- CC2530中文数据手册完全版.pdf
- CC2530 (zigbee) 中文数据手册完全版
- SampleApp_dht11.zip
- zigbee基于cc2530指导
- 基于cc2530的温湿度检测点对点无线传
- 基于CC2530的温湿度数据采集系统
- 基于cc2530的zigbee的无线led灯控制程序
- TI公司推出的CCS3.3开发环境中文入门指
- 基于Zigbee的室内自定位
- Zigbee CC2530 振动传感器开发源码 项目
- Zigbee CC2530 酒精传感器开发源码
- Zigbee CC2530 火焰传感器开发源码
- CC2530+DHT11温湿度传感器+HC-SR04超声波传
- cc2530中文数据手册完全版
- Zigbee CC2530模块电路图和原理图
- STM32和CC2530串口通信
- cc2530无线点灯实验
- CC2530无线点灯
- TIMAC-CC2530-1.4.0
- ZStack-CC2530-2.3.0-1.4.0 完整文档,多个
- 光照低功耗.rar
评论
共有 条评论