mirror of
https://github.com/pvvx/rtl00TstMinAmebaV35a.git
synced 2024-11-24 10:24:14 +00:00
150 lines
4.2 KiB
C
150 lines
4.2 KiB
C
/**
|
|
******************************************************************************
|
|
*This file contains general configurations for ameba platform
|
|
******************************************************************************
|
|
*/
|
|
|
|
#ifndef __PLATFORM_OPTS_H__
|
|
#define __PLATFORM_OPTS_H__
|
|
|
|
/*For MP mode setting*/
|
|
#define SUPPORT_MP_MODE 1
|
|
|
|
/**
|
|
* For AT cmd Log service configurations
|
|
*/
|
|
#define SUPPORT_LOG_SERVICE 1
|
|
#if SUPPORT_LOG_SERVICE
|
|
#define LOG_SERVICE_BUFLEN 100 //can't larger than UART_LOG_CMD_BUFLEN(127)
|
|
#define CONFIG_LOG_HISTORY 0
|
|
#if CONFIG_LOG_HISTORY
|
|
#define LOG_HISTORY_LEN 5
|
|
#endif
|
|
#define SUPPORT_INTERACTIVE_MODE 0//on/off wifi_interactive_mode
|
|
#define CONFIG_LOG_SERVICE_LOCK 0
|
|
#endif
|
|
|
|
/**
|
|
* For interactive mode configurations, depends on log service
|
|
*/
|
|
#if SUPPORT_INTERACTIVE_MODE
|
|
#define CONFIG_INTERACTIVE_MODE 1
|
|
#define CONFIG_INTERACTIVE_EXT 0
|
|
#else
|
|
#define CONFIG_INTERACTIVE_MODE 0
|
|
#define CONFIG_INTERACTIVE_EXT 0
|
|
#endif
|
|
|
|
/**
|
|
* For FreeRTOS tickless configurations
|
|
*/
|
|
#define FREERTOS_PMU_TICKLESS_PLL_RESERVED 0 // In sleep mode, 0: close PLL clock, 1: reserve PLL clock
|
|
#define FREERTOS_PMU_TICKLESS_SUSPEND_SDRAM 1 // In sleep mode, 1: suspend SDRAM, 0: no act
|
|
|
|
/******************************************************************************/
|
|
|
|
/**
|
|
* For common flash usage
|
|
*/
|
|
#define AP_SETTING_SECTOR 0x000FE000
|
|
#define UART_SETTING_SECTOR 0x000FC000
|
|
#define FAST_RECONNECT_DATA (0x80000 - 0x1000)
|
|
|
|
/**
|
|
* For Wlan configurations
|
|
*/
|
|
#define CONFIG_WLAN 1
|
|
#if CONFIG_WLAN
|
|
#define CONFIG_LWIP_LAYER 1
|
|
#define CONFIG_INIT_NET 1 //init lwip layer when start up
|
|
#define CONFIG_WIFI_IND_USE_THREAD 0 // wifi indicate worker thread
|
|
|
|
//on/off relative commands in log service
|
|
#define CONFIG_SSL_CLIENT 0
|
|
#define CONFIG_WEBSERVER 0
|
|
#define CONFIG_OTA_UPDATE 1
|
|
#define CONFIG_BSD_TCP 1//NOTE : Enable CONFIG_BSD_TCP will increase about 11KB code size
|
|
#define CONFIG_AIRKISS 0//on or off tencent airkiss
|
|
#define CONFIG_UART_SOCKET 0
|
|
#define CONFIG_UART_XMODEM 0//support uart xmodem upgrade or not
|
|
#define CONFIG_TRANSPORT 0//on or off the at command for transport socket
|
|
|
|
/* For WPS and P2P */
|
|
#define CONFIG_ENABLE_WPS 0
|
|
#define CONFIG_ENABLE_P2P 0
|
|
#if CONFIG_ENABLE_P2P
|
|
#define CONFIG_ENABLE_WPS_AP 1
|
|
#undef CONFIG_WIFI_IND_USE_THREAD
|
|
#define CONFIG_WIFI_IND_USE_THREAD 1
|
|
#endif
|
|
#if (CONFIG_ENABLE_P2P && ((CONFIG_ENABLE_WPS_AP == 0) || (CONFIG_ENABLE_WPS == 0)))
|
|
#error "If CONFIG_ENABLE_P2P, need to define CONFIG_ENABLE_WPS_AP 1"
|
|
#endif
|
|
|
|
|
|
/* For Simple Link */
|
|
#define CONFIG_INCLUDE_SIMPLE_CONFIG 1
|
|
|
|
/*For wowlan service settings*/
|
|
#define CONFIG_WOWLAN_SERVICE 0
|
|
|
|
#endif //end of #if CONFIG_WLAN
|
|
/*******************************************************************************/
|
|
|
|
/**
|
|
* For Ethernet configurations
|
|
*/
|
|
#define CONFIG_ETHERNET 0
|
|
#if CONFIG_ETHERNET
|
|
|
|
#define CONFIG_LWIP_LAYER 1
|
|
#define CONFIG_INIT_NET 1 //init lwip layer when start up
|
|
|
|
//on/off relative commands in log service
|
|
#define CONFIG_SSL_CLIENT 0
|
|
#define CONFIG_BSD_TCP 0//NOTE : Enable CONFIG_BSD_TCP will increase about 11KB code size
|
|
|
|
#endif
|
|
|
|
|
|
/**
|
|
* For iNIC configurations
|
|
*/
|
|
#ifdef CONFIG_INIC //this flag is defined in IAR project
|
|
#define CONFIG_INIC_EN 1//enable iNIC mode
|
|
#undef CONFIG_ENABLE_WPS
|
|
#define CONFIG_ENABLE_WPS 1
|
|
#undef CONFIG_INCLUDE_SIMPLE_CONFIG
|
|
#define CONFIG_INCLUDE_SIMPLE_CONFIG 1
|
|
#undef CONFIG_WOWLAN_SERVICE
|
|
#define CONFIG_WOWLAN_SERVICE 1
|
|
#undef LOG_SERVICE_BUFLEN
|
|
#define LOG_SERVICE_BUFLEN 256
|
|
#undef CONFIG_LWIP_LAYER
|
|
#define CONFIG_LWIP_LAYER 0
|
|
#undef CONFIG_OTA_UPDATE
|
|
#define CONFIG_OTA_UPDATE 0
|
|
#undef CONFIG_EXAMPLE_WLAN_FAST_CONNECT
|
|
#define CONFIG_EXAMPLE_WLAN_FAST_CONNECT 0
|
|
#define CONFIG_INIC_SDIO_HCI 1 //for SDIO or USB iNIC
|
|
#define CONFIG_INIC_USB_HCI 0
|
|
#define CONFIG_INIC_CMD_RSP 1 //need to return msg to host
|
|
#endif
|
|
/******************End of iNIC configurations*******************/
|
|
|
|
/* For UART Module AT command example */
|
|
#define CONFIG_EXAMPLE_UART_ATCMD 1
|
|
#if CONFIG_EXAMPLE_UART_ATCMD
|
|
#undef FREERTOS_PMU_TICKLESS_PLL_RESERVED
|
|
#define FREERTOS_PMU_TICKLESS_PLL_RESERVED 1
|
|
#undef CONFIG_OTA_UPDATE
|
|
#define CONFIG_OTA_UPDATE 1
|
|
#undef CONFIG_TRANSPORT
|
|
#define CONFIG_TRANSPORT 1
|
|
#undef LOG_SERVICE_BUFLEN
|
|
#define LOG_SERVICE_BUFLEN 1600
|
|
#undef CONFIG_LOG_SERVICE_LOCK
|
|
#define CONFIG_LOG_SERVICE_LOCK 1
|
|
#endif
|
|
|
|
#endif
|