資源簡介
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個文件信息
評論
共有 條評論