资源简介
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个文件信息
相关资源
- ZigBee CC2530 12864液晶串行程序
- CC2530产生随机数修正版
- BH1750 for CC2530
- CC2530与HC-SR04超声波模块通信
- ZigBee CC2530视频教程
- CC2530流水灯实验
- cc debugger 32位 64位
- 基于CC2530 及ZigBee 协议栈设计无线网络
- CC2530 URAT2串口源程序
- CC2530驱动DHT11自己整理编写简单易懂
- CC2530+2401 带PA的ZIGBEE。提供PCB板与原理
- CC2530zigbee_gy2561_ds18b20_am2302_mg811
- CC2530 无线串口实现
- cc2530驱动中景园0.96寸OLED屏幕
- 基于cc2530的HMC5883L程序 测量地磁 I2C通
- CC2530+DHT11+HCSR04+蜂鸣器+串口显示=简单
- cc2530驱动EEPROMAT24C64读写
- CC2530 Flash操作程序
- 基于中断的CC2530的收发程序
- ZigBee 远程控制 APK CC2530 安卓
评论
共有 条评论