mirror of
https://github.com/Utyff/Zintercom.git
synced 2026-01-13 01:37:43 +03:00
fixed the work of inputs and outputs on the target board (button and call) implemented sleep mode in battery mode (end device) power attributes are always advertised, (used only in battery mode) implemented bind to another device (notify about a call to the intercom) minor changes in the code (syntactic)
68 lines
1.5 KiB
C
68 lines
1.5 KiB
C
#define TC_LINKKEY_JOIN
|
|
#define NV_INIT
|
|
#define NV_RESTORE
|
|
|
|
#define TP2_LEGACY_ZC
|
|
// patch sdk
|
|
//#define ZDSECMGR_TC_ATTEMPT_DEFAULT_KEY TRUE
|
|
|
|
#define NWK_AUTO_POLL
|
|
#define MULTICAST_ENABLED FALSE
|
|
|
|
#define ZCL_READ
|
|
#define ZCL_WRITE
|
|
#define ZCL_BASIC
|
|
#define ZCL_IDENTIFY
|
|
#define ZCL_REPORTING_DEVICE
|
|
#define ZCL_ON_OFF
|
|
|
|
#define DISABLE_GREENPOWER_BASIC_PROXY
|
|
#define BDB_FINDING_BINDING_CAPABILITY_ENABLED 1
|
|
#define BDB_REPORTING TRUE
|
|
|
|
|
|
#define HAL_BUZZER FALSE
|
|
#define HAL_KEY TRUE
|
|
#define ISR_KEYINTERRUPT
|
|
|
|
|
|
|
|
#define HAL_LED TRUE
|
|
#define HAL_LCD FALSE
|
|
|
|
#define BLINK_LEDS TRUE
|
|
|
|
|
|
#if !defined(HAL_BOARD_TARGET) && !defined(HAL_BOARD_CHDTECH_DEV)
|
|
#error "Board type must be defined"
|
|
#endif
|
|
|
|
#if defined( ZIC_BATTERY_MODE )
|
|
#define POWER_SAVING
|
|
#endif
|
|
|
|
#if defined( HAL_BOARD_TARGET )
|
|
#define HAL_KEY_P0_INPUT_PINS BV(0)
|
|
#define HAL_KEY_P0_INPUT_PINS_EDGE HAL_KEY_RISING_EDGE
|
|
#define HAL_KEY_P2_INPUT_PINS BV(0)
|
|
#define HAL_KEY_P2_INPUT_PINS_EDGE HAL_KEY_FALLING_EDGE
|
|
#define INT_HEAP_LEN 2256
|
|
#elif defined( HAL_BOARD_CHDTECH_DEV )
|
|
#define HAL_KEY_P0_INPUT_PINS BV(1)
|
|
#define HAL_KEY_P0_INPUT_PINS_EDGE HAL_KEY_FALLING_EDGE
|
|
#define HAL_KEY_P2_INPUT_PINS BV(0)
|
|
#define HAL_KEY_P2_INPUT_PINS_EDGE HAL_KEY_FALLING_EDGE
|
|
#define DO_DEBUG_UART
|
|
#define INT_HEAP_LEN 2060
|
|
#endif
|
|
|
|
#define FACTORY_RESET_HOLD_TIME_LONG 5000
|
|
|
|
#if defined( DO_DEBUG_UART )
|
|
#define HAL_UART_ISR 2
|
|
#define HAL_UART TRUE
|
|
#define HAL_UART_DMA 1
|
|
#endif
|
|
|
|
#include "hal_board_cfg.h"
|