├── .gitignore ├── Components ├── hal │ ├── common │ │ ├── hal_assert.c │ │ └── hal_drivers.c │ ├── include │ │ ├── hal_adc.h │ │ ├── hal_assert.h │ │ ├── hal_board.h │ │ ├── hal_ccm.h │ │ ├── hal_defs.h │ │ ├── hal_drivers.h │ │ ├── hal_flash.h │ │ ├── hal_key.h │ │ ├── hal_lcd.h │ │ ├── hal_led.h │ │ ├── hal_sleep.h │ │ ├── hal_timer.h │ │ └── hal_uart.h │ └── target │ │ ├── CC2530EB │ │ ├── _hal_uart_dma.c │ │ ├── _hal_uart_isr.c │ │ ├── hal_adc.c │ │ ├── hal_aes.h │ │ ├── hal_board_cfg.h │ │ ├── hal_dma.c │ │ ├── hal_dma.h │ │ ├── hal_flash.c │ │ ├── hal_key.c │ │ ├── hal_lcd.c │ │ ├── hal_led.c │ │ ├── hal_mac_cfg.h │ │ ├── hal_mcu.h │ │ ├── hal_oad.c │ │ ├── hal_oad.h │ │ ├── hal_sleep.c │ │ ├── hal_startup.c │ │ ├── hal_timer.c │ │ ├── hal_types.h │ │ └── hal_uart.c │ │ ├── CC2530USB │ │ ├── _hal_uart_usb.c │ │ ├── hal_adc.c │ │ ├── hal_aes.h │ │ ├── hal_board_cfg.h │ │ ├── hal_dma.c │ │ ├── hal_dma.h │ │ ├── hal_flash.c │ │ ├── hal_key.c │ │ ├── hal_lcd.c │ │ ├── hal_led.c │ │ ├── hal_mac_cfg.h │ │ ├── hal_mcu.h │ │ ├── hal_oad.c │ │ ├── hal_oad.h │ │ ├── hal_sleep.c │ │ ├── hal_startup.c │ │ ├── hal_timer.c │ │ ├── hal_types.h │ │ ├── hal_uart.c │ │ └── usb │ │ │ ├── class_cdc │ │ │ ├── usb_cdc.h │ │ │ ├── usb_cdc_descriptor.s51 │ │ │ ├── usb_cdc_hooks.c │ │ │ ├── usb_cdc_hooks.h │ │ │ ├── usb_firmware_library_config.c │ │ │ ├── usb_firmware_library_config.h │ │ │ └── usb_firmware_library_headers.h │ │ │ └── library │ │ │ ├── cc2531 │ │ │ ├── usb_board_cfg.h │ │ │ ├── usb_interrupt.c │ │ │ └── usb_suspend.c │ │ │ ├── usb_descriptor.h │ │ │ ├── usb_descriptor_parser.c │ │ │ ├── usb_descriptor_parser.h │ │ │ ├── usb_framework.c │ │ │ ├── usb_framework.h │ │ │ ├── usb_framework_structs.h │ │ │ ├── usb_interrupt.h │ │ │ ├── usb_reg.h │ │ │ ├── usb_standard_requests.c │ │ │ ├── usb_standard_requests.h │ │ │ └── usb_suspend.h │ │ └── CC2530ZNP │ │ ├── _hal_uart_dma.c │ │ ├── hal_adc.c │ │ ├── hal_aes.h │ │ ├── hal_board_cfg.h │ │ ├── hal_dma.c │ │ ├── hal_dma.h │ │ ├── hal_flash.c │ │ ├── hal_key.c │ │ ├── hal_lcd.c │ │ ├── hal_led.c │ │ ├── hal_mac_cfg.h │ │ ├── hal_mcu.h │ │ ├── hal_oad.c │ │ ├── hal_oad.h │ │ ├── hal_sleep.c │ │ ├── hal_spi.c │ │ ├── hal_spi.h │ │ ├── hal_startup.c │ │ ├── hal_timer.c │ │ ├── hal_types.h │ │ └── hal_uart.c ├── mac │ ├── high_level │ │ ├── mac_cfg.c │ │ ├── mac_high_level.h │ │ ├── mac_main.h │ │ ├── mac_pib.h │ │ └── mac_spec.h │ ├── include │ │ └── mac_api.h │ └── low_level │ │ └── srf04 │ │ ├── mac_assert.h │ │ ├── mac_autopend.c │ │ ├── mac_autopend.h │ │ ├── mac_backoff_timer.c │ │ ├── mac_backoff_timer.h │ │ ├── mac_low_level.c │ │ ├── mac_low_level.h │ │ ├── mac_radio.c │ │ ├── mac_radio.h │ │ ├── mac_rx.c │ │ ├── mac_rx.h │ │ ├── mac_rx_onoff.c │ │ ├── mac_rx_onoff.h │ │ ├── mac_sleep.c │ │ ├── mac_sleep.h │ │ ├── mac_tx.c │ │ ├── mac_tx.h │ │ └── single_chip │ │ ├── mac_csp_tx.c │ │ ├── mac_csp_tx.h │ │ ├── mac_mcu.c │ │ ├── mac_mcu.h │ │ ├── mac_mem.c │ │ ├── mac_mem.h │ │ ├── mac_radio_defs.c │ │ ├── mac_radio_defs.h │ │ └── mac_rffrontend.c ├── mt │ ├── DebugTrace.c │ ├── DebugTrace.h │ ├── MT.c │ ├── MT.h │ ├── MT_AF.c │ ├── MT_AF.h │ ├── MT_APP.c │ ├── MT_APP.h │ ├── MT_DEBUG.c │ ├── MT_DEBUG.h │ ├── MT_MAC.c │ ├── MT_MAC.h │ ├── MT_NWK.c │ ├── MT_NWK.h │ ├── MT_RPC.h │ ├── MT_SAPI.c │ ├── MT_SAPI.h │ ├── MT_SYS.c │ ├── MT_SYS.h │ ├── MT_TASK.c │ ├── MT_TASK.h │ ├── MT_UART.c │ ├── MT_UART.h │ ├── MT_UTIL.c │ ├── MT_UTIL.h │ ├── MT_VERSION.c │ ├── MT_VERSION.h │ ├── MT_ZDO.c │ └── MT_ZDO.h ├── osal │ ├── common │ │ ├── OSAL.c │ │ ├── OSAL_Clock.c │ │ ├── OSAL_Memory.c │ │ ├── OSAL_PwrMgr.c │ │ └── OSAL_Timers.c │ ├── include │ │ ├── OSAL.h │ │ ├── OSAL_Clock.h │ │ ├── OSAL_Memory.h │ │ ├── OSAL_Nv.h │ │ ├── OSAL_PwrMgr.h │ │ ├── OSAL_Tasks.h │ │ ├── OSAL_Timers.h │ │ ├── ZComDef.h │ │ └── comdef.h │ └── mcu │ │ └── cc2530 │ │ └── OSAL_Nv.c ├── services │ ├── saddr │ │ ├── saddr.c │ │ └── saddr.h │ └── sdata │ │ └── sdata.h ├── stack │ ├── af │ │ ├── AF.c │ │ └── AF.h │ ├── nwk │ │ ├── APS.h │ │ ├── APSMEDE.h │ │ ├── AddrMgr.h │ │ ├── AssocList.h │ │ ├── BindingTable.h │ │ ├── NLMEDE.h │ │ ├── aps_frag.h │ │ ├── aps_groups.h │ │ ├── aps_util.h │ │ ├── nwk.h │ │ ├── nwk_bufs.h │ │ ├── nwk_globals.c │ │ ├── nwk_globals.h │ │ ├── nwk_util.h │ │ ├── reflecttrack.h │ │ ├── rtg.h │ │ ├── stub_aps.c │ │ └── stub_aps.h │ ├── sapi │ │ ├── sapi.c │ │ └── sapi.h │ ├── sec │ │ ├── eccapi.h │ │ ├── ssp.h │ │ └── ssp_hash.h │ ├── sys │ │ ├── ZGlobals.c │ │ └── ZGlobals.h │ ├── zcl │ │ ├── zcl.c │ │ ├── zcl.h │ │ ├── zcl_closures.c │ │ ├── zcl_closures.h │ │ ├── zcl_general.c │ │ ├── zcl_general.h │ │ ├── zcl_hvac.c │ │ ├── zcl_hvac.h │ │ ├── zcl_key_establish.c │ │ ├── zcl_key_establish.h │ │ ├── zcl_lighting.c │ │ ├── zcl_lighting.h │ │ ├── zcl_ms.c │ │ ├── zcl_ms.h │ │ ├── zcl_pi.c │ │ ├── zcl_pi.h │ │ ├── zcl_se.c │ │ ├── zcl_se.h │ │ ├── zcl_ss.c │ │ └── zcl_ss.h │ └── zdo │ │ ├── ZDApp.c │ │ ├── ZDApp.h │ │ ├── ZDConfig.c │ │ ├── ZDConfig.h │ │ ├── ZDNwkMgr.c │ │ ├── ZDNwkMgr.h │ │ ├── ZDObject.c │ │ ├── ZDObject.h │ │ ├── ZDProfile.c │ │ ├── ZDProfile.h │ │ ├── ZDSecMgr.c │ │ └── ZDSecMgr.h └── zmac │ ├── ZMAC.h │ └── f8w │ ├── zmac.c │ ├── zmac_cb.c │ └── zmac_internal.h ├── Projects └── zstack │ ├── Samples │ └── ZigbeeZstack │ │ └── Source │ │ └── App │ │ ├── Base │ │ ├── Apps │ │ │ ├── app_tcp.c │ │ │ └── app_tcp.h │ │ ├── BaseApp.c │ │ ├── BaseApp.h │ │ ├── Drivers │ │ │ ├── dri_buzzer.c │ │ │ ├── dri_buzzer.h │ │ │ ├── dri_delay.c │ │ │ ├── dri_delay.h │ │ │ ├── dri_i2c.c │ │ │ ├── dri_i2c.h │ │ │ ├── dri_iport.c │ │ │ ├── dri_iport.h │ │ │ ├── dri_key.c │ │ │ ├── dri_key.h │ │ │ ├── dri_led.c │ │ │ ├── dri_led.h │ │ │ ├── dri_motor.c │ │ │ ├── dri_motor.h │ │ │ ├── dri_spi.c │ │ │ ├── dri_spi.h │ │ │ ├── dri_uart.c │ │ │ └── dri_uart.h │ │ └── OSAL_BaseApp.c │ │ └── Lock │ │ ├── AppsH │ │ ├── apph_card.c │ │ ├── apph_card.h │ │ ├── apph_door.c │ │ └── apph_door.h │ │ ├── AppsL │ │ ├── appl_data.c │ │ └── appl_data.h │ │ ├── Config.h │ │ ├── Devices │ │ ├── dev_at24c256.c │ │ ├── dev_at24c256.h │ │ ├── dev_buzzer.c │ │ ├── dev_buzzer.h │ │ ├── dev_door.h │ │ ├── dev_mfrc522.c │ │ ├── dev_mfrc522.h │ │ └── dev_motor.c │ │ ├── Drivers │ │ ├── dri_adc.c │ │ ├── dri_adc.h │ │ ├── dri_buzzer.c │ │ ├── dri_buzzer.h │ │ ├── dri_delay.c │ │ ├── dri_delay.h │ │ ├── dri_i2c.c │ │ ├── dri_i2c.h │ │ ├── dri_key.c │ │ ├── dri_key.h │ │ ├── dri_led.c │ │ ├── dri_led.h │ │ ├── dri_motor.c │ │ ├── dri_motor.h │ │ ├── dri_spi.c │ │ └── dri_spi.h │ │ ├── LockApp.c │ │ ├── LockApp.h │ │ └── OSAL_LockApp.c │ ├── Tools │ └── CC2530DB │ │ ├── f8w2530.xcl │ │ ├── f8wConfig.cfg │ │ ├── f8wCoord.cfg │ │ ├── f8wEndev.cfg │ │ ├── f8wRouter.cfg │ │ ├── f8wZCL.cfg │ │ ├── oad-boot.xcl │ │ ├── oad.exe │ │ ├── oad.xcl │ │ └── znp.cfg │ └── ZMain │ ├── TI2530DB │ ├── OnBoard.c │ ├── OnBoard.h │ ├── ZMain.c │ ├── chipcon_cstartup.s51 │ └── interrupt_stubs.s51 │ └── TI2530ZNP │ ├── OnBoard.c │ ├── OnBoard.h │ ├── ZMain.c │ └── chipcon_cstartup.s51 └── README.md /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zigbee-door/zigbee-zstack/967446d115ab04b04090ad3d119e4f1ba10c7b30/.gitignore -------------------------------------------------------------------------------- /Components/hal/common/hal_assert.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zigbee-door/zigbee-zstack/967446d115ab04b04090ad3d119e4f1ba10c7b30/Components/hal/common/hal_assert.c -------------------------------------------------------------------------------- /Components/hal/common/hal_drivers.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zigbee-door/zigbee-zstack/967446d115ab04b04090ad3d119e4f1ba10c7b30/Components/hal/common/hal_drivers.c -------------------------------------------------------------------------------- /Components/hal/include/hal_adc.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zigbee-door/zigbee-zstack/967446d115ab04b04090ad3d119e4f1ba10c7b30/Components/hal/include/hal_adc.h -------------------------------------------------------------------------------- /Components/hal/include/hal_assert.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zigbee-door/zigbee-zstack/967446d115ab04b04090ad3d119e4f1ba10c7b30/Components/hal/include/hal_assert.h -------------------------------------------------------------------------------- /Components/hal/include/hal_board.h: -------------------------------------------------------------------------------- 1 | #include "hal_board_cfg.h" 2 | -------------------------------------------------------------------------------- /Components/hal/include/hal_ccm.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zigbee-door/zigbee-zstack/967446d115ab04b04090ad3d119e4f1ba10c7b30/Components/hal/include/hal_ccm.h -------------------------------------------------------------------------------- /Components/hal/include/hal_defs.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zigbee-door/zigbee-zstack/967446d115ab04b04090ad3d119e4f1ba10c7b30/Components/hal/include/hal_defs.h -------------------------------------------------------------------------------- /Components/hal/include/hal_drivers.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zigbee-door/zigbee-zstack/967446d115ab04b04090ad3d119e4f1ba10c7b30/Components/hal/include/hal_drivers.h -------------------------------------------------------------------------------- /Components/hal/include/hal_flash.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zigbee-door/zigbee-zstack/967446d115ab04b04090ad3d119e4f1ba10c7b30/Components/hal/include/hal_flash.h -------------------------------------------------------------------------------- /Components/hal/include/hal_key.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zigbee-door/zigbee-zstack/967446d115ab04b04090ad3d119e4f1ba10c7b30/Components/hal/include/hal_key.h -------------------------------------------------------------------------------- /Components/hal/include/hal_lcd.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zigbee-door/zigbee-zstack/967446d115ab04b04090ad3d119e4f1ba10c7b30/Components/hal/include/hal_lcd.h -------------------------------------------------------------------------------- /Components/hal/include/hal_led.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zigbee-door/zigbee-zstack/967446d115ab04b04090ad3d119e4f1ba10c7b30/Components/hal/include/hal_led.h -------------------------------------------------------------------------------- /Components/hal/include/hal_sleep.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zigbee-door/zigbee-zstack/967446d115ab04b04090ad3d119e4f1ba10c7b30/Components/hal/include/hal_sleep.h -------------------------------------------------------------------------------- /Components/hal/include/hal_timer.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zigbee-door/zigbee-zstack/967446d115ab04b04090ad3d119e4f1ba10c7b30/Components/hal/include/hal_timer.h -------------------------------------------------------------------------------- /Components/hal/include/hal_uart.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zigbee-door/zigbee-zstack/967446d115ab04b04090ad3d119e4f1ba10c7b30/Components/hal/include/hal_uart.h -------------------------------------------------------------------------------- /Components/hal/target/CC2530EB/_hal_uart_dma.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zigbee-door/zigbee-zstack/967446d115ab04b04090ad3d119e4f1ba10c7b30/Components/hal/target/CC2530EB/_hal_uart_dma.c -------------------------------------------------------------------------------- /Components/hal/target/CC2530EB/_hal_uart_isr.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zigbee-door/zigbee-zstack/967446d115ab04b04090ad3d119e4f1ba10c7b30/Components/hal/target/CC2530EB/_hal_uart_isr.c -------------------------------------------------------------------------------- /Components/hal/target/CC2530EB/hal_adc.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zigbee-door/zigbee-zstack/967446d115ab04b04090ad3d119e4f1ba10c7b30/Components/hal/target/CC2530EB/hal_adc.c -------------------------------------------------------------------------------- /Components/hal/target/CC2530EB/hal_aes.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zigbee-door/zigbee-zstack/967446d115ab04b04090ad3d119e4f1ba10c7b30/Components/hal/target/CC2530EB/hal_aes.h -------------------------------------------------------------------------------- /Components/hal/target/CC2530EB/hal_board_cfg.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zigbee-door/zigbee-zstack/967446d115ab04b04090ad3d119e4f1ba10c7b30/Components/hal/target/CC2530EB/hal_board_cfg.h -------------------------------------------------------------------------------- /Components/hal/target/CC2530EB/hal_dma.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zigbee-door/zigbee-zstack/967446d115ab04b04090ad3d119e4f1ba10c7b30/Components/hal/target/CC2530EB/hal_dma.c -------------------------------------------------------------------------------- /Components/hal/target/CC2530EB/hal_dma.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zigbee-door/zigbee-zstack/967446d115ab04b04090ad3d119e4f1ba10c7b30/Components/hal/target/CC2530EB/hal_dma.h -------------------------------------------------------------------------------- /Components/hal/target/CC2530EB/hal_flash.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zigbee-door/zigbee-zstack/967446d115ab04b04090ad3d119e4f1ba10c7b30/Components/hal/target/CC2530EB/hal_flash.c -------------------------------------------------------------------------------- /Components/hal/target/CC2530EB/hal_key.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zigbee-door/zigbee-zstack/967446d115ab04b04090ad3d119e4f1ba10c7b30/Components/hal/target/CC2530EB/hal_key.c -------------------------------------------------------------------------------- /Components/hal/target/CC2530EB/hal_lcd.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zigbee-door/zigbee-zstack/967446d115ab04b04090ad3d119e4f1ba10c7b30/Components/hal/target/CC2530EB/hal_lcd.c -------------------------------------------------------------------------------- /Components/hal/target/CC2530EB/hal_led.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zigbee-door/zigbee-zstack/967446d115ab04b04090ad3d119e4f1ba10c7b30/Components/hal/target/CC2530EB/hal_led.c -------------------------------------------------------------------------------- /Components/hal/target/CC2530EB/hal_mac_cfg.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zigbee-door/zigbee-zstack/967446d115ab04b04090ad3d119e4f1ba10c7b30/Components/hal/target/CC2530EB/hal_mac_cfg.h -------------------------------------------------------------------------------- /Components/hal/target/CC2530EB/hal_mcu.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zigbee-door/zigbee-zstack/967446d115ab04b04090ad3d119e4f1ba10c7b30/Components/hal/target/CC2530EB/hal_mcu.h -------------------------------------------------------------------------------- /Components/hal/target/CC2530EB/hal_oad.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zigbee-door/zigbee-zstack/967446d115ab04b04090ad3d119e4f1ba10c7b30/Components/hal/target/CC2530EB/hal_oad.c -------------------------------------------------------------------------------- /Components/hal/target/CC2530EB/hal_oad.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zigbee-door/zigbee-zstack/967446d115ab04b04090ad3d119e4f1ba10c7b30/Components/hal/target/CC2530EB/hal_oad.h -------------------------------------------------------------------------------- /Components/hal/target/CC2530EB/hal_sleep.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zigbee-door/zigbee-zstack/967446d115ab04b04090ad3d119e4f1ba10c7b30/Components/hal/target/CC2530EB/hal_sleep.c -------------------------------------------------------------------------------- /Components/hal/target/CC2530EB/hal_startup.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zigbee-door/zigbee-zstack/967446d115ab04b04090ad3d119e4f1ba10c7b30/Components/hal/target/CC2530EB/hal_startup.c -------------------------------------------------------------------------------- /Components/hal/target/CC2530EB/hal_timer.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zigbee-door/zigbee-zstack/967446d115ab04b04090ad3d119e4f1ba10c7b30/Components/hal/target/CC2530EB/hal_timer.c -------------------------------------------------------------------------------- /Components/hal/target/CC2530EB/hal_types.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zigbee-door/zigbee-zstack/967446d115ab04b04090ad3d119e4f1ba10c7b30/Components/hal/target/CC2530EB/hal_types.h -------------------------------------------------------------------------------- /Components/hal/target/CC2530EB/hal_uart.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zigbee-door/zigbee-zstack/967446d115ab04b04090ad3d119e4f1ba10c7b30/Components/hal/target/CC2530EB/hal_uart.c -------------------------------------------------------------------------------- /Components/hal/target/CC2530USB/_hal_uart_usb.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zigbee-door/zigbee-zstack/967446d115ab04b04090ad3d119e4f1ba10c7b30/Components/hal/target/CC2530USB/_hal_uart_usb.c -------------------------------------------------------------------------------- /Components/hal/target/CC2530USB/hal_adc.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zigbee-door/zigbee-zstack/967446d115ab04b04090ad3d119e4f1ba10c7b30/Components/hal/target/CC2530USB/hal_adc.c -------------------------------------------------------------------------------- /Components/hal/target/CC2530USB/hal_aes.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zigbee-door/zigbee-zstack/967446d115ab04b04090ad3d119e4f1ba10c7b30/Components/hal/target/CC2530USB/hal_aes.h -------------------------------------------------------------------------------- /Components/hal/target/CC2530USB/hal_board_cfg.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zigbee-door/zigbee-zstack/967446d115ab04b04090ad3d119e4f1ba10c7b30/Components/hal/target/CC2530USB/hal_board_cfg.h -------------------------------------------------------------------------------- /Components/hal/target/CC2530USB/hal_dma.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zigbee-door/zigbee-zstack/967446d115ab04b04090ad3d119e4f1ba10c7b30/Components/hal/target/CC2530USB/hal_dma.c -------------------------------------------------------------------------------- /Components/hal/target/CC2530USB/hal_dma.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zigbee-door/zigbee-zstack/967446d115ab04b04090ad3d119e4f1ba10c7b30/Components/hal/target/CC2530USB/hal_dma.h -------------------------------------------------------------------------------- /Components/hal/target/CC2530USB/hal_flash.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zigbee-door/zigbee-zstack/967446d115ab04b04090ad3d119e4f1ba10c7b30/Components/hal/target/CC2530USB/hal_flash.c -------------------------------------------------------------------------------- /Components/hal/target/CC2530USB/hal_key.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zigbee-door/zigbee-zstack/967446d115ab04b04090ad3d119e4f1ba10c7b30/Components/hal/target/CC2530USB/hal_key.c -------------------------------------------------------------------------------- /Components/hal/target/CC2530USB/hal_lcd.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zigbee-door/zigbee-zstack/967446d115ab04b04090ad3d119e4f1ba10c7b30/Components/hal/target/CC2530USB/hal_lcd.c -------------------------------------------------------------------------------- /Components/hal/target/CC2530USB/hal_led.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zigbee-door/zigbee-zstack/967446d115ab04b04090ad3d119e4f1ba10c7b30/Components/hal/target/CC2530USB/hal_led.c -------------------------------------------------------------------------------- /Components/hal/target/CC2530USB/hal_mac_cfg.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zigbee-door/zigbee-zstack/967446d115ab04b04090ad3d119e4f1ba10c7b30/Components/hal/target/CC2530USB/hal_mac_cfg.h -------------------------------------------------------------------------------- /Components/hal/target/CC2530USB/hal_mcu.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zigbee-door/zigbee-zstack/967446d115ab04b04090ad3d119e4f1ba10c7b30/Components/hal/target/CC2530USB/hal_mcu.h -------------------------------------------------------------------------------- /Components/hal/target/CC2530USB/hal_oad.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zigbee-door/zigbee-zstack/967446d115ab04b04090ad3d119e4f1ba10c7b30/Components/hal/target/CC2530USB/hal_oad.c -------------------------------------------------------------------------------- /Components/hal/target/CC2530USB/hal_oad.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zigbee-door/zigbee-zstack/967446d115ab04b04090ad3d119e4f1ba10c7b30/Components/hal/target/CC2530USB/hal_oad.h -------------------------------------------------------------------------------- /Components/hal/target/CC2530USB/hal_sleep.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zigbee-door/zigbee-zstack/967446d115ab04b04090ad3d119e4f1ba10c7b30/Components/hal/target/CC2530USB/hal_sleep.c -------------------------------------------------------------------------------- /Components/hal/target/CC2530USB/hal_startup.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zigbee-door/zigbee-zstack/967446d115ab04b04090ad3d119e4f1ba10c7b30/Components/hal/target/CC2530USB/hal_startup.c -------------------------------------------------------------------------------- /Components/hal/target/CC2530USB/hal_timer.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zigbee-door/zigbee-zstack/967446d115ab04b04090ad3d119e4f1ba10c7b30/Components/hal/target/CC2530USB/hal_timer.c -------------------------------------------------------------------------------- /Components/hal/target/CC2530USB/hal_types.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zigbee-door/zigbee-zstack/967446d115ab04b04090ad3d119e4f1ba10c7b30/Components/hal/target/CC2530USB/hal_types.h -------------------------------------------------------------------------------- /Components/hal/target/CC2530USB/hal_uart.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zigbee-door/zigbee-zstack/967446d115ab04b04090ad3d119e4f1ba10c7b30/Components/hal/target/CC2530USB/hal_uart.c -------------------------------------------------------------------------------- /Components/hal/target/CC2530USB/usb/class_cdc/usb_cdc.h: -------------------------------------------------------------------------------- 1 | /*********************************************************************************** 2 | 3 | Filename: usb_cdc.h 4 | 5 | Description: USB CDC definitions. 6 | 7 | ***********************************************************************************/ 8 | 9 | #ifndef USB_CDC_H 10 | #define USB_CDC_H 11 | 12 | /* Device Class Code */ 13 | #define CDC_DEVICE 0x02 14 | 15 | /* Communication Interface Class Code */ 16 | #define COMM_INTF 0x02 17 | 18 | /* Communication Interface Class SubClass Codes */ 19 | #define ABSTRACT_CONTROL_MODEL 0x02 20 | 21 | /* Communication Interface Class Control Protocol Codes */ 22 | #define V25TER 0x01 // Common AT commands ("Hayes(TM)") 23 | 24 | 25 | /* Data Interface Class Codes */ 26 | #define DATA_INTF 0x0A 27 | 28 | /* Data Interface Class Protocol Codes */ 29 | #define NO_PROTOCOL 0x00 // No class specific protocol required 30 | 31 | 32 | /* Communication Feature Selector Codes */ 33 | #define ABSTRACT_STATE 0x01 34 | #define COUNTRY_SETTING 0x02 35 | 36 | /* Functional Descriptors */ 37 | /* Type Values for the bDescType Field */ 38 | #define CS_INTERFACE 0x24 39 | #define CS_ENDPOINT 0x25 40 | 41 | /* bDescSubType in Functional Descriptors */ 42 | #define DSC_FN_HEADER 0x00 43 | #define DSC_FN_CALL_MGT 0x01 44 | #define DSC_FN_ACM 0x02 // ACM - Abstract Control Management 45 | #define DSC_FN_DLM 0x03 // DLM - Direct Line Managment 46 | #define DSC_FN_TELEPHONE_RINGER 0x04 47 | #define DSC_FN_RPT_CAPABILITIES 0x05 48 | #define DSC_FN_UNION 0x06 49 | #define DSC_FN_COUNTRY_SELECTION 0x07 50 | #define DSC_FN_TEL_OP_MODES 0x08 51 | #define DSC_FN_USB_TERMINAL 0x09 52 | /* more.... see Table 25 in USB CDC Specification 1.1 */ 53 | 54 | 55 | #define CDC_COMM_INTF_ID 0x00 56 | #define CDC_DATA_INTF_ID 0x01 57 | 58 | 59 | 60 | // CLASS REQUESTS 61 | #define CDC_SEND_ENCAPSULATED_COMMAND 0x00 62 | #define CDC_GET_ENCAPSULATED_RESPONSE 0x01 63 | #define CDC_SET_COMM_FEATURE 0x02 //optional 64 | #define CDC_GET_COMM_FEATURE 0x03 //optional 65 | #define CDC_CLEAR_COMM_FEATURE 0x04 //optional 66 | #define CDC_SET_LINE_CODING 0x20 //optional 67 | #define CDC_GET_LINE_CODING 0x21 //optional 68 | #define CDC_SET_CONTROL_LINE_STATE 0x22 //optional 69 | #define CDC_SEND_BREAK 0x23 //optional 70 | 71 | 72 | 73 | #define CDC_CHAR_FORMAT_1_STOP_BIT 0 74 | #define CDC_CHAR_FORMAT_1_5_STOP_BIT 1 75 | #define CDC_CHAR_FORMAT_2_STOP_BIT 2 76 | 77 | #define CDC_PARITY_TYPE_NONE 0 78 | #define CDC_PARITY_TYPE_ODD 1 79 | #define CDC_PARITY_TYPE_EVEN 2 80 | #define CDC_PARITY_TYPE_MARK 3 81 | #define CDC_PARITY_TYPE_SPACE 4 82 | 83 | /* 84 | +------------------------------------------------------------------------------ 85 | | Copyright 2004-2009 Texas Instruments Incorporated. All rights reserved. 86 | | 87 | | IMPORTANT: Your use of this Software is limited to those specific rights 88 | | granted under the terms of a software license agreement between the user who 89 | | downloaded the software, his/her employer (which must be your employer) and 90 | | Texas Instruments Incorporated (the "License"). You may not use this Software 91 | | unless you agree to abide by the terms of the License. The License limits 92 | | your use, and you acknowledge, that the Software may not be modified, copied 93 | | or distributed unless embedded on a Texas Instruments microcontroller or used 94 | | solely and exclusively in conjunction with a Texas Instruments radio 95 | | frequency transceiver, which is integrated into your product. Other than for 96 | | the foregoing purpose, you may not use, reproduce, copy, prepare derivative 97 | | works of, modify, distribute, perform, display or sell this Software and/or 98 | | its documentation for any purpose. 99 | | 100 | | YOU FURTHER ACKNOWLEDGE AND AGREE THAT THE SOFTWARE AND DOCUMENTATION ARE 101 | | PROVIDED “AS IS” WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED, 102 | | INCLUDING WITHOUT LIMITATION, ANY WARRANTY OF MERCHANTABILITY, TITLE, 103 | | NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL 104 | | TEXAS INSTRUMENTS OR ITS LICENSORS BE LIABLE OR OBLIGATED UNDER CONTRACT, 105 | | NEGLIGENCE, STRICT LIABILITY, CONTRIBUTION, BREACH OF WARRANTY, OR OTHER 106 | | LEGAL EQUITABLE THEORY ANY DIRECT OR INDIRECT DAMAGES OR EXPENSES INCLUDING 107 | | BUT NOT LIMITED TO ANY INCIDENTAL, SPECIAL, INDIRECT, PUNITIVE OR 108 | | CONSEQUENTIAL DAMAGES, LOST PROFITS OR LOST DATA, COST OF PROCUREMENT OF 109 | | SUBSTITUTE GOODS, TECHNOLOGY, SERVICES, OR ANY CLAIMS BY THIRD PARTIES 110 | | (INCLUDING BUT NOT LIMITED TO ANY DEFENSE THEREOF), OR OTHER SIMILAR COSTS. 111 | | 112 | | Should you have any questions regarding your right to use this Software, 113 | | contact Texas Instruments Incorporated at www.TI.com. 114 | | 115 | +------------------------------------------------------------------------------ 116 | */ 117 | 118 | #endif 119 | -------------------------------------------------------------------------------- /Components/hal/target/CC2530USB/usb/class_cdc/usb_cdc_descriptor.s51: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zigbee-door/zigbee-zstack/967446d115ab04b04090ad3d119e4f1ba10c7b30/Components/hal/target/CC2530USB/usb/class_cdc/usb_cdc_descriptor.s51 -------------------------------------------------------------------------------- /Components/hal/target/CC2530USB/usb/class_cdc/usb_cdc_hooks.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zigbee-door/zigbee-zstack/967446d115ab04b04090ad3d119e4f1ba10c7b30/Components/hal/target/CC2530USB/usb/class_cdc/usb_cdc_hooks.c -------------------------------------------------------------------------------- /Components/hal/target/CC2530USB/usb/class_cdc/usb_cdc_hooks.h: -------------------------------------------------------------------------------- 1 | /*********************************************************************************** 2 | 3 | Filename: usb_cdc_hooks.h 4 | 5 | Description: USB Virtual UART interface. 6 | 7 | ***********************************************************************************/ 8 | #ifndef USB_CDC_HOOKS_H 9 | #define USB_CDC_HOOKS_H 10 | 11 | #include "hal_types.h" 12 | 13 | typedef struct { 14 | uint32 dteRate; 15 | uint8 charFormat; 16 | uint8 parityType; 17 | uint8 dataBits; 18 | } CDC_LINE_CODING_STRUCTURE; 19 | 20 | extern CDC_LINE_CODING_STRUCTURE currentLineCoding; 21 | 22 | 23 | #endif 24 | -------------------------------------------------------------------------------- /Components/hal/target/CC2530USB/usb/class_cdc/usb_firmware_library_config.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zigbee-door/zigbee-zstack/967446d115ab04b04090ad3d119e4f1ba10c7b30/Components/hal/target/CC2530USB/usb/class_cdc/usb_firmware_library_config.c -------------------------------------------------------------------------------- /Components/hal/target/CC2530USB/usb/class_cdc/usb_firmware_library_config.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zigbee-door/zigbee-zstack/967446d115ab04b04090ad3d119e4f1ba10c7b30/Components/hal/target/CC2530USB/usb/class_cdc/usb_firmware_library_config.h -------------------------------------------------------------------------------- /Components/hal/target/CC2530USB/usb/class_cdc/usb_firmware_library_headers.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zigbee-door/zigbee-zstack/967446d115ab04b04090ad3d119e4f1ba10c7b30/Components/hal/target/CC2530USB/usb/class_cdc/usb_firmware_library_headers.h -------------------------------------------------------------------------------- /Components/hal/target/CC2530USB/usb/library/cc2531/usb_board_cfg.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zigbee-door/zigbee-zstack/967446d115ab04b04090ad3d119e4f1ba10c7b30/Components/hal/target/CC2530USB/usb/library/cc2531/usb_board_cfg.h -------------------------------------------------------------------------------- /Components/hal/target/CC2530USB/usb/library/cc2531/usb_interrupt.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zigbee-door/zigbee-zstack/967446d115ab04b04090ad3d119e4f1ba10c7b30/Components/hal/target/CC2530USB/usb/library/cc2531/usb_interrupt.c -------------------------------------------------------------------------------- /Components/hal/target/CC2530USB/usb/library/cc2531/usb_suspend.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zigbee-door/zigbee-zstack/967446d115ab04b04090ad3d119e4f1ba10c7b30/Components/hal/target/CC2530USB/usb/library/cc2531/usb_suspend.c -------------------------------------------------------------------------------- /Components/hal/target/CC2530USB/usb/library/usb_descriptor.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zigbee-door/zigbee-zstack/967446d115ab04b04090ad3d119e4f1ba10c7b30/Components/hal/target/CC2530USB/usb/library/usb_descriptor.h -------------------------------------------------------------------------------- /Components/hal/target/CC2530USB/usb/library/usb_descriptor_parser.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zigbee-door/zigbee-zstack/967446d115ab04b04090ad3d119e4f1ba10c7b30/Components/hal/target/CC2530USB/usb/library/usb_descriptor_parser.c -------------------------------------------------------------------------------- /Components/hal/target/CC2530USB/usb/library/usb_descriptor_parser.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zigbee-door/zigbee-zstack/967446d115ab04b04090ad3d119e4f1ba10c7b30/Components/hal/target/CC2530USB/usb/library/usb_descriptor_parser.h -------------------------------------------------------------------------------- /Components/hal/target/CC2530USB/usb/library/usb_framework.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zigbee-door/zigbee-zstack/967446d115ab04b04090ad3d119e4f1ba10c7b30/Components/hal/target/CC2530USB/usb/library/usb_framework.c -------------------------------------------------------------------------------- /Components/hal/target/CC2530USB/usb/library/usb_framework.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zigbee-door/zigbee-zstack/967446d115ab04b04090ad3d119e4f1ba10c7b30/Components/hal/target/CC2530USB/usb/library/usb_framework.h -------------------------------------------------------------------------------- /Components/hal/target/CC2530USB/usb/library/usb_framework_structs.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zigbee-door/zigbee-zstack/967446d115ab04b04090ad3d119e4f1ba10c7b30/Components/hal/target/CC2530USB/usb/library/usb_framework_structs.h -------------------------------------------------------------------------------- /Components/hal/target/CC2530USB/usb/library/usb_interrupt.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zigbee-door/zigbee-zstack/967446d115ab04b04090ad3d119e4f1ba10c7b30/Components/hal/target/CC2530USB/usb/library/usb_interrupt.h -------------------------------------------------------------------------------- /Components/hal/target/CC2530USB/usb/library/usb_reg.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zigbee-door/zigbee-zstack/967446d115ab04b04090ad3d119e4f1ba10c7b30/Components/hal/target/CC2530USB/usb/library/usb_reg.h -------------------------------------------------------------------------------- /Components/hal/target/CC2530USB/usb/library/usb_standard_requests.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zigbee-door/zigbee-zstack/967446d115ab04b04090ad3d119e4f1ba10c7b30/Components/hal/target/CC2530USB/usb/library/usb_standard_requests.c -------------------------------------------------------------------------------- /Components/hal/target/CC2530USB/usb/library/usb_standard_requests.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zigbee-door/zigbee-zstack/967446d115ab04b04090ad3d119e4f1ba10c7b30/Components/hal/target/CC2530USB/usb/library/usb_standard_requests.h -------------------------------------------------------------------------------- /Components/hal/target/CC2530USB/usb/library/usb_suspend.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zigbee-door/zigbee-zstack/967446d115ab04b04090ad3d119e4f1ba10c7b30/Components/hal/target/CC2530USB/usb/library/usb_suspend.h -------------------------------------------------------------------------------- /Components/hal/target/CC2530ZNP/_hal_uart_dma.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zigbee-door/zigbee-zstack/967446d115ab04b04090ad3d119e4f1ba10c7b30/Components/hal/target/CC2530ZNP/_hal_uart_dma.c -------------------------------------------------------------------------------- /Components/hal/target/CC2530ZNP/hal_adc.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zigbee-door/zigbee-zstack/967446d115ab04b04090ad3d119e4f1ba10c7b30/Components/hal/target/CC2530ZNP/hal_adc.c -------------------------------------------------------------------------------- /Components/hal/target/CC2530ZNP/hal_aes.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zigbee-door/zigbee-zstack/967446d115ab04b04090ad3d119e4f1ba10c7b30/Components/hal/target/CC2530ZNP/hal_aes.h -------------------------------------------------------------------------------- /Components/hal/target/CC2530ZNP/hal_board_cfg.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zigbee-door/zigbee-zstack/967446d115ab04b04090ad3d119e4f1ba10c7b30/Components/hal/target/CC2530ZNP/hal_board_cfg.h -------------------------------------------------------------------------------- /Components/hal/target/CC2530ZNP/hal_dma.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zigbee-door/zigbee-zstack/967446d115ab04b04090ad3d119e4f1ba10c7b30/Components/hal/target/CC2530ZNP/hal_dma.c -------------------------------------------------------------------------------- /Components/hal/target/CC2530ZNP/hal_dma.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zigbee-door/zigbee-zstack/967446d115ab04b04090ad3d119e4f1ba10c7b30/Components/hal/target/CC2530ZNP/hal_dma.h -------------------------------------------------------------------------------- /Components/hal/target/CC2530ZNP/hal_flash.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zigbee-door/zigbee-zstack/967446d115ab04b04090ad3d119e4f1ba10c7b30/Components/hal/target/CC2530ZNP/hal_flash.c -------------------------------------------------------------------------------- /Components/hal/target/CC2530ZNP/hal_key.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zigbee-door/zigbee-zstack/967446d115ab04b04090ad3d119e4f1ba10c7b30/Components/hal/target/CC2530ZNP/hal_key.c -------------------------------------------------------------------------------- /Components/hal/target/CC2530ZNP/hal_lcd.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zigbee-door/zigbee-zstack/967446d115ab04b04090ad3d119e4f1ba10c7b30/Components/hal/target/CC2530ZNP/hal_lcd.c -------------------------------------------------------------------------------- /Components/hal/target/CC2530ZNP/hal_led.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zigbee-door/zigbee-zstack/967446d115ab04b04090ad3d119e4f1ba10c7b30/Components/hal/target/CC2530ZNP/hal_led.c -------------------------------------------------------------------------------- /Components/hal/target/CC2530ZNP/hal_mac_cfg.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zigbee-door/zigbee-zstack/967446d115ab04b04090ad3d119e4f1ba10c7b30/Components/hal/target/CC2530ZNP/hal_mac_cfg.h -------------------------------------------------------------------------------- /Components/hal/target/CC2530ZNP/hal_mcu.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zigbee-door/zigbee-zstack/967446d115ab04b04090ad3d119e4f1ba10c7b30/Components/hal/target/CC2530ZNP/hal_mcu.h -------------------------------------------------------------------------------- /Components/hal/target/CC2530ZNP/hal_oad.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zigbee-door/zigbee-zstack/967446d115ab04b04090ad3d119e4f1ba10c7b30/Components/hal/target/CC2530ZNP/hal_oad.c -------------------------------------------------------------------------------- /Components/hal/target/CC2530ZNP/hal_oad.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zigbee-door/zigbee-zstack/967446d115ab04b04090ad3d119e4f1ba10c7b30/Components/hal/target/CC2530ZNP/hal_oad.h -------------------------------------------------------------------------------- /Components/hal/target/CC2530ZNP/hal_sleep.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zigbee-door/zigbee-zstack/967446d115ab04b04090ad3d119e4f1ba10c7b30/Components/hal/target/CC2530ZNP/hal_sleep.c -------------------------------------------------------------------------------- /Components/hal/target/CC2530ZNP/hal_spi.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zigbee-door/zigbee-zstack/967446d115ab04b04090ad3d119e4f1ba10c7b30/Components/hal/target/CC2530ZNP/hal_spi.c -------------------------------------------------------------------------------- /Components/hal/target/CC2530ZNP/hal_spi.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zigbee-door/zigbee-zstack/967446d115ab04b04090ad3d119e4f1ba10c7b30/Components/hal/target/CC2530ZNP/hal_spi.h -------------------------------------------------------------------------------- /Components/hal/target/CC2530ZNP/hal_startup.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zigbee-door/zigbee-zstack/967446d115ab04b04090ad3d119e4f1ba10c7b30/Components/hal/target/CC2530ZNP/hal_startup.c -------------------------------------------------------------------------------- /Components/hal/target/CC2530ZNP/hal_timer.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zigbee-door/zigbee-zstack/967446d115ab04b04090ad3d119e4f1ba10c7b30/Components/hal/target/CC2530ZNP/hal_timer.c -------------------------------------------------------------------------------- /Components/hal/target/CC2530ZNP/hal_types.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zigbee-door/zigbee-zstack/967446d115ab04b04090ad3d119e4f1ba10c7b30/Components/hal/target/CC2530ZNP/hal_types.h -------------------------------------------------------------------------------- /Components/hal/target/CC2530ZNP/hal_uart.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zigbee-door/zigbee-zstack/967446d115ab04b04090ad3d119e4f1ba10c7b30/Components/hal/target/CC2530ZNP/hal_uart.c -------------------------------------------------------------------------------- /Components/mac/high_level/mac_cfg.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zigbee-door/zigbee-zstack/967446d115ab04b04090ad3d119e4f1ba10c7b30/Components/mac/high_level/mac_cfg.c -------------------------------------------------------------------------------- /Components/mac/high_level/mac_high_level.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zigbee-door/zigbee-zstack/967446d115ab04b04090ad3d119e4f1ba10c7b30/Components/mac/high_level/mac_high_level.h -------------------------------------------------------------------------------- /Components/mac/high_level/mac_main.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zigbee-door/zigbee-zstack/967446d115ab04b04090ad3d119e4f1ba10c7b30/Components/mac/high_level/mac_main.h -------------------------------------------------------------------------------- /Components/mac/high_level/mac_pib.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zigbee-door/zigbee-zstack/967446d115ab04b04090ad3d119e4f1ba10c7b30/Components/mac/high_level/mac_pib.h -------------------------------------------------------------------------------- /Components/mac/high_level/mac_spec.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zigbee-door/zigbee-zstack/967446d115ab04b04090ad3d119e4f1ba10c7b30/Components/mac/high_level/mac_spec.h -------------------------------------------------------------------------------- /Components/mac/include/mac_api.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zigbee-door/zigbee-zstack/967446d115ab04b04090ad3d119e4f1ba10c7b30/Components/mac/include/mac_api.h -------------------------------------------------------------------------------- /Components/mac/low_level/srf04/mac_assert.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zigbee-door/zigbee-zstack/967446d115ab04b04090ad3d119e4f1ba10c7b30/Components/mac/low_level/srf04/mac_assert.h -------------------------------------------------------------------------------- /Components/mac/low_level/srf04/mac_autopend.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zigbee-door/zigbee-zstack/967446d115ab04b04090ad3d119e4f1ba10c7b30/Components/mac/low_level/srf04/mac_autopend.c -------------------------------------------------------------------------------- /Components/mac/low_level/srf04/mac_autopend.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zigbee-door/zigbee-zstack/967446d115ab04b04090ad3d119e4f1ba10c7b30/Components/mac/low_level/srf04/mac_autopend.h -------------------------------------------------------------------------------- /Components/mac/low_level/srf04/mac_backoff_timer.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zigbee-door/zigbee-zstack/967446d115ab04b04090ad3d119e4f1ba10c7b30/Components/mac/low_level/srf04/mac_backoff_timer.c -------------------------------------------------------------------------------- /Components/mac/low_level/srf04/mac_backoff_timer.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zigbee-door/zigbee-zstack/967446d115ab04b04090ad3d119e4f1ba10c7b30/Components/mac/low_level/srf04/mac_backoff_timer.h -------------------------------------------------------------------------------- /Components/mac/low_level/srf04/mac_low_level.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zigbee-door/zigbee-zstack/967446d115ab04b04090ad3d119e4f1ba10c7b30/Components/mac/low_level/srf04/mac_low_level.c -------------------------------------------------------------------------------- /Components/mac/low_level/srf04/mac_low_level.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zigbee-door/zigbee-zstack/967446d115ab04b04090ad3d119e4f1ba10c7b30/Components/mac/low_level/srf04/mac_low_level.h -------------------------------------------------------------------------------- /Components/mac/low_level/srf04/mac_radio.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zigbee-door/zigbee-zstack/967446d115ab04b04090ad3d119e4f1ba10c7b30/Components/mac/low_level/srf04/mac_radio.c -------------------------------------------------------------------------------- /Components/mac/low_level/srf04/mac_radio.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zigbee-door/zigbee-zstack/967446d115ab04b04090ad3d119e4f1ba10c7b30/Components/mac/low_level/srf04/mac_radio.h -------------------------------------------------------------------------------- /Components/mac/low_level/srf04/mac_rx.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zigbee-door/zigbee-zstack/967446d115ab04b04090ad3d119e4f1ba10c7b30/Components/mac/low_level/srf04/mac_rx.c -------------------------------------------------------------------------------- /Components/mac/low_level/srf04/mac_rx.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zigbee-door/zigbee-zstack/967446d115ab04b04090ad3d119e4f1ba10c7b30/Components/mac/low_level/srf04/mac_rx.h -------------------------------------------------------------------------------- /Components/mac/low_level/srf04/mac_rx_onoff.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zigbee-door/zigbee-zstack/967446d115ab04b04090ad3d119e4f1ba10c7b30/Components/mac/low_level/srf04/mac_rx_onoff.c -------------------------------------------------------------------------------- /Components/mac/low_level/srf04/mac_rx_onoff.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zigbee-door/zigbee-zstack/967446d115ab04b04090ad3d119e4f1ba10c7b30/Components/mac/low_level/srf04/mac_rx_onoff.h -------------------------------------------------------------------------------- /Components/mac/low_level/srf04/mac_sleep.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zigbee-door/zigbee-zstack/967446d115ab04b04090ad3d119e4f1ba10c7b30/Components/mac/low_level/srf04/mac_sleep.c -------------------------------------------------------------------------------- /Components/mac/low_level/srf04/mac_sleep.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zigbee-door/zigbee-zstack/967446d115ab04b04090ad3d119e4f1ba10c7b30/Components/mac/low_level/srf04/mac_sleep.h -------------------------------------------------------------------------------- /Components/mac/low_level/srf04/mac_tx.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zigbee-door/zigbee-zstack/967446d115ab04b04090ad3d119e4f1ba10c7b30/Components/mac/low_level/srf04/mac_tx.c -------------------------------------------------------------------------------- /Components/mac/low_level/srf04/mac_tx.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zigbee-door/zigbee-zstack/967446d115ab04b04090ad3d119e4f1ba10c7b30/Components/mac/low_level/srf04/mac_tx.h -------------------------------------------------------------------------------- /Components/mac/low_level/srf04/single_chip/mac_csp_tx.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zigbee-door/zigbee-zstack/967446d115ab04b04090ad3d119e4f1ba10c7b30/Components/mac/low_level/srf04/single_chip/mac_csp_tx.c -------------------------------------------------------------------------------- /Components/mac/low_level/srf04/single_chip/mac_csp_tx.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zigbee-door/zigbee-zstack/967446d115ab04b04090ad3d119e4f1ba10c7b30/Components/mac/low_level/srf04/single_chip/mac_csp_tx.h -------------------------------------------------------------------------------- /Components/mac/low_level/srf04/single_chip/mac_mcu.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zigbee-door/zigbee-zstack/967446d115ab04b04090ad3d119e4f1ba10c7b30/Components/mac/low_level/srf04/single_chip/mac_mcu.c -------------------------------------------------------------------------------- /Components/mac/low_level/srf04/single_chip/mac_mcu.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zigbee-door/zigbee-zstack/967446d115ab04b04090ad3d119e4f1ba10c7b30/Components/mac/low_level/srf04/single_chip/mac_mcu.h -------------------------------------------------------------------------------- /Components/mac/low_level/srf04/single_chip/mac_mem.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zigbee-door/zigbee-zstack/967446d115ab04b04090ad3d119e4f1ba10c7b30/Components/mac/low_level/srf04/single_chip/mac_mem.c -------------------------------------------------------------------------------- /Components/mac/low_level/srf04/single_chip/mac_mem.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zigbee-door/zigbee-zstack/967446d115ab04b04090ad3d119e4f1ba10c7b30/Components/mac/low_level/srf04/single_chip/mac_mem.h -------------------------------------------------------------------------------- /Components/mac/low_level/srf04/single_chip/mac_radio_defs.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zigbee-door/zigbee-zstack/967446d115ab04b04090ad3d119e4f1ba10c7b30/Components/mac/low_level/srf04/single_chip/mac_radio_defs.c -------------------------------------------------------------------------------- /Components/mac/low_level/srf04/single_chip/mac_radio_defs.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zigbee-door/zigbee-zstack/967446d115ab04b04090ad3d119e4f1ba10c7b30/Components/mac/low_level/srf04/single_chip/mac_radio_defs.h -------------------------------------------------------------------------------- /Components/mac/low_level/srf04/single_chip/mac_rffrontend.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zigbee-door/zigbee-zstack/967446d115ab04b04090ad3d119e4f1ba10c7b30/Components/mac/low_level/srf04/single_chip/mac_rffrontend.c -------------------------------------------------------------------------------- /Components/mt/DebugTrace.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zigbee-door/zigbee-zstack/967446d115ab04b04090ad3d119e4f1ba10c7b30/Components/mt/DebugTrace.c -------------------------------------------------------------------------------- /Components/mt/DebugTrace.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zigbee-door/zigbee-zstack/967446d115ab04b04090ad3d119e4f1ba10c7b30/Components/mt/DebugTrace.h -------------------------------------------------------------------------------- /Components/mt/MT.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zigbee-door/zigbee-zstack/967446d115ab04b04090ad3d119e4f1ba10c7b30/Components/mt/MT.c -------------------------------------------------------------------------------- /Components/mt/MT.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zigbee-door/zigbee-zstack/967446d115ab04b04090ad3d119e4f1ba10c7b30/Components/mt/MT.h -------------------------------------------------------------------------------- /Components/mt/MT_AF.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zigbee-door/zigbee-zstack/967446d115ab04b04090ad3d119e4f1ba10c7b30/Components/mt/MT_AF.c -------------------------------------------------------------------------------- /Components/mt/MT_AF.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zigbee-door/zigbee-zstack/967446d115ab04b04090ad3d119e4f1ba10c7b30/Components/mt/MT_AF.h -------------------------------------------------------------------------------- /Components/mt/MT_APP.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zigbee-door/zigbee-zstack/967446d115ab04b04090ad3d119e4f1ba10c7b30/Components/mt/MT_APP.c -------------------------------------------------------------------------------- /Components/mt/MT_APP.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zigbee-door/zigbee-zstack/967446d115ab04b04090ad3d119e4f1ba10c7b30/Components/mt/MT_APP.h -------------------------------------------------------------------------------- /Components/mt/MT_DEBUG.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zigbee-door/zigbee-zstack/967446d115ab04b04090ad3d119e4f1ba10c7b30/Components/mt/MT_DEBUG.c -------------------------------------------------------------------------------- /Components/mt/MT_DEBUG.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zigbee-door/zigbee-zstack/967446d115ab04b04090ad3d119e4f1ba10c7b30/Components/mt/MT_DEBUG.h -------------------------------------------------------------------------------- /Components/mt/MT_MAC.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zigbee-door/zigbee-zstack/967446d115ab04b04090ad3d119e4f1ba10c7b30/Components/mt/MT_MAC.c -------------------------------------------------------------------------------- /Components/mt/MT_MAC.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zigbee-door/zigbee-zstack/967446d115ab04b04090ad3d119e4f1ba10c7b30/Components/mt/MT_MAC.h -------------------------------------------------------------------------------- /Components/mt/MT_NWK.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zigbee-door/zigbee-zstack/967446d115ab04b04090ad3d119e4f1ba10c7b30/Components/mt/MT_NWK.c -------------------------------------------------------------------------------- /Components/mt/MT_NWK.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zigbee-door/zigbee-zstack/967446d115ab04b04090ad3d119e4f1ba10c7b30/Components/mt/MT_NWK.h -------------------------------------------------------------------------------- /Components/mt/MT_RPC.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zigbee-door/zigbee-zstack/967446d115ab04b04090ad3d119e4f1ba10c7b30/Components/mt/MT_RPC.h -------------------------------------------------------------------------------- /Components/mt/MT_SAPI.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zigbee-door/zigbee-zstack/967446d115ab04b04090ad3d119e4f1ba10c7b30/Components/mt/MT_SAPI.c -------------------------------------------------------------------------------- /Components/mt/MT_SAPI.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zigbee-door/zigbee-zstack/967446d115ab04b04090ad3d119e4f1ba10c7b30/Components/mt/MT_SAPI.h -------------------------------------------------------------------------------- /Components/mt/MT_SYS.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zigbee-door/zigbee-zstack/967446d115ab04b04090ad3d119e4f1ba10c7b30/Components/mt/MT_SYS.c -------------------------------------------------------------------------------- /Components/mt/MT_SYS.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zigbee-door/zigbee-zstack/967446d115ab04b04090ad3d119e4f1ba10c7b30/Components/mt/MT_SYS.h -------------------------------------------------------------------------------- /Components/mt/MT_TASK.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zigbee-door/zigbee-zstack/967446d115ab04b04090ad3d119e4f1ba10c7b30/Components/mt/MT_TASK.c -------------------------------------------------------------------------------- /Components/mt/MT_TASK.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zigbee-door/zigbee-zstack/967446d115ab04b04090ad3d119e4f1ba10c7b30/Components/mt/MT_TASK.h -------------------------------------------------------------------------------- /Components/mt/MT_UART.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zigbee-door/zigbee-zstack/967446d115ab04b04090ad3d119e4f1ba10c7b30/Components/mt/MT_UART.c -------------------------------------------------------------------------------- /Components/mt/MT_UART.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zigbee-door/zigbee-zstack/967446d115ab04b04090ad3d119e4f1ba10c7b30/Components/mt/MT_UART.h -------------------------------------------------------------------------------- /Components/mt/MT_UTIL.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zigbee-door/zigbee-zstack/967446d115ab04b04090ad3d119e4f1ba10c7b30/Components/mt/MT_UTIL.c -------------------------------------------------------------------------------- /Components/mt/MT_UTIL.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zigbee-door/zigbee-zstack/967446d115ab04b04090ad3d119e4f1ba10c7b30/Components/mt/MT_UTIL.h -------------------------------------------------------------------------------- /Components/mt/MT_VERSION.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zigbee-door/zigbee-zstack/967446d115ab04b04090ad3d119e4f1ba10c7b30/Components/mt/MT_VERSION.c -------------------------------------------------------------------------------- /Components/mt/MT_VERSION.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zigbee-door/zigbee-zstack/967446d115ab04b04090ad3d119e4f1ba10c7b30/Components/mt/MT_VERSION.h -------------------------------------------------------------------------------- /Components/mt/MT_ZDO.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zigbee-door/zigbee-zstack/967446d115ab04b04090ad3d119e4f1ba10c7b30/Components/mt/MT_ZDO.c -------------------------------------------------------------------------------- /Components/mt/MT_ZDO.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zigbee-door/zigbee-zstack/967446d115ab04b04090ad3d119e4f1ba10c7b30/Components/mt/MT_ZDO.h -------------------------------------------------------------------------------- /Components/osal/common/OSAL.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zigbee-door/zigbee-zstack/967446d115ab04b04090ad3d119e4f1ba10c7b30/Components/osal/common/OSAL.c -------------------------------------------------------------------------------- /Components/osal/common/OSAL_Clock.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zigbee-door/zigbee-zstack/967446d115ab04b04090ad3d119e4f1ba10c7b30/Components/osal/common/OSAL_Clock.c -------------------------------------------------------------------------------- /Components/osal/common/OSAL_Memory.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zigbee-door/zigbee-zstack/967446d115ab04b04090ad3d119e4f1ba10c7b30/Components/osal/common/OSAL_Memory.c -------------------------------------------------------------------------------- /Components/osal/common/OSAL_PwrMgr.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zigbee-door/zigbee-zstack/967446d115ab04b04090ad3d119e4f1ba10c7b30/Components/osal/common/OSAL_PwrMgr.c -------------------------------------------------------------------------------- /Components/osal/common/OSAL_Timers.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zigbee-door/zigbee-zstack/967446d115ab04b04090ad3d119e4f1ba10c7b30/Components/osal/common/OSAL_Timers.c -------------------------------------------------------------------------------- /Components/osal/include/OSAL.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zigbee-door/zigbee-zstack/967446d115ab04b04090ad3d119e4f1ba10c7b30/Components/osal/include/OSAL.h -------------------------------------------------------------------------------- /Components/osal/include/OSAL_Clock.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zigbee-door/zigbee-zstack/967446d115ab04b04090ad3d119e4f1ba10c7b30/Components/osal/include/OSAL_Clock.h -------------------------------------------------------------------------------- /Components/osal/include/OSAL_Memory.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zigbee-door/zigbee-zstack/967446d115ab04b04090ad3d119e4f1ba10c7b30/Components/osal/include/OSAL_Memory.h -------------------------------------------------------------------------------- /Components/osal/include/OSAL_Nv.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zigbee-door/zigbee-zstack/967446d115ab04b04090ad3d119e4f1ba10c7b30/Components/osal/include/OSAL_Nv.h -------------------------------------------------------------------------------- /Components/osal/include/OSAL_PwrMgr.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zigbee-door/zigbee-zstack/967446d115ab04b04090ad3d119e4f1ba10c7b30/Components/osal/include/OSAL_PwrMgr.h -------------------------------------------------------------------------------- /Components/osal/include/OSAL_Tasks.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zigbee-door/zigbee-zstack/967446d115ab04b04090ad3d119e4f1ba10c7b30/Components/osal/include/OSAL_Tasks.h -------------------------------------------------------------------------------- /Components/osal/include/OSAL_Timers.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zigbee-door/zigbee-zstack/967446d115ab04b04090ad3d119e4f1ba10c7b30/Components/osal/include/OSAL_Timers.h -------------------------------------------------------------------------------- /Components/osal/include/ZComDef.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zigbee-door/zigbee-zstack/967446d115ab04b04090ad3d119e4f1ba10c7b30/Components/osal/include/ZComDef.h -------------------------------------------------------------------------------- /Components/osal/include/comdef.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zigbee-door/zigbee-zstack/967446d115ab04b04090ad3d119e4f1ba10c7b30/Components/osal/include/comdef.h -------------------------------------------------------------------------------- /Components/osal/mcu/cc2530/OSAL_Nv.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zigbee-door/zigbee-zstack/967446d115ab04b04090ad3d119e4f1ba10c7b30/Components/osal/mcu/cc2530/OSAL_Nv.c -------------------------------------------------------------------------------- /Components/services/saddr/saddr.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zigbee-door/zigbee-zstack/967446d115ab04b04090ad3d119e4f1ba10c7b30/Components/services/saddr/saddr.c -------------------------------------------------------------------------------- /Components/services/saddr/saddr.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zigbee-door/zigbee-zstack/967446d115ab04b04090ad3d119e4f1ba10c7b30/Components/services/saddr/saddr.h -------------------------------------------------------------------------------- /Components/services/sdata/sdata.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zigbee-door/zigbee-zstack/967446d115ab04b04090ad3d119e4f1ba10c7b30/Components/services/sdata/sdata.h -------------------------------------------------------------------------------- /Components/stack/af/AF.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zigbee-door/zigbee-zstack/967446d115ab04b04090ad3d119e4f1ba10c7b30/Components/stack/af/AF.c -------------------------------------------------------------------------------- /Components/stack/af/AF.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zigbee-door/zigbee-zstack/967446d115ab04b04090ad3d119e4f1ba10c7b30/Components/stack/af/AF.h -------------------------------------------------------------------------------- /Components/stack/nwk/APS.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zigbee-door/zigbee-zstack/967446d115ab04b04090ad3d119e4f1ba10c7b30/Components/stack/nwk/APS.h -------------------------------------------------------------------------------- /Components/stack/nwk/APSMEDE.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zigbee-door/zigbee-zstack/967446d115ab04b04090ad3d119e4f1ba10c7b30/Components/stack/nwk/APSMEDE.h -------------------------------------------------------------------------------- /Components/stack/nwk/AddrMgr.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zigbee-door/zigbee-zstack/967446d115ab04b04090ad3d119e4f1ba10c7b30/Components/stack/nwk/AddrMgr.h -------------------------------------------------------------------------------- /Components/stack/nwk/AssocList.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zigbee-door/zigbee-zstack/967446d115ab04b04090ad3d119e4f1ba10c7b30/Components/stack/nwk/AssocList.h -------------------------------------------------------------------------------- /Components/stack/nwk/BindingTable.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zigbee-door/zigbee-zstack/967446d115ab04b04090ad3d119e4f1ba10c7b30/Components/stack/nwk/BindingTable.h -------------------------------------------------------------------------------- /Components/stack/nwk/NLMEDE.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zigbee-door/zigbee-zstack/967446d115ab04b04090ad3d119e4f1ba10c7b30/Components/stack/nwk/NLMEDE.h -------------------------------------------------------------------------------- /Components/stack/nwk/aps_frag.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zigbee-door/zigbee-zstack/967446d115ab04b04090ad3d119e4f1ba10c7b30/Components/stack/nwk/aps_frag.h -------------------------------------------------------------------------------- /Components/stack/nwk/aps_groups.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zigbee-door/zigbee-zstack/967446d115ab04b04090ad3d119e4f1ba10c7b30/Components/stack/nwk/aps_groups.h -------------------------------------------------------------------------------- /Components/stack/nwk/aps_util.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zigbee-door/zigbee-zstack/967446d115ab04b04090ad3d119e4f1ba10c7b30/Components/stack/nwk/aps_util.h -------------------------------------------------------------------------------- /Components/stack/nwk/nwk.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zigbee-door/zigbee-zstack/967446d115ab04b04090ad3d119e4f1ba10c7b30/Components/stack/nwk/nwk.h -------------------------------------------------------------------------------- /Components/stack/nwk/nwk_bufs.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zigbee-door/zigbee-zstack/967446d115ab04b04090ad3d119e4f1ba10c7b30/Components/stack/nwk/nwk_bufs.h -------------------------------------------------------------------------------- /Components/stack/nwk/nwk_globals.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zigbee-door/zigbee-zstack/967446d115ab04b04090ad3d119e4f1ba10c7b30/Components/stack/nwk/nwk_globals.c -------------------------------------------------------------------------------- /Components/stack/nwk/nwk_globals.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zigbee-door/zigbee-zstack/967446d115ab04b04090ad3d119e4f1ba10c7b30/Components/stack/nwk/nwk_globals.h -------------------------------------------------------------------------------- /Components/stack/nwk/nwk_util.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zigbee-door/zigbee-zstack/967446d115ab04b04090ad3d119e4f1ba10c7b30/Components/stack/nwk/nwk_util.h -------------------------------------------------------------------------------- /Components/stack/nwk/reflecttrack.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zigbee-door/zigbee-zstack/967446d115ab04b04090ad3d119e4f1ba10c7b30/Components/stack/nwk/reflecttrack.h -------------------------------------------------------------------------------- /Components/stack/nwk/rtg.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zigbee-door/zigbee-zstack/967446d115ab04b04090ad3d119e4f1ba10c7b30/Components/stack/nwk/rtg.h -------------------------------------------------------------------------------- /Components/stack/nwk/stub_aps.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zigbee-door/zigbee-zstack/967446d115ab04b04090ad3d119e4f1ba10c7b30/Components/stack/nwk/stub_aps.c -------------------------------------------------------------------------------- /Components/stack/nwk/stub_aps.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zigbee-door/zigbee-zstack/967446d115ab04b04090ad3d119e4f1ba10c7b30/Components/stack/nwk/stub_aps.h -------------------------------------------------------------------------------- /Components/stack/sapi/sapi.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zigbee-door/zigbee-zstack/967446d115ab04b04090ad3d119e4f1ba10c7b30/Components/stack/sapi/sapi.c -------------------------------------------------------------------------------- /Components/stack/sapi/sapi.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zigbee-door/zigbee-zstack/967446d115ab04b04090ad3d119e4f1ba10c7b30/Components/stack/sapi/sapi.h -------------------------------------------------------------------------------- /Components/stack/sec/eccapi.h: -------------------------------------------------------------------------------- 1 | /** 2 | Copyright (c) Certicom Corp. 1996-2008. All rights reserved. 3 | 4 | This software contains trade secrets, confidential information, and 5 | other intellectual property of Certicom Corp. and its licensors. 6 | This software cannot be used, reproduced, or distributed in whole or 7 | in part by any means without the explicit prior consent of Certicom 8 | Corp. 9 | Such consent must arise from a separate license agreement from 10 | Certicom or its licensees, as appropriate. This software implements 11 | Canadian, U.S., and other nations' patents, both registered and 12 | pending (see the readme file included in this distribution). 13 | 14 | Warning: U.S. Federal and state laws and international treaties 15 | provide severe civil and criminal penalties for the unauthorized 16 | reproduction in any form of these copyrighted materials. 17 | Criminal copyright infringement constitutes a felony and is 18 | punishable by a $250,000 fine and up to 5 years in prison. 19 | 20 | Certicom, Certicom Security Architecture, Certicom CodeSign, Security 21 | Builder, Security Builder BSP, Security Builder API, Security 22 | Builder Crypto, Security Builder SSL, Security Builder PKI, Security 23 | Builder NSE and Security Builder GSE are trademarks or registered 24 | trademarks of Certicom Corp. 25 | 26 | All other trademarks or registered trademarks listed herein are 27 | property of their respective owners. 28 | 29 | Certicom Corp. has intellectual property rights relating to 30 | technology embodied in this product. 31 | In particular, and without limitation, these intellectual property 32 | rights may include one or more of the U.S. and non-U.S. patents listed 33 | at www.certicom.com/patents 34 | and one or more additional patents or pending patent applications in 35 | the U.S. and in other countries. 36 | 37 | Information subject to change without notice. 38 | 39 | 40 | 41 | Certicom Corp. Technical Support 42 | Email: support@certicom.com 43 | Vox: 1-800-511-8011 44 | Fax: 1-800-474-3877 45 | */ 46 | /***************************************************************************** 47 | * 48 | * eccapi.h 49 | * 50 | *****************************************************************************/ 51 | 52 | #ifndef ECCAPI_H 53 | #define ECCAPI_H 54 | 55 | #ifdef __cplusplus 56 | extern "C" { 57 | #endif 58 | 59 | #define ZSE_MAJOR 1 60 | #define ZSE_MINOR 0 61 | #define ZSE_PATCH 1 62 | #define ZSE_BUILD 6 63 | #define ZSE_VERSION ((unsigned long)(ZSE_MAJOR & 0x0F)<< 28 | (unsigned long)(ZSE_MINOR & 0x0F) << 24 | (unsigned long)(ZSE_PATCH & 0x0FFF) << 12 | (unsigned long)(ZSE_BUILD & 0x0FFF)) 64 | 65 | 66 | #define SECT163K1_COMPRESSED_PUBLIC_KEY_SIZE (22) 67 | #define SECT163K1_UNCOMPRESSED_PUBLIC_KEY_SIZE (43) 68 | #define SECT163K1_PRIVATE_KEY_SIZE (21) 69 | #define SECT163K1_CERTIFICATE_SIZE (48) 70 | #define SECT163K1_SHARED_SECRET_SIZE (21) 71 | #define SECT163K1_POINT_ORDER_SIZE (21) 72 | #define AES_MMO_HASH_SIZE (16) 73 | 74 | /****************************************************************************** 75 | * Return Codes 76 | *****************************************************************************/ 77 | 78 | #define MCE_SUCCESS 0x00 79 | #define MCE_ERR_FAIL_VERIFY 0x01 80 | #define MCE_ERR_NULL_PRIVATE_KEY 0x02 81 | #define MCE_ERR_NULL_PUBLIC_KEY 0x03 82 | #define MCE_ERR_NULL_INPUT_BUF 0x04 83 | #define MCE_ERR_NULL_OUTPUT_BUF 0x05 84 | #define MCE_ERR_NULL_FUNC_PTR 0x06 85 | #define MCE_ERR_NULL_EPHEM_PRI_KEY 0x07 86 | #define MCE_ERR_NULL_EPHEM_PUB_KEY 0x08 87 | #define MCE_ERR_BAD_INPUT 0x09 88 | 89 | /** This is a prototype of a user-provided callback function that generates 90 | * random seeds of the specified length. 91 | 92 | This function should copy sz bytes of random data into 93 | buffer. 94 | 95 | @param[out] buffer This is an unsigned char array of size at least 96 | sz to hold the random data. 97 | @param[in] sz The number of bytes of random data to compute and store. 98 | 99 | @retval MCE_SUCCESS Indicates successful completion. 100 | */ 101 | 102 | typedef int GetRandomDataFunc(unsigned char *buffer, unsigned long sz); 103 | 104 | /** This is a prototype of a user-provided callback function that computes an 105 | * AES MMO message digest of the data of given size, sz. 106 | * 107 | This function should compute the hash of the data parameter of size 108 | sz, and store the result in the digest buffer parameter. 109 | 110 | @param[out] digest This is an unsigned char buffer to hold the message digest. 111 | The length of the digest must be AES_MMO_HASH_SIZE bytes. 112 | @param[in] sz The size in bytes of the message to be hashed. 113 | @param[in] data This is an unsigned char buffer of data to be hashed. 114 | 115 | @retval MCE_SUCCESS Indicates successful completion. 116 | */ 117 | typedef int HashFunc(unsigned char *digest, unsigned long sz, unsigned char *data); 118 | 119 | 120 | /** This is a prototype of a user-provided callback function to process information 121 | during a long computation inside the library. 122 | 123 | @retval - This user-provided function should return MCE_SUCCESS to indicate 124 | successful completion. 125 | */ 126 | 127 | 128 | typedef int YieldFunc(void); 129 | 130 | 131 | /** 132 | 133 | This is a sample implementation of the HashFunc callback used by the 134 | Security Builder MCE toolkit. Please note that this is not an optimized 135 | implementation and is provided for testing purposes. 136 | 137 | This function computes the AES MMO digest of the data parameter of 138 | length sz, and stores the result in digest. 139 | 140 | @param[out] digest This is an unsigned char buffer to hold the message digest. 141 | The length of the digest must be AES_MMO_HASH_SIZE bytes. 142 | @param[in] sz The size in bytes of the message to be hashed. 143 | @param[in] data This is an unsigned char buffer of data to be hashed. 144 | 145 | @retval MCE_ERR_NULL_OUTPUT_BUF digest is NULL 146 | @retval MCE_ERR_NULL_INPUT_BUF data is NULL 147 | @retval MCE_SUCCESS indicates successful completion. 148 | 149 | */ 150 | int aesMmoHash(unsigned char *digest, unsigned long sz, unsigned char *data); 151 | 152 | /** 153 | 154 | Creates an ECDSA signature of a message digest. 155 | The outputs are the r and s components of the signature. 156 | 157 | @param[in] privateKey The private key. This is an unsigned char buffer of size 158 | SECT163K1_PRIVATE_KEY_SIZE. 159 | @param[in] msgDigest The hash of the message to be signed. This is an unsigned 160 | char buffer of size AES_MMO_HASH_SIZE. 161 | @param[in] GetRandomData Pointer to a function to get random data for 162 | generating ephemeral keys. 163 | @param[in] yieldLevel The yield level determines how often the user defined yield 164 | function will be called. This is a number from 0 to 10. 165 | 0 will never yield. 166 | 1 will yield the most often. 167 | 10 will yield the least often. 168 | @param[in] YieldFunc Pointer to a function to allow user defined yielding. 169 | @param[out] r The r component of the signature. This is an unsigned char buffer 170 | of size SECT163K1_POINT_ORDER_SIZE. 171 | @param[out] s The s component of the signature. This is an unsigned char buffer 172 | of size SECT163K1_POINT_ORDER_SIZE. 173 | 174 | @retval MCE_ERR_NULL_PRIVATE_KEY privateKey is NULL. 175 | @retval MCE_ERR_NULL_OUTPUT_BUF msgDigest, r or 176 | s are NULL. 177 | @retval MCE_ERR_NULL_FUNC_PTR GetRandomData is NULL or 178 | YieldFunc is NULL and 179 | YieldLevel is not 0. 180 | @retval MCE_ERR_BAD_INPUT YieldLevel is greater than 10. 181 | @retval MCE_SUCCESS Success. 182 | */ 183 | 184 | int ZSE_ECDSASign(unsigned char *privateKey, 185 | unsigned char *msgDigest, 186 | GetRandomDataFunc *GetRandomData, 187 | unsigned char *r, 188 | unsigned char *s, 189 | YieldFunc *yield, 190 | unsigned long yieldLevel ); 191 | 192 | 193 | 194 | /** 195 | 196 | Verifies an ECDSA signature created using a private signing key by using 197 | the associated public key, the digest and the signature components. 198 | 199 | @param[in] publicKey The public key. This is an unsigned char buffer of size 200 | SECT163K1_COMPRESSED_PUBLIC_KEY_SIZE. 201 | @param[in] msgDigest The hash of the message to be verified. This is an 202 | unsigned char buffer of size AES_MMO_HASH_SIZE. 203 | @param[in] r The r component of the signature. This is an unsigned char 204 | buffer of size SECT163K1_POINT_ORDER_SIZE. 205 | @param[in] s The s component of the signature. This is an unsigned char 206 | buffer of size SECT163K1_POINT_ORDER_SIZE. 207 | @param[in] yieldLevel The yield level determines how often the user defined yield 208 | function will be called. This is a number from 0 to 10. 209 | 0 will never yield. 210 | 1 will yield the most often. 211 | 10 will yield the least often. 212 | @param[in] YieldFunc Pointer to a function to allow user defined yielding. 213 | YieldFunc may be NULL if yieldLevel is 0. 214 | 215 | @retval MCE_ERR_FAIL_VERIFY The signature verification failed. 216 | @retval MCE_ERR_NULL_PUBLIC_KEY publicKey is NULL. 217 | @retval MCE_ERR_NULL_INPUT_BUF msgDigest, r or 218 | s are NULL. 219 | @retval MCE_ERR_NULL_FUNC_PTR YieldFunc is NULL and 220 | YieldLevel is not 0. 221 | @retval MCE_ERR_BAD_INPUT YieldLevel is greater than 10. 222 | @retval MCE_SUCCESS Success. 223 | */ 224 | 225 | int ZSE_ECDSAVerify(unsigned char *publicKey, 226 | unsigned char *msgDigest, 227 | unsigned char *r, 228 | unsigned char *s, 229 | YieldFunc *yield, 230 | unsigned long yieldLevel); 231 | 232 | 233 | /** 234 | 235 | Generates an ephemeral key pair using the specified random data generation 236 | function. Normally, the public key is sent to the remote party as part of the 237 | key agreement protocol. 238 | 239 | @param[out] privateKey The generated private key. This is an unsigned char 240 | buffer of size SECT163K1_PRIVATE_KEY_SIZE. 241 | @param[out] publicKey The generated public key. This is an unsigned char 242 | buffer of size 243 | SECT163K1_COMPRESSED_PUBLIC_KEY_SIZE. 244 | @param[in] GetRandomData Pointer to a function to get random data for 245 | generating the ephemeral key pair. 246 | @param[in] yieldLevel The yield level determines how often the user defined yield 247 | function will be called. This is a number from 0 to 10. 248 | 0 will never yield. 249 | 1 will yield the most often. 250 | 10 will yield the least often. 251 | @param[in] YieldFunc Pointer to a function to allow user defined yielding. 252 | YieldFunc may be NULL if yieldLevel is 0. 253 | 254 | @retval MCE_ERR_NULL_OUTPUT_BUF privateKey or publicKey 255 | are NULL. 256 | @retval MCE_ERR_NULL_FUNC_PTR GetRandomData is NULL or 257 | YieldFunc is NULL and 258 | YieldLevel is not 0. 259 | @retval MCE_ERR_BAD_INPUT YieldLevel is greater than 10. 260 | @retval MCE_SUCCESS Success. 261 | */ 262 | 263 | int ZSE_ECCGenerateKey(unsigned char *privateKey, 264 | unsigned char *publicKey, 265 | GetRandomDataFunc *GetRandomData, 266 | YieldFunc *yield, 267 | unsigned long yieldLevel); 268 | 269 | 270 | /** 271 | 272 | Derives a shared secret using the ECMQV algorithm. The public key of the 273 | remote party is reconstructed using its implicit certificate and the CA 274 | public key. 275 | 276 | @param[in] privateKey The static private key of the local entity. This is an 277 | unsigned char buffer of size 278 | SECT163K1_PRIVATE_KEY_SIZE. 279 | @param[in] ephemeralPrivateKey The ephemeral private key of the local entity. 280 | It should be generated using a previous call 281 | to the function ECCGenerateKey. An 282 | unsigned char buffer of size 283 | SECT163K1_PRIVATE_KEY_SIZE. 284 | @param[in] ephemeralPublicKey The ephemeral public key of the local entity. 285 | It should be generated using a previous call 286 | to the function ECCGenerateKey. An 287 | unsigned char buffer of size 288 | SECT163K1_COMPRESSED_PUBLIC_KEY_SIZE. 289 | @param[in] remoteCertificate Implicit certificate of the remote party. 290 | This is an unsigned char buffer of size 291 | SECT163K1_CERTIFICATE_SIZE. The 292 | static public key of the remote party is 293 | derived from the certificate using the CA's 294 | public key. 295 | @param[in] remoteEphemeralPublicKey Ephemeral public key received from the 296 | remote party. This is an unsigned char 297 | buffer of size 298 | SECT163K1_COMPRESSED_PUBLIC_KEY_SIZE. 299 | @param[in] caPublicKey Public key of the certificate authority. The static 300 | public key for the remote party is derived from the 301 | certificate using the CA's public key. 302 | @param[out] keyBits The derived shared secret. This is an unsigned char 303 | buffer of size SECT163K1_SHARED_SECRET_SIZE. 304 | @param[in] Hash Pointer to a function to hash the certificate data. 305 | @param[in] yieldLevel The yield level determines how often the user defined yield 306 | function will be called. This is a number from 0 to 10. 307 | 0 will never yield. 308 | 1 will yield the most often. 309 | 10 will yield the least often. 310 | @param[in] YieldFunc Pointer to a function to allow user defined yielding. 311 | YieldFunc may be NULL if yieldLevel is 0. 312 | 313 | @retval MCE_ERR_NULL_PRIVATE_KEY privateKey is NULL. 314 | @retval MCE_ERR_NULL_EPHEM_PRI_KEY ephemeralPrivateKey is 315 | NULL 316 | @retval MCE_ERR_NULL_EPHEM_PUB_KEY ephemeralPublicKey or 317 | remoteEphemeralPublicKey are 318 | NULL. 319 | @retval MCE_ERR_NULL_INPUT_BUF remoteCertificate is 320 | NULL. 321 | @retval MCE_ERR_NULL_PUBLIC_KEY caPublicKey is NULL. 322 | @retval MCE_ERR_NULL_OUTPUT_BUF keyBits is NULL. 323 | @retval MCE_ERR_NULL_FUNC_PTR Hash is NULL or 324 | YieldFunc is NULL and 325 | YieldLevel is not 0. 326 | @retval MCE_ERR_BAD_INPUT YieldLevel is greater than 10. 327 | @retval MCE_SUCCESS Success. 328 | */ 329 | 330 | int ZSE_ECCKeyBitGenerate(unsigned char *privateKey, 331 | unsigned char *ephemeralPrivateKey, 332 | unsigned char *ephemeralPublicKey, 333 | unsigned char *remoteCertificate, 334 | unsigned char *remoteEphemeralPublicKey, 335 | unsigned char *caPublicKey, 336 | unsigned char *keyBits, 337 | HashFunc *Hash, 338 | YieldFunc *yield, 339 | unsigned long yieldLevel); 340 | 341 | 342 | /** 343 | 344 | Reconstructs the remote party's public key using its implicit certificate 345 | and the CA public key. 346 | 347 | @param[in] certificate Implicit certificate of the remote party. This is an unsigned 348 | char buffer of size 349 | SECT163K1_CERTIFICATE_SIZE. The static public 350 | key of the remote party is derived from the certificate 351 | using the CA's public key. 352 | @param[in] caPublicKey Public key of the certificate authority. The static 353 | public key of the remote party is derived from the 354 | certificate using the CA's public key. 355 | @param[out] publicKey The derived public key. This is an unsigned char buffer 356 | of size 357 | SECT163K1_COMPRESSED_PUBLIC_KEY_SIZE. 358 | @param[in] Hash Pointer to a function to hash the certificate data. 359 | @param[in] yieldLevel The yield level determines how often the user defined 360 | yield function will be called. This is a number from 361 | 0 to 10. 362 | 0 will never yield. 363 | 1 will yield the most often. 364 | 10 will yield the least often. 365 | @param[in] YieldFunc Pointer to a function to allow user defined yielding. 366 | YieldFunc may be NULL if 367 | yieldLevel is 0. 368 | 369 | 370 | 371 | @retval MCE_ERR_NULL_INPUT_BUF certificate is NULL. 372 | @retval MCE_ERR_NULL_PUBLIC_KEY caPublicKey is NULL. 373 | @retval MCE_ERR_NULL_OUTPUT_BUF publicKey is NULL. 374 | @retval MCE_ERR_NULL_FUNC_PTR Hash is NULL or 375 | YieldFunc is NULL and 376 | YieldLevel is not 0. 377 | @retval MCE_ERR_BAD_INPUT YieldLevel is greater than 10. 378 | */ 379 | 380 | int ZSE_ECQVReconstructPublicKey(unsigned char* certificate, 381 | unsigned char* caPublicKey, 382 | unsigned char* publicKey, 383 | HashFunc *Hash, 384 | YieldFunc *yield, 385 | unsigned long yieldLevel); 386 | 387 | 388 | 389 | /** 390 | 391 | Returns the version number for the product. 392 | 393 | @retval ZSE_VERSION The product version number. 394 | */ 395 | 396 | unsigned long ZSE_GetVersion(void); 397 | 398 | 399 | #ifdef __cplusplus 400 | } 401 | #endif 402 | 403 | #endif 404 | -------------------------------------------------------------------------------- /Components/stack/sec/ssp.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zigbee-door/zigbee-zstack/967446d115ab04b04090ad3d119e4f1ba10c7b30/Components/stack/sec/ssp.h -------------------------------------------------------------------------------- /Components/stack/sec/ssp_hash.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zigbee-door/zigbee-zstack/967446d115ab04b04090ad3d119e4f1ba10c7b30/Components/stack/sec/ssp_hash.h -------------------------------------------------------------------------------- /Components/stack/sys/ZGlobals.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zigbee-door/zigbee-zstack/967446d115ab04b04090ad3d119e4f1ba10c7b30/Components/stack/sys/ZGlobals.c -------------------------------------------------------------------------------- /Components/stack/sys/ZGlobals.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zigbee-door/zigbee-zstack/967446d115ab04b04090ad3d119e4f1ba10c7b30/Components/stack/sys/ZGlobals.h -------------------------------------------------------------------------------- /Components/stack/zcl/zcl.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zigbee-door/zigbee-zstack/967446d115ab04b04090ad3d119e4f1ba10c7b30/Components/stack/zcl/zcl.c -------------------------------------------------------------------------------- /Components/stack/zcl/zcl.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zigbee-door/zigbee-zstack/967446d115ab04b04090ad3d119e4f1ba10c7b30/Components/stack/zcl/zcl.h -------------------------------------------------------------------------------- /Components/stack/zcl/zcl_closures.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zigbee-door/zigbee-zstack/967446d115ab04b04090ad3d119e4f1ba10c7b30/Components/stack/zcl/zcl_closures.c -------------------------------------------------------------------------------- /Components/stack/zcl/zcl_closures.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zigbee-door/zigbee-zstack/967446d115ab04b04090ad3d119e4f1ba10c7b30/Components/stack/zcl/zcl_closures.h -------------------------------------------------------------------------------- /Components/stack/zcl/zcl_general.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zigbee-door/zigbee-zstack/967446d115ab04b04090ad3d119e4f1ba10c7b30/Components/stack/zcl/zcl_general.c -------------------------------------------------------------------------------- /Components/stack/zcl/zcl_general.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zigbee-door/zigbee-zstack/967446d115ab04b04090ad3d119e4f1ba10c7b30/Components/stack/zcl/zcl_general.h -------------------------------------------------------------------------------- /Components/stack/zcl/zcl_hvac.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zigbee-door/zigbee-zstack/967446d115ab04b04090ad3d119e4f1ba10c7b30/Components/stack/zcl/zcl_hvac.c -------------------------------------------------------------------------------- /Components/stack/zcl/zcl_hvac.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zigbee-door/zigbee-zstack/967446d115ab04b04090ad3d119e4f1ba10c7b30/Components/stack/zcl/zcl_hvac.h -------------------------------------------------------------------------------- /Components/stack/zcl/zcl_key_establish.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zigbee-door/zigbee-zstack/967446d115ab04b04090ad3d119e4f1ba10c7b30/Components/stack/zcl/zcl_key_establish.c -------------------------------------------------------------------------------- /Components/stack/zcl/zcl_key_establish.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zigbee-door/zigbee-zstack/967446d115ab04b04090ad3d119e4f1ba10c7b30/Components/stack/zcl/zcl_key_establish.h -------------------------------------------------------------------------------- /Components/stack/zcl/zcl_lighting.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zigbee-door/zigbee-zstack/967446d115ab04b04090ad3d119e4f1ba10c7b30/Components/stack/zcl/zcl_lighting.c -------------------------------------------------------------------------------- /Components/stack/zcl/zcl_lighting.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zigbee-door/zigbee-zstack/967446d115ab04b04090ad3d119e4f1ba10c7b30/Components/stack/zcl/zcl_lighting.h -------------------------------------------------------------------------------- /Components/stack/zcl/zcl_ms.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zigbee-door/zigbee-zstack/967446d115ab04b04090ad3d119e4f1ba10c7b30/Components/stack/zcl/zcl_ms.c -------------------------------------------------------------------------------- /Components/stack/zcl/zcl_ms.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zigbee-door/zigbee-zstack/967446d115ab04b04090ad3d119e4f1ba10c7b30/Components/stack/zcl/zcl_ms.h -------------------------------------------------------------------------------- /Components/stack/zcl/zcl_pi.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zigbee-door/zigbee-zstack/967446d115ab04b04090ad3d119e4f1ba10c7b30/Components/stack/zcl/zcl_pi.c -------------------------------------------------------------------------------- /Components/stack/zcl/zcl_pi.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zigbee-door/zigbee-zstack/967446d115ab04b04090ad3d119e4f1ba10c7b30/Components/stack/zcl/zcl_pi.h -------------------------------------------------------------------------------- /Components/stack/zcl/zcl_se.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zigbee-door/zigbee-zstack/967446d115ab04b04090ad3d119e4f1ba10c7b30/Components/stack/zcl/zcl_se.c -------------------------------------------------------------------------------- /Components/stack/zcl/zcl_se.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zigbee-door/zigbee-zstack/967446d115ab04b04090ad3d119e4f1ba10c7b30/Components/stack/zcl/zcl_se.h -------------------------------------------------------------------------------- /Components/stack/zcl/zcl_ss.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zigbee-door/zigbee-zstack/967446d115ab04b04090ad3d119e4f1ba10c7b30/Components/stack/zcl/zcl_ss.c -------------------------------------------------------------------------------- /Components/stack/zcl/zcl_ss.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zigbee-door/zigbee-zstack/967446d115ab04b04090ad3d119e4f1ba10c7b30/Components/stack/zcl/zcl_ss.h -------------------------------------------------------------------------------- /Components/stack/zdo/ZDApp.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zigbee-door/zigbee-zstack/967446d115ab04b04090ad3d119e4f1ba10c7b30/Components/stack/zdo/ZDApp.c -------------------------------------------------------------------------------- /Components/stack/zdo/ZDApp.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zigbee-door/zigbee-zstack/967446d115ab04b04090ad3d119e4f1ba10c7b30/Components/stack/zdo/ZDApp.h -------------------------------------------------------------------------------- /Components/stack/zdo/ZDConfig.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zigbee-door/zigbee-zstack/967446d115ab04b04090ad3d119e4f1ba10c7b30/Components/stack/zdo/ZDConfig.c -------------------------------------------------------------------------------- /Components/stack/zdo/ZDConfig.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zigbee-door/zigbee-zstack/967446d115ab04b04090ad3d119e4f1ba10c7b30/Components/stack/zdo/ZDConfig.h -------------------------------------------------------------------------------- /Components/stack/zdo/ZDNwkMgr.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zigbee-door/zigbee-zstack/967446d115ab04b04090ad3d119e4f1ba10c7b30/Components/stack/zdo/ZDNwkMgr.c -------------------------------------------------------------------------------- /Components/stack/zdo/ZDNwkMgr.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zigbee-door/zigbee-zstack/967446d115ab04b04090ad3d119e4f1ba10c7b30/Components/stack/zdo/ZDNwkMgr.h -------------------------------------------------------------------------------- /Components/stack/zdo/ZDObject.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zigbee-door/zigbee-zstack/967446d115ab04b04090ad3d119e4f1ba10c7b30/Components/stack/zdo/ZDObject.c -------------------------------------------------------------------------------- /Components/stack/zdo/ZDObject.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zigbee-door/zigbee-zstack/967446d115ab04b04090ad3d119e4f1ba10c7b30/Components/stack/zdo/ZDObject.h -------------------------------------------------------------------------------- /Components/stack/zdo/ZDProfile.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zigbee-door/zigbee-zstack/967446d115ab04b04090ad3d119e4f1ba10c7b30/Components/stack/zdo/ZDProfile.c -------------------------------------------------------------------------------- /Components/stack/zdo/ZDProfile.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zigbee-door/zigbee-zstack/967446d115ab04b04090ad3d119e4f1ba10c7b30/Components/stack/zdo/ZDProfile.h -------------------------------------------------------------------------------- /Components/stack/zdo/ZDSecMgr.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zigbee-door/zigbee-zstack/967446d115ab04b04090ad3d119e4f1ba10c7b30/Components/stack/zdo/ZDSecMgr.c -------------------------------------------------------------------------------- /Components/stack/zdo/ZDSecMgr.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zigbee-door/zigbee-zstack/967446d115ab04b04090ad3d119e4f1ba10c7b30/Components/stack/zdo/ZDSecMgr.h -------------------------------------------------------------------------------- /Components/zmac/ZMAC.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zigbee-door/zigbee-zstack/967446d115ab04b04090ad3d119e4f1ba10c7b30/Components/zmac/ZMAC.h -------------------------------------------------------------------------------- /Components/zmac/f8w/zmac.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zigbee-door/zigbee-zstack/967446d115ab04b04090ad3d119e4f1ba10c7b30/Components/zmac/f8w/zmac.c -------------------------------------------------------------------------------- /Components/zmac/f8w/zmac_cb.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zigbee-door/zigbee-zstack/967446d115ab04b04090ad3d119e4f1ba10c7b30/Components/zmac/f8w/zmac_cb.c -------------------------------------------------------------------------------- /Components/zmac/f8w/zmac_internal.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zigbee-door/zigbee-zstack/967446d115ab04b04090ad3d119e4f1ba10c7b30/Components/zmac/f8w/zmac_internal.h -------------------------------------------------------------------------------- /Projects/zstack/Samples/ZigbeeZstack/Source/App/Base/Apps/app_tcp.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zigbee-door/zigbee-zstack/967446d115ab04b04090ad3d119e4f1ba10c7b30/Projects/zstack/Samples/ZigbeeZstack/Source/App/Base/Apps/app_tcp.c -------------------------------------------------------------------------------- /Projects/zstack/Samples/ZigbeeZstack/Source/App/Base/Apps/app_tcp.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zigbee-door/zigbee-zstack/967446d115ab04b04090ad3d119e4f1ba10c7b30/Projects/zstack/Samples/ZigbeeZstack/Source/App/Base/Apps/app_tcp.h -------------------------------------------------------------------------------- /Projects/zstack/Samples/ZigbeeZstack/Source/App/Base/BaseApp.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zigbee-door/zigbee-zstack/967446d115ab04b04090ad3d119e4f1ba10c7b30/Projects/zstack/Samples/ZigbeeZstack/Source/App/Base/BaseApp.c -------------------------------------------------------------------------------- /Projects/zstack/Samples/ZigbeeZstack/Source/App/Base/BaseApp.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zigbee-door/zigbee-zstack/967446d115ab04b04090ad3d119e4f1ba10c7b30/Projects/zstack/Samples/ZigbeeZstack/Source/App/Base/BaseApp.h -------------------------------------------------------------------------------- /Projects/zstack/Samples/ZigbeeZstack/Source/App/Base/Drivers/dri_buzzer.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zigbee-door/zigbee-zstack/967446d115ab04b04090ad3d119e4f1ba10c7b30/Projects/zstack/Samples/ZigbeeZstack/Source/App/Base/Drivers/dri_buzzer.c -------------------------------------------------------------------------------- /Projects/zstack/Samples/ZigbeeZstack/Source/App/Base/Drivers/dri_buzzer.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zigbee-door/zigbee-zstack/967446d115ab04b04090ad3d119e4f1ba10c7b30/Projects/zstack/Samples/ZigbeeZstack/Source/App/Base/Drivers/dri_buzzer.h -------------------------------------------------------------------------------- /Projects/zstack/Samples/ZigbeeZstack/Source/App/Base/Drivers/dri_delay.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zigbee-door/zigbee-zstack/967446d115ab04b04090ad3d119e4f1ba10c7b30/Projects/zstack/Samples/ZigbeeZstack/Source/App/Base/Drivers/dri_delay.c -------------------------------------------------------------------------------- /Projects/zstack/Samples/ZigbeeZstack/Source/App/Base/Drivers/dri_delay.h: -------------------------------------------------------------------------------- 1 | #ifndef HAL_DELAY_H_ 2 | #define HAL_DELAY_H_ 3 | 4 | 5 | 6 | /* ------------------------------------------------------------------------------------------------ 7 | * Includes 8 | * ------------------------------------------------------------------------------------------------ 9 | */ 10 | #include "OnBoard.h" 11 | 12 | 13 | 14 | /* ------------------------------------------------------------------------------------------------ 15 | * Prototypes 16 | * ------------------------------------------------------------------------------------------------ 17 | */ 18 | void Delay_Ms( uint16 timeout ); 19 | void Delay_Us( uint16 timeout ); 20 | 21 | #endif -------------------------------------------------------------------------------- /Projects/zstack/Samples/ZigbeeZstack/Source/App/Base/Drivers/dri_i2c.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zigbee-door/zigbee-zstack/967446d115ab04b04090ad3d119e4f1ba10c7b30/Projects/zstack/Samples/ZigbeeZstack/Source/App/Base/Drivers/dri_i2c.c -------------------------------------------------------------------------------- /Projects/zstack/Samples/ZigbeeZstack/Source/App/Base/Drivers/dri_i2c.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zigbee-door/zigbee-zstack/967446d115ab04b04090ad3d119e4f1ba10c7b30/Projects/zstack/Samples/ZigbeeZstack/Source/App/Base/Drivers/dri_i2c.h -------------------------------------------------------------------------------- /Projects/zstack/Samples/ZigbeeZstack/Source/App/Base/Drivers/dri_iport.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zigbee-door/zigbee-zstack/967446d115ab04b04090ad3d119e4f1ba10c7b30/Projects/zstack/Samples/ZigbeeZstack/Source/App/Base/Drivers/dri_iport.c -------------------------------------------------------------------------------- /Projects/zstack/Samples/ZigbeeZstack/Source/App/Base/Drivers/dri_iport.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zigbee-door/zigbee-zstack/967446d115ab04b04090ad3d119e4f1ba10c7b30/Projects/zstack/Samples/ZigbeeZstack/Source/App/Base/Drivers/dri_iport.h -------------------------------------------------------------------------------- /Projects/zstack/Samples/ZigbeeZstack/Source/App/Base/Drivers/dri_key.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zigbee-door/zigbee-zstack/967446d115ab04b04090ad3d119e4f1ba10c7b30/Projects/zstack/Samples/ZigbeeZstack/Source/App/Base/Drivers/dri_key.c -------------------------------------------------------------------------------- /Projects/zstack/Samples/ZigbeeZstack/Source/App/Base/Drivers/dri_key.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zigbee-door/zigbee-zstack/967446d115ab04b04090ad3d119e4f1ba10c7b30/Projects/zstack/Samples/ZigbeeZstack/Source/App/Base/Drivers/dri_key.h -------------------------------------------------------------------------------- /Projects/zstack/Samples/ZigbeeZstack/Source/App/Base/Drivers/dri_led.c: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /Projects/zstack/Samples/ZigbeeZstack/Source/App/Base/Drivers/dri_led.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zigbee-door/zigbee-zstack/967446d115ab04b04090ad3d119e4f1ba10c7b30/Projects/zstack/Samples/ZigbeeZstack/Source/App/Base/Drivers/dri_led.h -------------------------------------------------------------------------------- /Projects/zstack/Samples/ZigbeeZstack/Source/App/Base/Drivers/dri_motor.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zigbee-door/zigbee-zstack/967446d115ab04b04090ad3d119e4f1ba10c7b30/Projects/zstack/Samples/ZigbeeZstack/Source/App/Base/Drivers/dri_motor.c -------------------------------------------------------------------------------- /Projects/zstack/Samples/ZigbeeZstack/Source/App/Base/Drivers/dri_motor.h: -------------------------------------------------------------------------------- 1 | #ifndef MOTOR_H_ 2 | #define MOTOR_H_ 3 | 4 | /* ------------------------------------------------------------------------------------------------ 5 | * Includes 6 | * ------------------------------------------------------------------------------------------------ 7 | */ 8 | #include 9 | 10 | /* ------------------------------------------------------------------------------------------------ 11 | * Define 12 | * ------------------------------------------------------------------------------------------------ 13 | */ 14 | 15 | 16 | 17 | 18 | /* ------------------------------------------------------------------------------------------------ 19 | * Prototypes 20 | * ------------------------------------------------------------------------------------------------ 21 | */ 22 | void Motor_Init(void); 23 | void Motor_H1ON(void); 24 | void Motor_H2ON(void); 25 | void Motor_H1H2OFF(void); 26 | 27 | 28 | #endif -------------------------------------------------------------------------------- /Projects/zstack/Samples/ZigbeeZstack/Source/App/Base/Drivers/dri_spi.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zigbee-door/zigbee-zstack/967446d115ab04b04090ad3d119e4f1ba10c7b30/Projects/zstack/Samples/ZigbeeZstack/Source/App/Base/Drivers/dri_spi.c -------------------------------------------------------------------------------- /Projects/zstack/Samples/ZigbeeZstack/Source/App/Base/Drivers/dri_spi.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zigbee-door/zigbee-zstack/967446d115ab04b04090ad3d119e4f1ba10c7b30/Projects/zstack/Samples/ZigbeeZstack/Source/App/Base/Drivers/dri_spi.h -------------------------------------------------------------------------------- /Projects/zstack/Samples/ZigbeeZstack/Source/App/Base/Drivers/dri_uart.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zigbee-door/zigbee-zstack/967446d115ab04b04090ad3d119e4f1ba10c7b30/Projects/zstack/Samples/ZigbeeZstack/Source/App/Base/Drivers/dri_uart.c -------------------------------------------------------------------------------- /Projects/zstack/Samples/ZigbeeZstack/Source/App/Base/Drivers/dri_uart.h: -------------------------------------------------------------------------------- 1 | #ifndef DRI_UART_H 2 | #define DRI_UART_H 3 | 4 | 5 | 6 | /*-Include----------------*/ 7 | #include 8 | #include "stdio.h" 9 | #include "hal_uart.h" 10 | 11 | 12 | 13 | /*-function---------------*/ 14 | void Uart0_Init(void); 15 | void Uart0_SendByte(uint8 Data); 16 | void Uart0_SendString(uint8 *Data, uint8 len); 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | #endif -------------------------------------------------------------------------------- /Projects/zstack/Samples/ZigbeeZstack/Source/App/Base/OSAL_BaseApp.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zigbee-door/zigbee-zstack/967446d115ab04b04090ad3d119e4f1ba10c7b30/Projects/zstack/Samples/ZigbeeZstack/Source/App/Base/OSAL_BaseApp.c -------------------------------------------------------------------------------- /Projects/zstack/Samples/ZigbeeZstack/Source/App/Lock/AppsH/apph_card.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zigbee-door/zigbee-zstack/967446d115ab04b04090ad3d119e4f1ba10c7b30/Projects/zstack/Samples/ZigbeeZstack/Source/App/Lock/AppsH/apph_card.c -------------------------------------------------------------------------------- /Projects/zstack/Samples/ZigbeeZstack/Source/App/Lock/AppsH/apph_card.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zigbee-door/zigbee-zstack/967446d115ab04b04090ad3d119e4f1ba10c7b30/Projects/zstack/Samples/ZigbeeZstack/Source/App/Lock/AppsH/apph_card.h -------------------------------------------------------------------------------- /Projects/zstack/Samples/ZigbeeZstack/Source/App/Lock/AppsH/apph_door.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zigbee-door/zigbee-zstack/967446d115ab04b04090ad3d119e4f1ba10c7b30/Projects/zstack/Samples/ZigbeeZstack/Source/App/Lock/AppsH/apph_door.c -------------------------------------------------------------------------------- /Projects/zstack/Samples/ZigbeeZstack/Source/App/Lock/AppsH/apph_door.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zigbee-door/zigbee-zstack/967446d115ab04b04090ad3d119e4f1ba10c7b30/Projects/zstack/Samples/ZigbeeZstack/Source/App/Lock/AppsH/apph_door.h -------------------------------------------------------------------------------- /Projects/zstack/Samples/ZigbeeZstack/Source/App/Lock/AppsL/appl_data.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zigbee-door/zigbee-zstack/967446d115ab04b04090ad3d119e4f1ba10c7b30/Projects/zstack/Samples/ZigbeeZstack/Source/App/Lock/AppsL/appl_data.c -------------------------------------------------------------------------------- /Projects/zstack/Samples/ZigbeeZstack/Source/App/Lock/AppsL/appl_data.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zigbee-door/zigbee-zstack/967446d115ab04b04090ad3d119e4f1ba10c7b30/Projects/zstack/Samples/ZigbeeZstack/Source/App/Lock/AppsL/appl_data.h -------------------------------------------------------------------------------- /Projects/zstack/Samples/ZigbeeZstack/Source/App/Lock/Config.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zigbee-door/zigbee-zstack/967446d115ab04b04090ad3d119e4f1ba10c7b30/Projects/zstack/Samples/ZigbeeZstack/Source/App/Lock/Config.h -------------------------------------------------------------------------------- /Projects/zstack/Samples/ZigbeeZstack/Source/App/Lock/Devices/dev_at24c256.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zigbee-door/zigbee-zstack/967446d115ab04b04090ad3d119e4f1ba10c7b30/Projects/zstack/Samples/ZigbeeZstack/Source/App/Lock/Devices/dev_at24c256.c -------------------------------------------------------------------------------- /Projects/zstack/Samples/ZigbeeZstack/Source/App/Lock/Devices/dev_at24c256.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zigbee-door/zigbee-zstack/967446d115ab04b04090ad3d119e4f1ba10c7b30/Projects/zstack/Samples/ZigbeeZstack/Source/App/Lock/Devices/dev_at24c256.h -------------------------------------------------------------------------------- /Projects/zstack/Samples/ZigbeeZstack/Source/App/Lock/Devices/dev_buzzer.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zigbee-door/zigbee-zstack/967446d115ab04b04090ad3d119e4f1ba10c7b30/Projects/zstack/Samples/ZigbeeZstack/Source/App/Lock/Devices/dev_buzzer.c -------------------------------------------------------------------------------- /Projects/zstack/Samples/ZigbeeZstack/Source/App/Lock/Devices/dev_buzzer.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zigbee-door/zigbee-zstack/967446d115ab04b04090ad3d119e4f1ba10c7b30/Projects/zstack/Samples/ZigbeeZstack/Source/App/Lock/Devices/dev_buzzer.h -------------------------------------------------------------------------------- /Projects/zstack/Samples/ZigbeeZstack/Source/App/Lock/Devices/dev_door.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zigbee-door/zigbee-zstack/967446d115ab04b04090ad3d119e4f1ba10c7b30/Projects/zstack/Samples/ZigbeeZstack/Source/App/Lock/Devices/dev_door.h -------------------------------------------------------------------------------- /Projects/zstack/Samples/ZigbeeZstack/Source/App/Lock/Devices/dev_mfrc522.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zigbee-door/zigbee-zstack/967446d115ab04b04090ad3d119e4f1ba10c7b30/Projects/zstack/Samples/ZigbeeZstack/Source/App/Lock/Devices/dev_mfrc522.c -------------------------------------------------------------------------------- /Projects/zstack/Samples/ZigbeeZstack/Source/App/Lock/Devices/dev_mfrc522.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zigbee-door/zigbee-zstack/967446d115ab04b04090ad3d119e4f1ba10c7b30/Projects/zstack/Samples/ZigbeeZstack/Source/App/Lock/Devices/dev_mfrc522.h -------------------------------------------------------------------------------- /Projects/zstack/Samples/ZigbeeZstack/Source/App/Lock/Devices/dev_motor.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zigbee-door/zigbee-zstack/967446d115ab04b04090ad3d119e4f1ba10c7b30/Projects/zstack/Samples/ZigbeeZstack/Source/App/Lock/Devices/dev_motor.c -------------------------------------------------------------------------------- /Projects/zstack/Samples/ZigbeeZstack/Source/App/Lock/Drivers/dri_adc.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zigbee-door/zigbee-zstack/967446d115ab04b04090ad3d119e4f1ba10c7b30/Projects/zstack/Samples/ZigbeeZstack/Source/App/Lock/Drivers/dri_adc.c -------------------------------------------------------------------------------- /Projects/zstack/Samples/ZigbeeZstack/Source/App/Lock/Drivers/dri_adc.h: -------------------------------------------------------------------------------- 1 | #ifndef DRI_ADC_H_ 2 | #define DRI_ADC_H_ 3 | 4 | /* ------------------------------------------------------------------------------------------------ 5 | * Includes 6 | * ------------------------------------------------------------------------------------------------ 7 | */ 8 | #include 9 | #include "hal_types.h" 10 | 11 | 12 | 13 | 14 | 15 | /* ------------------------------------------------------------------------------------------------ 16 | * Prototypes 17 | * ------------------------------------------------------------------------------------------------ 18 | */ 19 | void Adc_Init(void); 20 | void Adc_Config(void); 21 | uint16 Adc_GetVoltage(void); 22 | #endif 23 | -------------------------------------------------------------------------------- /Projects/zstack/Samples/ZigbeeZstack/Source/App/Lock/Drivers/dri_buzzer.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zigbee-door/zigbee-zstack/967446d115ab04b04090ad3d119e4f1ba10c7b30/Projects/zstack/Samples/ZigbeeZstack/Source/App/Lock/Drivers/dri_buzzer.c -------------------------------------------------------------------------------- /Projects/zstack/Samples/ZigbeeZstack/Source/App/Lock/Drivers/dri_buzzer.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zigbee-door/zigbee-zstack/967446d115ab04b04090ad3d119e4f1ba10c7b30/Projects/zstack/Samples/ZigbeeZstack/Source/App/Lock/Drivers/dri_buzzer.h -------------------------------------------------------------------------------- /Projects/zstack/Samples/ZigbeeZstack/Source/App/Lock/Drivers/dri_delay.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zigbee-door/zigbee-zstack/967446d115ab04b04090ad3d119e4f1ba10c7b30/Projects/zstack/Samples/ZigbeeZstack/Source/App/Lock/Drivers/dri_delay.c -------------------------------------------------------------------------------- /Projects/zstack/Samples/ZigbeeZstack/Source/App/Lock/Drivers/dri_delay.h: -------------------------------------------------------------------------------- 1 | #ifndef HAL_DELAY_H_ 2 | #define HAL_DELAY_H_ 3 | 4 | 5 | 6 | /* ------------------------------------------------------------------------------------------------ 7 | * Includes 8 | * ------------------------------------------------------------------------------------------------ 9 | */ 10 | #include "OnBoard.h" 11 | 12 | 13 | 14 | /* ------------------------------------------------------------------------------------------------ 15 | * Prototypes 16 | * ------------------------------------------------------------------------------------------------ 17 | */ 18 | void Delay_Ms( uint16 timeout ); 19 | void Delay_Us( uint16 timeout ); 20 | 21 | #endif -------------------------------------------------------------------------------- /Projects/zstack/Samples/ZigbeeZstack/Source/App/Lock/Drivers/dri_i2c.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zigbee-door/zigbee-zstack/967446d115ab04b04090ad3d119e4f1ba10c7b30/Projects/zstack/Samples/ZigbeeZstack/Source/App/Lock/Drivers/dri_i2c.c -------------------------------------------------------------------------------- /Projects/zstack/Samples/ZigbeeZstack/Source/App/Lock/Drivers/dri_i2c.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zigbee-door/zigbee-zstack/967446d115ab04b04090ad3d119e4f1ba10c7b30/Projects/zstack/Samples/ZigbeeZstack/Source/App/Lock/Drivers/dri_i2c.h -------------------------------------------------------------------------------- /Projects/zstack/Samples/ZigbeeZstack/Source/App/Lock/Drivers/dri_key.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zigbee-door/zigbee-zstack/967446d115ab04b04090ad3d119e4f1ba10c7b30/Projects/zstack/Samples/ZigbeeZstack/Source/App/Lock/Drivers/dri_key.c -------------------------------------------------------------------------------- /Projects/zstack/Samples/ZigbeeZstack/Source/App/Lock/Drivers/dri_key.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zigbee-door/zigbee-zstack/967446d115ab04b04090ad3d119e4f1ba10c7b30/Projects/zstack/Samples/ZigbeeZstack/Source/App/Lock/Drivers/dri_key.h -------------------------------------------------------------------------------- /Projects/zstack/Samples/ZigbeeZstack/Source/App/Lock/Drivers/dri_led.c: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /Projects/zstack/Samples/ZigbeeZstack/Source/App/Lock/Drivers/dri_led.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zigbee-door/zigbee-zstack/967446d115ab04b04090ad3d119e4f1ba10c7b30/Projects/zstack/Samples/ZigbeeZstack/Source/App/Lock/Drivers/dri_led.h -------------------------------------------------------------------------------- /Projects/zstack/Samples/ZigbeeZstack/Source/App/Lock/Drivers/dri_motor.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zigbee-door/zigbee-zstack/967446d115ab04b04090ad3d119e4f1ba10c7b30/Projects/zstack/Samples/ZigbeeZstack/Source/App/Lock/Drivers/dri_motor.c -------------------------------------------------------------------------------- /Projects/zstack/Samples/ZigbeeZstack/Source/App/Lock/Drivers/dri_motor.h: -------------------------------------------------------------------------------- 1 | #ifndef MOTOR_H_ 2 | #define MOTOR_H_ 3 | 4 | /* ------------------------------------------------------------------------------------------------ 5 | * Includes 6 | * ------------------------------------------------------------------------------------------------ 7 | */ 8 | #include 9 | 10 | /* ------------------------------------------------------------------------------------------------ 11 | * Define 12 | * ------------------------------------------------------------------------------------------------ 13 | */ 14 | 15 | 16 | 17 | 18 | /* ------------------------------------------------------------------------------------------------ 19 | * Prototypes 20 | * ------------------------------------------------------------------------------------------------ 21 | */ 22 | void Motor_Init(void); 23 | void Motor_H1ON(void); 24 | void Motor_H2ON(void); 25 | void Motor_H1H2OFF(void); 26 | 27 | 28 | #endif -------------------------------------------------------------------------------- /Projects/zstack/Samples/ZigbeeZstack/Source/App/Lock/Drivers/dri_spi.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zigbee-door/zigbee-zstack/967446d115ab04b04090ad3d119e4f1ba10c7b30/Projects/zstack/Samples/ZigbeeZstack/Source/App/Lock/Drivers/dri_spi.c -------------------------------------------------------------------------------- /Projects/zstack/Samples/ZigbeeZstack/Source/App/Lock/Drivers/dri_spi.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zigbee-door/zigbee-zstack/967446d115ab04b04090ad3d119e4f1ba10c7b30/Projects/zstack/Samples/ZigbeeZstack/Source/App/Lock/Drivers/dri_spi.h -------------------------------------------------------------------------------- /Projects/zstack/Samples/ZigbeeZstack/Source/App/Lock/LockApp.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zigbee-door/zigbee-zstack/967446d115ab04b04090ad3d119e4f1ba10c7b30/Projects/zstack/Samples/ZigbeeZstack/Source/App/Lock/LockApp.c -------------------------------------------------------------------------------- /Projects/zstack/Samples/ZigbeeZstack/Source/App/Lock/LockApp.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zigbee-door/zigbee-zstack/967446d115ab04b04090ad3d119e4f1ba10c7b30/Projects/zstack/Samples/ZigbeeZstack/Source/App/Lock/LockApp.h -------------------------------------------------------------------------------- /Projects/zstack/Samples/ZigbeeZstack/Source/App/Lock/OSAL_LockApp.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zigbee-door/zigbee-zstack/967446d115ab04b04090ad3d119e4f1ba10c7b30/Projects/zstack/Samples/ZigbeeZstack/Source/App/Lock/OSAL_LockApp.c -------------------------------------------------------------------------------- /Projects/zstack/Tools/CC2530DB/f8w2530.xcl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zigbee-door/zigbee-zstack/967446d115ab04b04090ad3d119e4f1ba10c7b30/Projects/zstack/Tools/CC2530DB/f8w2530.xcl -------------------------------------------------------------------------------- /Projects/zstack/Tools/CC2530DB/f8wConfig.cfg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zigbee-door/zigbee-zstack/967446d115ab04b04090ad3d119e4f1ba10c7b30/Projects/zstack/Tools/CC2530DB/f8wConfig.cfg -------------------------------------------------------------------------------- /Projects/zstack/Tools/CC2530DB/f8wCoord.cfg: -------------------------------------------------------------------------------- 1 | /* 2 | * f8wCoord.cfg 3 | * 4 | * Compiler command-line options used to define a TI Z-Stack 5 | * Coordinator device. To move an option from here to the project 6 | * file, comment out or delete the option from this file and 7 | * enter it into the "Define Symbols" box under the Preprocessor 8 | * tab of the C/C++ Compiler Project Options. New user defined 9 | * options may be added to this file, as necessary. 10 | * 11 | */ 12 | 13 | /* Common To All Applications */ 14 | -DCPU32MHZ // CC2530s Run at 32MHz 15 | -DROOT=__near_func // MAC/ZMAC code in NEAR 16 | 17 | /* MAC Settings */ 18 | -DMAC_CFG_APP_PENDING_QUEUE=TRUE 19 | 20 | /* Coordinator Settings */ 21 | -DZDO_COORDINATOR // Coordinator Functions 22 | -DRTR_NWK // Router Functions 23 | 24 | /* Optional Settings */ 25 | -DBLINK_LEDS // LED Blink Functions 26 | 27 | -------------------------------------------------------------------------------- /Projects/zstack/Tools/CC2530DB/f8wEndev.cfg: -------------------------------------------------------------------------------- 1 | /* 2 | * f8wEndev.cfg 3 | * 4 | * Compiler command-line options used to define a TI Z-Stack 5 | * End Device. To move an option from here to the project file, 6 | * comment out or delete the option from this file and enter it 7 | * into the "Define Symbols" box under the Preprocessor tab of 8 | * the C/C++ Compiler Project Options. New user defined options 9 | * may be added to this file, as necessary. 10 | * 11 | */ 12 | 13 | /* Common To All Applications */ 14 | -DCPU32MHZ // CC2530s Run at 32MHz 15 | -DROOT=__near_func // MAC/ZMAC code in NEAR 16 | 17 | /* Optional Settings */ 18 | -DBLINK_LEDS // LED Blink Functions 19 | 20 | -------------------------------------------------------------------------------- /Projects/zstack/Tools/CC2530DB/f8wRouter.cfg: -------------------------------------------------------------------------------- 1 | /* 2 | * f8wRouter.cfg 3 | * 4 | * Compiler command-line options used to define a TI Z-Stack 5 | * Router device. To move an option from here to the project 6 | * file, comment out or delete the option from this file and 7 | * enter it into the "Define Symbols" box under the Preprocessor 8 | * tab of the C/C++ Compiler Project Options. New user defined 9 | * options may be added to this file, as necessary. 10 | * 11 | */ 12 | 13 | /* Common To All Applications */ 14 | -DCPU32MHZ // CC2530s Run at 32MHz 15 | -DROOT=__near_func // MAC/ZMAC code in NEAR 16 | 17 | /* MAC Settings */ 18 | -DMAC_CFG_APP_PENDING_QUEUE=TRUE 19 | 20 | /* Router Settings */ 21 | -DRTR_NWK // Router Functions 22 | 23 | /* Optional Settings */ 24 | -DBLINK_LEDS // LED Blink Functions 25 | -------------------------------------------------------------------------------- /Projects/zstack/Tools/CC2530DB/f8wZCL.cfg: -------------------------------------------------------------------------------- 1 | /* 2 | * f8wZCL.cfg 3 | * 4 | * Compiler command-line options used to define a ZigBee Cluster 5 | * Library (ZCL) poject. To move an option from here to the project 6 | * file, comment out or delete the option from this file and enter 7 | * it into the "Define Symbols" box under the Preprocessor tab of 8 | * the C/C++ Compiler Project Options. New user defined options may 9 | * be added to this file, as necessary. 10 | * 11 | * Each macro is prefixed with '-D'. The entries are to be constructed 12 | * as if they are to be on the compiler command line invocation (which 13 | * they are). 14 | */ 15 | 16 | /**************************************** 17 | * The following are for Foundation only 18 | ****************************************/ 19 | 20 | /* ZCL Read enables the following commands: 21 | * 1) Read Attributes 22 | * 2) Read Attributes Response 23 | */ 24 | -DZCL_READ 25 | 26 | /* ZCL Write enables the following commands: 27 | * 1) Write Attributes 28 | * 2) Write Attributes Undivided 29 | * 3) Write Attributes Response 30 | * 4) Write Attributes No Response 31 | */ 32 | -DZCL_WRITE 33 | 34 | /* ZCL Report enables the following commands: 35 | * 1) Configure Reporting 36 | * 2) Configure Reporting Response 37 | * 3) Read Reporting Response 38 | * 4) Read Reporting Configuration Response 39 | * 5) Report Attributes 40 | */ 41 | //-DZCL_REPORT 42 | 43 | /* ZCL Discover enables the following commands: 44 | * 1) Discover Attributes 45 | * 2) Discover Attributes Response 46 | */ 47 | //-DZCL_DISCOVER 48 | 49 | /********************************************** 50 | * The following are for General clusters only 51 | **********************************************/ 52 | 53 | /* ZCL Basic enables the following command: 54 | * 1) Reset to Factory Defaults 55 | */ 56 | -DZCL_BASIC 57 | 58 | /* ZCL Identify enables the following commands: 59 | * 1) Identify Query 60 | * 2) Identify Query Response 61 | */ 62 | -DZCL_IDENTIFY 63 | 64 | /* ZCL Groups enables the following commands: 65 | * 1) Add Group 66 | * 2) View Group 67 | * 3) Get Group Membership 68 | * 4) Remove Group 69 | * 5) Remove All Groups 70 | * 6) Add Group If Identifying 71 | * 7) Add Group Response 72 | * 8) View Group Response 73 | * 9) Get Group Membership Response 74 | * 10) Remove Group Response 75 | */ 76 | //-DZCL_GROUPS 77 | 78 | /* ZCL Scenes enables the following commands: 79 | * 1) Add Scene 80 | * 2) View Scene 81 | * 3) Remove Group 82 | * 4) Remove All Groups 83 | * 5) Store Scene 84 | * 6) Recall Scene 85 | * 7) Get Scene Membership 86 | * 8) Add Scene Response 87 | * 9) View Scene Response 88 | * 10) Remove Scene Response 89 | * 11) Remove All Scenes Response 90 | * 12) Store Scene Response 91 | * 13) Get Scene Membership Response 92 | */ 93 | //-DZCL_SCENES 94 | 95 | /* ZCL On/Off enables the following commands: 96 | * 1) On 97 | * 2) Off 98 | * 3) Toggle 99 | */ 100 | -DZCL_ON_OFF 101 | 102 | /* ZCL Level Control enables the following commands: 103 | * 1) Move to Level 104 | * 2) Move 105 | * 3) Step 106 | */ 107 | //-DZCL_LEVEL_CTRL 108 | 109 | /* ZCL Alarms enables the following commands: 110 | * 1) Reset Alarm 111 | * 2) Reset All Alarms 112 | * 3) Get Alarm 113 | * 4) Reset Alarm Log 114 | * 5) Alarm 115 | * 6) Get Alarm Response 116 | */ 117 | //-DZCL_ALARMS 118 | 119 | /* ZCL Location enables the following commands: 120 | * 1) Set Absolute Location 121 | * 2) Set Device Configuration 122 | * 3) Get Device Configuration 123 | * 4) Get Location Data 124 | * 5) Device Configuration Response 125 | * 6) Location Data Response 126 | * 7) Location Data Notification 127 | * 8) Compact Location Data Notification 128 | * 9) RSSI Ping 129 | */ 130 | //-DZCL_LOCATION 131 | 132 | /* 133 | * ZCL_KEY_ESTABLISH eanbles the ZCL Key Establishment Cluster 134 | */ 135 | -DZCL_KEY_ESTABLISH 136 | 137 | /********************************************************** 138 | * The following are for Security and Safety clusters only 139 | **********************************************************/ 140 | 141 | /* ZCL Zone enables the following commands: 142 | * 1) Zone Status Change Notification 143 | * 2) Zone Enroll Request 144 | * 3) Zone Enroll Response 145 | */ 146 | //-DZCL_ZONE 147 | 148 | /* ZCL ACE enables the following commands: 149 | * 1) Arm 150 | * 2) Bypass 151 | * 3) Emergency 152 | * 4) Fire 153 | * 5) Panic 154 | * 6) Get Zone ID Map 155 | * 7) Get Zone Information 156 | * 8) Arm Response 157 | * 9) Get Zone ID Map Response 158 | * 10) Get Zone Information Response 159 | */ 160 | //-DZCL_ACE 161 | 162 | /* ZCL WD enables the following commands: 163 | * 1) Start Warning 164 | * 2) Squawk 165 | */ 166 | //-DZCL_WD 167 | 168 | /********************************************************** 169 | * The following are for AMI clusters only 170 | **********************************************************/ 171 | 172 | /* ZCL_LOAD_CONTROL enables the following commands: 173 | * 1) Load Control Event 174 | * 2) Cancel Load Control Event 175 | * 3) Cancel All Load Control Event 176 | * 4) Report Event Status 177 | */ 178 | -DZCL_LOAD_CONTROL 179 | 180 | /* ZCL_SIMPLE_METERING enables the following commands: 181 | * 1) Get Profile Command 182 | * 2) Get Profile Response 183 | */ 184 | -DZCL_SIMPLE_METERING 185 | 186 | /* ZCL_PRICING enables the following commands: 187 | * 1) Get Current Price 188 | * 2) Get Scheduled Price 189 | * 3) Publish Price 190 | */ 191 | -DZCL_PRICING 192 | 193 | /* ZCL_MESSAGE enables the following commands: 194 | * 1) Display Message 195 | * 2) Cancel Message 196 | * 3) Get Last Message 197 | * 4) Message Confirmation 198 | */ 199 | -DZCL_MESSAGE -------------------------------------------------------------------------------- /Projects/zstack/Tools/CC2530DB/oad-boot.xcl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zigbee-door/zigbee-zstack/967446d115ab04b04090ad3d119e4f1ba10c7b30/Projects/zstack/Tools/CC2530DB/oad-boot.xcl -------------------------------------------------------------------------------- /Projects/zstack/Tools/CC2530DB/oad.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zigbee-door/zigbee-zstack/967446d115ab04b04090ad3d119e4f1ba10c7b30/Projects/zstack/Tools/CC2530DB/oad.exe -------------------------------------------------------------------------------- /Projects/zstack/Tools/CC2530DB/oad.xcl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zigbee-door/zigbee-zstack/967446d115ab04b04090ad3d119e4f1ba10c7b30/Projects/zstack/Tools/CC2530DB/oad.xcl -------------------------------------------------------------------------------- /Projects/zstack/Tools/CC2530DB/znp.cfg: -------------------------------------------------------------------------------- 1 | /* 2 | * znp.cfg 3 | * 4 | * Compiler command-line options used to define a TI Z-Stack ZigBee Network Processor device. 5 | * To move an option from here to the project file, comment out or delete the option from this file 6 | * and enter it in the "Define Symbols" box under the Preprocessor tab of the IAR Project Options. 7 | * New user defined options may be added to this file, as necessary. 8 | * 9 | */ 10 | 11 | /* Common To All Applications */ 12 | -DCPU32MHZ // CC2530s Run at 32MHz 13 | 14 | /* MAC Settings */ 15 | -DMAC_CFG_APP_PENDING_QUEUE=TRUE 16 | 17 | -DNWK_AUTO_POLL 18 | -DPOWER_SAVING 19 | 20 | /* Generic All-in-One Settings */ 21 | -DZSTACK_DEVICE_BUILD="(DEVICE_BUILD_COORDINATOR | DEVICE_BUILD_ROUTER | DEVICE_BUILD_ENDDEVICE)" 22 | 23 | /* Other Settings */ 24 | 25 | // CRC checking can be enabled for a production image - not recommended for development, debug & test. 26 | -DZNP_RUN_CRC=FALSE 27 | 28 | // The watchdog can be enabled to break out of a locked SPI transaction - not recommended for development, debug & test. 29 | -DZNP_RUN_WDOG=FALSE 30 | 31 | -DZIGBEEPRO 32 | -DZIGBEE_FRAGMENTATION 33 | -DINTER_PAN 34 | -DOSAL_CLOCK 35 | -DOSAL_SAPI=FALSE 36 | -DSAPI_CB_FUNC=FALSE 37 | 38 | -DHOLD_AUTO_START 39 | -DNV_RESTORE 40 | -DNV_INIT 41 | -DNUM_DISC_ATTEMPTS=0 42 | 43 | //-DSRC_RTG_EXPIRY_TIME=255 44 | //-DCONCENTRATOR_ENABLE=TRUE 45 | //-DCONCENTRATOR_DISCOVERY_TIME=60 46 | //-DMAX_RTG_SRC_ENTRIES=100 47 | 48 | // Define these flags to enable ZNP support of the ZCL_KEY_ESTABLISHMENT_ENDPOINT and task. 49 | //-DTC_LINKKEY_JOIN 50 | //-DZNP_ZCL 51 | 52 | /* 53 | * Monitor Test Interface 54 | */ 55 | 56 | /* MT_UTIL interface */ 57 | -DMT_UTIL_FUNC 58 | 59 | /* MT_SYS interface */ 60 | -DMT_SYS_FUNC 61 | 62 | /* MT_AF interface */ 63 | -DMT_AF_FUNC 64 | 65 | /* MT_SAPI Interface */ 66 | -DMT_SAPI_FUNC 67 | -DMT_SAPI_CB_FUNC 68 | 69 | /* MT_ZDO interface */ 70 | -DMT_ZDO_CB_FUNC 71 | -DMT_ZDO_FUNC 72 | -DMT_ZDO_MGMT 73 | 74 | /* MT_APP interface - useful when ZAP defines ZAP_ZNP_MT for MT_SYS_APP_MSG pass-through. */ 75 | -DMT_APP_FUNC -------------------------------------------------------------------------------- /Projects/zstack/ZMain/TI2530DB/OnBoard.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zigbee-door/zigbee-zstack/967446d115ab04b04090ad3d119e4f1ba10c7b30/Projects/zstack/ZMain/TI2530DB/OnBoard.c -------------------------------------------------------------------------------- /Projects/zstack/ZMain/TI2530DB/OnBoard.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zigbee-door/zigbee-zstack/967446d115ab04b04090ad3d119e4f1ba10c7b30/Projects/zstack/ZMain/TI2530DB/OnBoard.h -------------------------------------------------------------------------------- /Projects/zstack/ZMain/TI2530DB/ZMain.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zigbee-door/zigbee-zstack/967446d115ab04b04090ad3d119e4f1ba10c7b30/Projects/zstack/ZMain/TI2530DB/ZMain.c -------------------------------------------------------------------------------- /Projects/zstack/ZMain/TI2530DB/chipcon_cstartup.s51: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zigbee-door/zigbee-zstack/967446d115ab04b04090ad3d119e4f1ba10c7b30/Projects/zstack/ZMain/TI2530DB/chipcon_cstartup.s51 -------------------------------------------------------------------------------- /Projects/zstack/ZMain/TI2530DB/interrupt_stubs.s51: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zigbee-door/zigbee-zstack/967446d115ab04b04090ad3d119e4f1ba10c7b30/Projects/zstack/ZMain/TI2530DB/interrupt_stubs.s51 -------------------------------------------------------------------------------- /Projects/zstack/ZMain/TI2530ZNP/OnBoard.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zigbee-door/zigbee-zstack/967446d115ab04b04090ad3d119e4f1ba10c7b30/Projects/zstack/ZMain/TI2530ZNP/OnBoard.c -------------------------------------------------------------------------------- /Projects/zstack/ZMain/TI2530ZNP/OnBoard.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zigbee-door/zigbee-zstack/967446d115ab04b04090ad3d119e4f1ba10c7b30/Projects/zstack/ZMain/TI2530ZNP/OnBoard.h -------------------------------------------------------------------------------- /Projects/zstack/ZMain/TI2530ZNP/ZMain.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zigbee-door/zigbee-zstack/967446d115ab04b04090ad3d119e4f1ba10c7b30/Projects/zstack/ZMain/TI2530ZNP/ZMain.c -------------------------------------------------------------------------------- /Projects/zstack/ZMain/TI2530ZNP/chipcon_cstartup.s51: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zigbee-door/zigbee-zstack/967446d115ab04b04090ad3d119e4f1ba10c7b30/Projects/zstack/ZMain/TI2530ZNP/chipcon_cstartup.s51 -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # zigbee-zstack 2 | 3 | ## 目录 4 | 5 | ```javascript 6 | 7 | . 8 | ├── Projects/zstack # 用户自定义 9 | │ ├── Samples/ZigbeeZstack/Source # 源代码 10 | │ │ └── App # Zstack协议(应用层) 11 | │     │      ├── Lock         # 门锁应用 12 | │     |      |   ├── Drivers                # 门锁驱动层 13 | │     |      |   ├── Devices                # 门锁设备层 14 | │     |      |   ├── AppsL # 门锁应用低层 15 | │     |     |   └── AppsH # 门锁引用高层 16 | │     │      └── Base           # 基站应用 17 | │ ├── Tools # 配置文件 18 | │ └── ZMain # 启动程序 19 | └── Components # Ti公司定义 20 | ├── hal # 硬件驱动 21 | ├── mac # MAC层 22 | ├── mt # 串口通信 23 | ├── osal # 操作系统 24 | ├── services # 地址处理 25 | ├── stack # Zstack协议(网络层、AF射频、ZDO等) 26 | └── zmac # MAC层 27 | ``` 28 | 29 | 30 | 31 | ## 预编译项 32 | 33 | 34 | 35 | | 预编译项        |     说明 | 36 | | :-------- | :--------| 37 | | BASE        | 基站程序的编译项 | 38 | | BASE_UART        | 使用基站自己编写的uart驱动,去掉则使用Z-Stack的uart驱动(自带的可以当作串口调试用) | 39 | | LOCK      | 门锁程序的编译项 | 40 | 41 | >提示:由于使用了一个工程,除了Zstack协议(应用层)不同,Components都使用了同一个,所以对于基站和门锁都在Components修改了不一样的LED等驱动,所以需要根据预编译项进行驱动。 42 | 43 | 44 | 45 | 46 | ## 门锁硬件配置 47 | 48 | | 端口或定时器     |     普通IO口或外设 | 方向 | 说明 | Z-Stack | 49 | | :-------- | :-------- |:-------- |:-------- |:-------- | 50 | | P1_5         | GPIO | 输出 | LED | 修改了LED配置,默认三个LED,都配置成P1_5 | 51 | | P2_0         | GPIO | 上拉输出 | 蜂鸣器引脚 | 在Z-Stack中默认是摇杆按键,这里配置修改 | 52 | | P0_1         | GPIO | 上拉输入 | 钥匙开门 | 修改了BUTTON配置,默认轮询扫描按键,配置成下降沿触发中断 | 53 | | P0_4         | GPIO | 上拉输入 | 锁扣 | 修改了BUTTON配置,默认轮询扫描按键,配置成下降沿触发中断 | 54 | | P0_5         | GPIO | 上拉输入 | 反锁 | - | 55 | | P0_6、P0_7、P1_0、P1_1 | GPIO | 输出或输入 | 电机H桥 | - | 56 | | P1_2、P1_3 | GPIO | 输出或输入 | EEPROM、时钟 | - | 57 | | P1_2、P1_3、P0_2、P0_3、P1_7 | GPIO | 输出或输入 | RFID读卡器 | 这里有端口和串口的外设端口冲突,覆盖了Z-Stack串口配置 | 58 | | T4定时器       | 外设 | 输出 | 蜂鸣器引脚 | 覆盖了默认的Z-Stack定时器配置 | 59 | | Adc       | 模拟外设 | AIN0输入 | 电池电量检测 | - | 60 | 61 | 62 | ## Zigbee网络参数配置 63 | 64 | 65 | | 类型    |     配置 | 说明 | 66 | | :-------- | :-------- |:-------- | 67 | | -DDEFAULT_CHANLIST=0x00008000 // 15 - 0x0F       | 信道配置 | 所有的设备包括协调器(基站)和终端设备(门锁)都配置成15信道,该信道还可以避免与Wi-Fi信号频段的冲突 | 68 | | -DZDAPP_CONFIG_PAN_ID=0xFFF1         | PAN ID | 一个网络的唯一标识符,由于多个楼层可能会组建多个星型网络,所以每一个网络的PAN ID标识符可以设置不同,需要注意的是,基站和门锁最好一层楼一个PAN ID(一层楼一个网络) | 69 | | -DBEACON_REQUEST_DELAY=10000         | 信标请求帧发送周期 | 终端设备(门锁)在未找到合适的网络协调器(基站)时,也就是未入网时,会不停的周期性发送信标请求帧,这个时间不应该很短,这个参数对低功耗设计有很大作用 | 70 | | -DBEACON_REQ_DELAY_MASK=0x0FFF         | 信标请求帧周期随机码 | 配合DBEACON_REQUEST_DELAY可以使信标请求帧的发送周期在10000ms-140095ms内的随机数 | 71 | | -DRFD_RCVC_ALWAYS_ON=FALSE        | MAC层休眠关闭 | 这个参数对于终端设备的休眠非常重要,如果要配置成休眠模式,必须设置为FLASE,使协议栈的MAC层在休眠时也关闭 | 72 | | -DPOLL_RATE=1000         | 数据请求帧发送周期 | 当终端设备成功请求入网后,由于可能出在休眠模式导致协调器发送的数据无法接受,所以会主动发送数据请求帧告诉协调器当前处在可以接收射频消息的活跃状态,需要注意的是这个值变大可以降低功耗,但是消息接收的灵敏度下降,默认设置1s寻求一次数据。 | 73 | | -DQUEUED_POLL_RATE=100         | 暂时不清楚 | 使用默认设置 | 74 | | -DRESPONSE_POLL_RATE=100         | 暂时不清楚 | 使用默认设置 | 75 | | -DREJOIN_POLL_RATE=440         | 暂时不清楚 | 使用默认设置 | 76 | 77 | 78 | >提示:配置大部分都在Tools/f8wConfig.cfg文件中。 79 | 80 | 81 | 82 | ## 问题 83 | | 问题类型         |     说明 | 84 | | :-------- | :--------| 85 | | Flash         | Z-Stack配置的spi_flash.c经常阻塞程序运行等待什么东西,HalFlashWriteTrigger()被我注释。 | 86 | | EEPROM         | EEPROM在存储和读取数据的时,需要注意在Z-Stack中不能存储后立马读取,需要一定的延时,具体原因未知。追加:进行for循环轮询读取连续地址的数据或写入连续地址的数据时候要在每一条操作后面跟一个5ms的延时! | 87 | | RFID        | 需要注意在Z-Stack里有些端口被用作外设功能,如果要覆盖掉Z-Stack的配置,应该将端口用作普通IO或者外设功能的端口设置一下,这里模拟SPI时序一直出不来,就是因为有端口被用作外设而不是普通IO口,所以一直出问题,对于问题,可以先裸机跑,然后用排除法看是哪里出了问题。 | 88 | | LED(门锁)      | 门锁作为终端节点,在加入网络并离开网络成为孤儿设备后,会不停的闪烁LED灯,这里将LED灯闪烁去掉,在HalLedSet设置,需要注意的是后期如果还有不明的闪烁LED情况,可以注释掉这个函数查看报错的地方,这样可以知道所有调用这个函数的地方。 | 89 | | LED(基站)      | 基站在启动的时候LED3灯亮,表明协调器启动,这里注释不用,如果以后在遇到灯的问题可以注释HAL_LED_3查看哪里对灯做了操作(报错的地方都是使用了HAL_LED_3的地方) | 90 | | 低功耗设置      | 低功耗设置好像有问题,需要深入了解 | 91 | 92 | 93 | 94 | ## 进度 95 | | 日期 | 进度 | 96 | | :-------- | :--------| 97 | | 2016/12/13 | Z-Stack工程的建立,加入了基站和门锁的应用层程序。 | 98 | | 2016/12/14 | 门锁低功耗模式,设计为PM2功耗模式,采用休眠-唤醒-休眠的工作模式。每1s向基站发送data request,获取基站的命令数据。 | 99 | | 2016/12/15 | 设置门锁离线定时程序,每隔1s启动离线程序,修改了LED底层驱动,目前只是实现了LED 1s闪烁,后期需要加入RFID读卡程序。 | 100 | | 2016/12/16 | 修改底层按键硬件驱动,测试了按键的轮询扫描模式和中断触发模式成功,最后使用中断模式,轮询扫描模式每隔100ms扫描按键有无按下,效率低反应慢。 | 101 | | 2016/12/17 | 添加了延时函数和蜂鸣器应用。 | 102 | | 2016/12/18 | 添加了i2c驱动程序,添加了电机端口驱动程序,添加了电机设备程序,添加了EEPROM存储和读取程序,可以做到开门电机正反转和蜂鸣器LED提示音效果,配置了锁扣的中断触发初始化程序,可以做到检测开门动作并及时关门处理。 | 103 | | 2016/12/19 | 添加了门锁反锁识别,添加了RFID刷卡读写卡程序,可以利用RFID卡开门。 | 104 | | 2016/12/20 | 修改了EEPROM读取数据的BUG,添加了RFID卡的权限功能,包括普通进出卡,授权卡,删权卡,总卡等,可以对门锁进行离线的授权和删权以及初始化处理,增加了普通卡列表存储,保存在EEPROM中。对Z-Stack中信道的修改和信标帧的请求周期做了测试,并利用Packet Sniffer抓包工具对网络的建立过程进行了深入分析。 | 105 | | 2016/12/21 | 改写了基站的LED驱动,增加了基站的串口驱动,实现了基站和门锁之间的广播和点播通信,利用串口助手增加了点对点通信数据丢包率的测试,明天可以根据地形、距离和电池电量进行丢包率测试。 | 106 | | 2016/12/22 | 使用两把门锁点对点通信的方式实现和基站的通信,进行了丢包率测试,分别测试了10,15,20,25,30,35,40米平均三次,每次发送100帧数据,每帧数据3s发送一次,丢包率测试情况,正对的测试效果好,侧对的效果略差,误差率一般都在2%以内。 | 107 | | 2016/12/23 | 基站添加了关联表用来关联连接的门锁设备信息,基站实现了通过网络地址点对点发送数据给门锁,基站添加了串口驱动程序,实现了TCP客户端和上位机Node的Tcp服务端通信。 | 108 | | 2016/12/26 | 基站通讯串口通讯协议程序实现,添加了新的应用层任务,用于触发接收到正确的上位机数据帧命令。 | 109 | | 2016/12/27 | 通过tcp命令获取基站关联列表 | 110 | | 2016/12/28 | 反馈基站的门锁关联列表数据给tcp服务器,通过接接收上位机的命令发送点播信息给门锁,门锁开门并通过点播信息给协调器(基站)反馈开门命令信息| 111 | | 2016/12/29 | 添加Adc配置,检测电池电量,上传给上位机,开门时上传电池电量和信号强度 | 112 | | 2017/01/04 | 低功耗开启?需要强化设计低功耗! | --------------------------------------------------------------------------------