92 lines
3.8 KiB
C
Executable File
92 lines
3.8 KiB
C
Executable File
/****************************************************************************
|
|
|
|
Copyright(c) 2019 by Aerospace C.Power (Chongqing) Microelectronics. ALL RIGHTS RESERVED.
|
|
|
|
This Information is proprietary to Aerospace C.Power (Chongqing) Microelectronics and MAY NOT
|
|
be copied by any method or incorporated into another program without
|
|
the express written consent of Aerospace C.Power. This Information or any portion
|
|
thereof remains the property of Aerospace C.Power. The Information contained herein
|
|
is believed to be accurate and Aerospace C.Power assumes no responsibility or
|
|
liability for its use in any way and conveys no license or title under
|
|
any patent or copyright and makes no representation or warranty that this
|
|
Information is free from patent or copyright infringement.
|
|
|
|
****************************************************************************/
|
|
#ifndef _INCLUDE_DEMO_FUNCTION_DISPLAY_H_
|
|
#define _INCLUDE_DEMO_FUNCTION_DISPLAY_H_
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
#define DEMO_UART_BAUND (115200) /* baud rate */
|
|
#define DEMO_UART_RCV_BUF_LEN 256
|
|
|
|
#define DEMO_INIT_TASK_PRIO 6
|
|
|
|
#define DEMO_LED_LIGHT_UP_FLAG 0
|
|
#define DEMO_LED_LIGHT_DOWN_FLAG 1
|
|
|
|
#define DEMO_LED_TMR_PERIO 225 /* Time in micro-seconds. */
|
|
#define DEMO_LED_BLINK_RX_TM (DEMO_LED_TMR_PERIO)
|
|
#define DEMO_LED_BLINK_TX_TM (DEMO_LED_TMR_PERIO*4) /* 1S */
|
|
#define DEMO_RUN_STAMP_TM (DEMO_LED_TMR_PERIO*120) /* 30S */
|
|
#define DEMO_APP_QUERY_TM (DEMO_LED_TMR_PERIO*8) /* 2S */
|
|
#define DEMO_APP_SAMPL_TM (DEMO_LED_TMR_PERIO*20) /* 5S */
|
|
|
|
#define DEMO_APP_CONNLESS_RETRY_CNT (1) /* Retry cnt for conn less pkt */
|
|
|
|
#define DEMO_APP_DEBUG_EN (1) /* enable data print debug or not */
|
|
#define DEMO_APP_LOG_BUF_LEN (256) /* define the buffer length for
|
|
debug infor printing */
|
|
|
|
#if IOT_LWIP_SUPPORT && PLC_SUPPORT_STA_ROLE
|
|
#if IOT_DEMO_APP_UDP_SERVER_ENABLE
|
|
/* demo app udp server task priority */
|
|
#define DEMO_APP_UDP_SERVER_TASK_PRIO (6)
|
|
/* udp server port for ipv4 & ipv6 */
|
|
#define UDP_SERVER_PORT (49153)
|
|
#define UDP6_SERVER_PORT (49154)
|
|
/* udp server recv buffer len for ipv4 & ipv6 */
|
|
#define DEMO_APP_UDP_DATA_BUF_LEN (1024)
|
|
#define DEMO_APP_UDP6_DATA_BUF_LEN (1024)
|
|
#endif /* IOT_DEMO_APP_UDP_SERVER_ENABLE */
|
|
|
|
#if IOT_DEMO_APP_TCP_SERVER_ENABLE
|
|
/* demo app udp server task priority */
|
|
#define DEMO_APP_TCP_SERVER_TASK_PRIO (6)
|
|
#define DEMO_APP_INVALID_TCP_CONN_ID (-1)
|
|
/* tcp server port for ipv4 & ipv6 */
|
|
#define TCP_SERVER_PORT (49155)
|
|
#define TCP6_SERVER_PORT (49156)
|
|
/* tcp server recv buffer len for ipv4 & ipv6 */
|
|
#define DEMO_APP_TCP_DATA_BUF_LEN (1024)
|
|
#define DEMO_APP_TCP6_DATA_BUF_LEN (1024)
|
|
#endif /* IOT_DEMO_APP_TCP_SERVER_ENABLE */
|
|
|
|
/* timer period to query network state before tcp/udp server can be started */
|
|
#define DEMO_APP_NET_TMR_PERIOD (1000)
|
|
|
|
#endif /* IOT_LWIP_SUPPORT && PLC_SUPPORT_STA_ROLE */
|
|
|
|
/* timer period to print core temperature. unit is ms */
|
|
#define DEMO_APP_TEMP_PRINT_TMR_PERIOD (5000)
|
|
/* timer period to check associated sta. unit is ms */
|
|
#define DEMO_APP_ASSOC_CHECK_TMR_PERIOD (1000)
|
|
/* minimum count of tmr period wait for sta to associate */
|
|
#define DEMO_APP_MIN_ASSOC_PERIODS (20)
|
|
/* medium count of tmr period wait for sta to associate */
|
|
#define DEMO_APP_MED_ASSOC_PERIODS (60)
|
|
/* maximum count of tmr period wait for sta to associate */
|
|
#define DEMO_APP_MAX_ASSOC_PERIODS (120)
|
|
/* count of whitelist entries to retrieve */
|
|
#define DEMO_APP_WL_QR_CNT (200)
|
|
/* size of bitmap. unit is byte */
|
|
#define DEMO_APP_BIT_MAP_SIZE (IOT_APP_WL_PIB_ADDR_CNT/8+1)
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif
|