diff --git a/builder/frameworks/beken-72xx-sdk.py b/builder/frameworks/beken-72xx-sdk.py index f6e152a..677dade 100644 --- a/builder/frameworks/beken-72xx-sdk.py +++ b/builder/frameworks/beken-72xx-sdk.py @@ -75,10 +75,7 @@ env.Append( ("MBEDTLS_CONFIG_FILE", r"\"tls_config.h\""), ("WIFI_BLE_COEXIST", "1"), ("WOLFSSL_BEKEN", env.Cfg("CFG_WPA3")), - # LwIP options - ("LWIP_SO_RCVBUF", "1"), # for ioctl(FIONREAD) "MBEDTLS_KEY_EXCHANGE__SOME__PSK_ENABLED", - # FreeRTOS options ("INCLUDE_xTaskGetHandle", "1"), ], ASFLAGS=[ diff --git a/builder/frameworks/realtek-ambz-sdk.py b/builder/frameworks/realtek-ambz-sdk.py index ab8f0f2..4040f7b 100644 --- a/builder/frameworks/realtek-ambz-sdk.py +++ b/builder/frameworks/realtek-ambz-sdk.py @@ -46,15 +46,6 @@ env.Append( # other options "M3", "CONFIG_PLATFORM_8711B", - # LwIP options - ("LWIP_TIMEVAL_PRIVATE", "0"), - ("LWIP_NETIF_HOSTNAME", "1"), # to support hostname changing - ("LWIP_SO_RCVBUF", "1"), # for ioctl(FIONREAD) - ("ip_addr", "ip4_addr"), # LwIP 2.0.x compatibility - ("ip_addr_t", "ip4_addr_t"), # LwIP 2.0.x compatibility - ("IN_ADDR_T_DEFINED", "1"), - ("in_addr_t", "u32_t"), - ("INT_MAX", "2147483647"), # for RECV_BUFSIZE_DEFAULT ("ERRNO", "1"), # for LwIP "MBEDTLS_KEY_EXCHANGE__SOME__PSK_ENABLED", # enable PSK in mbedTLS # "MBEDTLS_DEBUG_C", diff --git a/builder/utils/env.py b/builder/utils/env.py index a81de96..11df221 100644 --- a/builder/utils/env.py +++ b/builder/utils/env.py @@ -53,6 +53,8 @@ def env_add_defaults(env, platform, board): "$LT_DIR/platform/common/fixups", "$LT_DIR/platform/common/fixups/lib_inc", "$BOARD_DIR", + "$FAMILY_DIR/config", + "$PARENT_DIR/config", "$FAMILY_DIR/fixups", "$PARENT_DIR/fixups", "$FAMILY_DIR/fixups/inc", diff --git a/docs/supported_families.md b/docs/supported_families.md index ad53839..4bc4697 100644 --- a/docs/supported_families.md +++ b/docs/supported_families.md @@ -1,13 +1,13 @@ -Title | Name (parent) | Code | Short name & ID | Arduino Core | Source SDK ---------------------------------------------------------------------|------------------------------|----------------------|-------------------------|--------------|---------------------------------------------------------------------------------- -Realtek Ameba1 | `-` | `-` | `RTL8710A` (0x9FFFD543) | ❌ | - -[Realtek AmebaZ](https://www.amebaiot.com/en/amebaz/) | `realtek-ambz` | `ambz` | `RTL8710B` (0x22E0D6FC) | ✔️ | `framework-realtek-amb1` ([amb1_sdk](https://github.com/ambiot/amb1_sdk)) -Realtek AmebaZ2 | `-` | `-` | `RTL8720C` (0xE08F7564) | ❌ | - -Realtek AmebaD | `-` | `-` | `RTL8720D` (0x3379CFE2) | ❌ | - -[Beken 7231T](http://www.bekencorp.com/en/goods/detail/cid/7.html) | `beken-7231t` (`beken-72xx`) | `bk7231t` (`bk72xx`) | `BK7231T` (0x675A40B0) | ✔️ | `framework-beken-bdk` ([bdk_freertos](https://github.com/bekencorp/bdk_freertos)) -[Beken 7231N](http://www.bekencorp.com/en/goods/detail/cid/39.html) | `beken-7231n` (`beken-72xx`) | `bk7231n` (`bk72xx`) | `BK7231N` (0x7B3EF230) | ✔️ | `framework-beken-bdk` ([bdk_freertos](https://github.com/bekencorp/bdk_freertos)) -Boufallo 602 | `-` | `-` | `BL602` (0xDE1270B7) | ❌ | - -Xradiotech 809 | `-` | `-` | `XR809` (0x51E903A8) | ❌ | - -Native host architecture | `host-native` | `native` | `NATIVE` (0xDEADBEEF) | ❌ | - +Title | Name (parent) | Code | Short name & ID | Arduino Core | Source SDK +--------------------------------------------------------------------|--------------------------------|----------------------|-------------------------|--------------|---------------------------------------------------------------------------------- +Realtek Ameba1 | `-` | `-` | `RTL8710A` (0x9FFFD543) | ❌ | - +[Realtek AmebaZ](https://www.amebaiot.com/en/amebaz/) | `realtek-ambz` (`realtek-amb`) | `ambz` (`amb`) | `RTL8710B` (0x22E0D6FC) | ✔️ | `framework-realtek-amb1` ([amb1_sdk](https://github.com/ambiot/amb1_sdk)) +Realtek AmebaZ2 | `-` | `-` | `RTL8720C` (0xE08F7564) | ❌ | - +Realtek AmebaD | `-` | `-` | `RTL8720D` (0x3379CFE2) | ❌ | - +[Beken 7231T](http://www.bekencorp.com/en/goods/detail/cid/7.html) | `beken-7231t` (`beken-72xx`) | `bk7231t` (`bk72xx`) | `BK7231T` (0x675A40B0) | ✔️ | `framework-beken-bdk` ([bdk_freertos](https://github.com/bekencorp/bdk_freertos)) +[Beken 7231N](http://www.bekencorp.com/en/goods/detail/cid/39.html) | `beken-7231n` (`beken-72xx`) | `bk7231n` (`bk72xx`) | `BK7231N` (0x7B3EF230) | ✔️ | `framework-beken-bdk` ([bdk_freertos](https://github.com/bekencorp/bdk_freertos)) +Boufallo 602 | `-` | `-` | `BL602` (0xDE1270B7) | ❌ | - +Xradiotech 809 | `-` | `-` | `XR809` (0x51E903A8) | ❌ | - +Native host architecture | `host-native` | `native` | `NATIVE` (0xDEADBEEF) | ❌ | - diff --git a/families.json b/families.json index 0411599..6370126 100644 --- a/families.json +++ b/families.json @@ -9,7 +9,9 @@ "short_name": "RTL8710B", "description": "Realtek AmebaZ", "name": "realtek-ambz", + "parent": "realtek-amb", "code": "ambz", + "parent_code": "amb", "url": "https://www.amebaiot.com/en/amebaz/", "sdk": "https://github.com/ambiot/amb1_sdk", "framework": "framework-realtek-amb1", diff --git a/platform/beken-7231n/fixups/sys_config.h b/platform/beken-7231n/config/sys_config.h similarity index 100% rename from platform/beken-7231n/fixups/sys_config.h rename to platform/beken-7231n/config/sys_config.h diff --git a/platform/beken-7231t/fixups/sys_config.h b/platform/beken-7231t/config/sys_config.h similarity index 100% rename from platform/beken-7231t/fixups/sys_config.h rename to platform/beken-7231t/config/sys_config.h diff --git a/platform/beken-72xx/fixups/inc/lwipopts.h b/platform/beken-72xx/config/lwipopts.h similarity index 80% rename from platform/beken-72xx/fixups/inc/lwipopts.h rename to platform/beken-72xx/config/lwipopts.h index 9fe300b..da67791 100644 --- a/platform/beken-72xx/fixups/inc/lwipopts.h +++ b/platform/beken-72xx/config/lwipopts.h @@ -6,6 +6,7 @@ #define LWIP_MDNS_RESPONDER 1 #define LWIP_NUM_NETIF_CLIENT_DATA 1 +#define LWIP_SO_RCVBUF 1 // for ioctl(FIONREAD) #define ip_addr ip4_addr #define ip_addr_t ip4_addr_t diff --git a/platform/beken-72xx/fixups/inc/param_config.h b/platform/beken-72xx/config/param_config.h similarity index 100% rename from platform/beken-72xx/fixups/inc/param_config.h rename to platform/beken-72xx/config/param_config.h diff --git a/platform/realtek-amb/config/build_info.h b/platform/realtek-amb/config/build_info.h new file mode 100644 index 0000000..bebb18f --- /dev/null +++ b/platform/realtek-amb/config/build_info.h @@ -0,0 +1,17 @@ +#pragma once + +#define RTL_FW_COMPILE_TIME "20020/01/01-00:00:00" +#define RTL_FW_COMPILE_DATE "20200101" +#define UTS_VERSION "2020/01/01-00:00:00" +#define RTL8195AFW_COMPILE_TIME "2020/01/01-00:00:00" +#define RTL8195AFW_COMPILE_DATE "2020/01/01" +#define RTL8195AFW_COMPILE_BY "root" +#define RTL8195AFW_COMPILE_HOST "localhost" +#define RTL8195AFW_COMPILE_DOMAIN "localhost" +#define RTL8195AFW_COMPILER "gcc" +#define RTL8710CFW_COMPILE_TIME "2020/01/01-00:00:00" +#define RTL8710CFW_COMPILE_DATE "20200101" +#define RTL8710CFW_COMPILE_BY "root" +#define RTL8710CFW_COMPILE_HOST "localhost" +#define RTL8710CFW_COMPILE_DOMAIN "localhost" +#define RTL8710CFW_COMPILER "gcc" diff --git a/platform/realtek-amb/config/lwipopts.h b/platform/realtek-amb/config/lwipopts.h new file mode 100644 index 0000000..e16e540 --- /dev/null +++ b/platform/realtek-amb/config/lwipopts.h @@ -0,0 +1,18 @@ +/* Copyright (c) Kuba Szczodrzyński 2022-07-20. */ + +#pragma once + +#define LWIP_TIMEVAL_PRIVATE 0 +#define LWIP_NETIF_HOSTNAME 1 // to support hostname changing +#define LWIP_SO_RCVBUF 1 // for ioctl(FIONREAD) + +#include_next "lwipopts.h" + +#define ip_addr ip4_addr // LwIP 2.0.x compatibility +#define ip_addr_t ip4_addr_t // LwIP 2.0.x compatibility +#define in_addr_t u32_t +#define IN_ADDR_T_DEFINED 1 + +#ifndef INT_MAX +#define INT_MAX 2147483647 // for RECV_BUFSIZE_DEFAULT +#endif diff --git a/platform/realtek-ambz/fixups/inc/main.h b/platform/realtek-amb/config/main.h similarity index 100% rename from platform/realtek-ambz/fixups/inc/main.h rename to platform/realtek-amb/config/main.h diff --git a/platform/realtek-ambz/fixups/inc/FreeRTOSConfig.h b/platform/realtek-ambz/config/FreeRTOSConfig.h similarity index 100% rename from platform/realtek-ambz/fixups/inc/FreeRTOSConfig.h rename to platform/realtek-ambz/config/FreeRTOSConfig.h diff --git a/platform/realtek-ambz/config/autoconf.h b/platform/realtek-ambz/config/autoconf.h new file mode 100644 index 0000000..ad291e9 --- /dev/null +++ b/platform/realtek-ambz/config/autoconf.h @@ -0,0 +1,5 @@ +/* Copyright (c) Kuba Szczodrzyński 2022-07-20. */ + +#pragma once + +#include_next "autoconf.h" diff --git a/platform/realtek-ambz/fixups/inc/lwipopts.h b/platform/realtek-ambz/config/lwipopts.h similarity index 100% rename from platform/realtek-ambz/fixups/inc/lwipopts.h rename to platform/realtek-ambz/config/lwipopts.h diff --git a/platform/realtek-ambz/fixups/inc/platform_autoconf.h b/platform/realtek-ambz/config/platform_autoconf.h similarity index 100% rename from platform/realtek-ambz/fixups/inc/platform_autoconf.h rename to platform/realtek-ambz/config/platform_autoconf.h diff --git a/platform/realtek-ambz/fixups/inc/platform_opts.h b/platform/realtek-ambz/config/platform_opts.h similarity index 100% rename from platform/realtek-ambz/fixups/inc/platform_opts.h rename to platform/realtek-ambz/config/platform_opts.h diff --git a/platform/realtek-ambz/fixups/inc/autoconf.h b/platform/realtek-ambz/fixups/inc/autoconf.h deleted file mode 100644 index 6a3969d..0000000 --- a/platform/realtek-ambz/fixups/inc/autoconf.h +++ /dev/null @@ -1,508 +0,0 @@ -#ifndef WLANCONFIG_H -#define WLANCONFIG_H - -/* - * Include user defined options first. Anything not defined in these files - * will be set to standard values. Override anything you dont like! - */ - #if defined(CONFIG_PLATFORM_8195A) || defined(CONFIG_PLATFORM_8711B) || defined(CONFIG_HARDWARE_8188F) -#include "platform_opts.h" -#endif - -#if defined(CONFIG_PLATFORM_8195A) || defined(CONFIG_PLATFORM_8711B) -#define CONFIG_PLATFORM_AMEBA_X -#endif - -#if !defined(CONFIG_PLATFORM_AMEBA_X) -#define PLATFORM_FREERTOS 1 -#define CONFIG_GSPI_HCI -#else -#define CONFIG_LX_HCI -#endif - -#ifndef CONFIG_INIC_EN -#define CONFIG_INIC_EN 0 //For iNIC project -#endif - -#if CONFIG_INIC_EN -#define CONFIG_LWIP_LAYER 0 -#endif - -#define CONFIG_LITTLE_ENDIAN -#define CONFIG_80211N_HT -//#define CONFIG_RECV_REORDERING_CTRL -#define RTW_NOTCH_FILTER 0 -#define CONFIG_EMBEDDED_FWIMG -#define CONFIG_PHY_SETTING_WITH_ODM -#if !defined(CONFIG_PLATFORM_AMEBA_X) -#define CONFIG_ODM_REFRESH_RAMASK -#define HAL_MAC_ENABLE 1 -#define HAL_BB_ENABLE 1 -#define HAL_RF_ENABLE 1 -#endif -#if defined(CONFIG_PLATFORM_AMEBA_X) -/* Patch when dynamic mechanism is not ready */ -//#define CONFIG_DM_PATCH -#endif - -//#define CONFIG_DEBUG -//#define CONFIG_DEBUG_RTL871X -#if defined(CONFIG_PLATFORM_AMEBA_X) - #define CONFIG_MEM_MONITOR MEM_MONITOR_SIMPLE - #define WLAN_INTF_DBG 0 - //#define CONFIG_DEBUG_DYNAMIC - //#define DBG_TX 1 - //#define DBG_XMIT_BUF 1 - //#define DBG_XMIT_BUF_EXT 1 - #define DBG_TX_DROP_FRAME -#else - #define CONFIG_MEM_MONITOR MEM_MONITOR_LEAK - //#define CONFIG_TRACE_SKB - //#define WLAN_INTF_DBG -#endif // CONFIG_PLATFORM_AMEBA_X - -//#define CONFIG_DONT_CARE_TP -//#define CONFIG_HIGH_TP -//#define CONFIG_MEMORY_ACCESS_ALIGNED -#define CONFIG_POWER_SAVING -#ifdef CONFIG_POWER_SAVING - #define CONFIG_IPS - #define CONFIG_LPS - //#define CONFIG_LPS_LCLK - #define CONFIG_LPS_32K - #define TDMA_POWER_SAVING - #define CONFIG_WAIT_PS_ACK -#endif - -#define BAD_MIC_COUNTERMEASURE 1 -#define DEFRAGMENTATION 1 - -#define WIFI_LOGO_CERTIFICATION 0 -#if WIFI_LOGO_CERTIFICATION - #define RX_AGGREGATION 1 - #define RX_AMSDU 1 -#else - #define RX_AGGREGATION 0 - #define RX_AMSDU 0 -#endif - -#if defined(CONFIG_PLATFORM_AMEBA_X) - #if !defined(CONFIG_PLATFORM_8711B) - #define CONFIG_USE_TCM_HEAP 1 /* USE TCM HEAP */ - #endif - #define CONFIG_RECV_TASKLET_THREAD - #define CONFIG_XMIT_TASKLET_THREAD -#else - #define CONFIG_XMIT_THREAD_MODE -#endif // CONFIG_PLATFORM_AMEBA_X -//#define CONFIG_RECV_THREAD_MODE /* Wlan IRQ Polling Mode*/ -//#define CONFIG_ISR_THREAD_MODE_POLLING /* Wlan IRQ Polling Mode*/ - -//1 Chris -#ifndef CONFIG_SDIO_HCI -#define CONFIG_ISR_THREAD_MODE_INTERRUPT /* Wlan IRQ Interrupt Mode*/ -#endif - -#if defined(CONFIG_ISR_THREAD_MODE_POLLING) && defined(CONFIG_ISR_THREAD_MODE_INTERRUPT) -#error "CONFIG_ISR_THREAD_MODE_POLLING and CONFIG_ISR_THREAD_MODE_INTERRUPT are mutually exclusive. " -#endif - -#if defined(CONFIG_PLATFORM_AMEBA_X) -/* CRC DMEM optimized mode consume 1k less SRM memory consumption */ -#define CRC_IMPLEMENTATION_MODE CRC_IMPLEMENTATION_DMEM_OPTIMIZED -#endif - -/* AES DMEM optimized mode comsume 10k less memory compare to - IMEM optimized mode AES_IMPLEMENTATION_IMEM_OPTIMIZED */ -#define AES_IMPLEMENTATION_MODE AES_IMPLEMENTATION_DMEM_OPTIMIZED - -#define USE_SKB_AS_XMITBUF 1 -#if defined(CONFIG_PLATFORM_AMEBA_X) -#define USE_XMIT_EXTBUFF 1 -#else -#define USE_XMIT_EXTBUFF 0 -#endif -#define USE_MUTEX_FOR_SPINLOCK 1 - -// remove function to reduce code -#define NOT_SUPPORT_5G -#define NOT_SUPPORT_RF_MULTIPATH -#define NOT_SUPPORT_VHT -#define NOT_SUPPORT_40M -#define NOT_SUPPORT_80M -#ifndef CONFIG_PLATFORM_8711B -#define NOT_SUPPORT_BBSWING -#endif -#define NOT_SUPPORT_OLD_CHANNEL_PLAN -#define NOT_SUPPORT_BT - -#define CONFIG_WIFI_SPEC 0 -#define CONFIG_FAKE_EFUSE 0 -#if CONFIG_FAKE_EFUSE - #define FAKE_CHIPID CHIPID_8710BN -#endif - -#define CONFIG_AUTO_RECONNECT 1 -#define ENABLE_HWPDN_PIN -#define SUPPORT_SCAN_BUF 1 -#if !defined(CONFIG_PLATFORM_AMEBA_X) -#define BE_I_CUT 1 -#endif - -/* For WPA2 */ -#define CONFIG_INCLUDE_WPA_PSK -#ifdef CONFIG_INCLUDE_WPA_PSK -#define CONFIG_MULTIPLE_WPA_STA -//#define CONFIG_WPA2_PREAUTH -#define PSK_SUPPORT_TKIP 1 -#endif -//#define AP_PSK_SUPPORT_TKIP - -/* For promiscuous mode */ -#define CONFIG_PROMISC - -#define PROMISC_DENY_PAIRWISE 0 - -/* For Simple Link */ -#ifndef CONFIG_INCLUDE_SIMPLE_CONFIG -//#define CONFIG_INCLUDE_SIMPLE_CONFIG 1 -#endif - -// for probe request with custom vendor specific IE -#define CONFIG_CUSTOM_IE - -#if !defined(CONFIG_PLATFORM_AMEBA_X) -/* For multicast */ -#define CONFIG_MULTICAST -#endif - -/* For STA+AP Concurrent MODE */ -#define CONFIG_CONCURRENT_MODE -#ifdef CONFIG_CONCURRENT_MODE - #if defined(CONFIG_PLATFORM_8195A) - #define CONFIG_RUNTIME_PORT_SWITCH - #endif - #if defined(CONFIG_HARDWARE_8188F) - #define NET_IF_NUM 2 - #else - #define NET_IF_NUM ((CONFIG_ETHERNET) + (CONFIG_WLAN) + 1) - #endif -#else - #if defined(CONFIG_HARDWARE_8188F) - #define NET_IF_NUM 1 - #else - #define NET_IF_NUM ((CONFIG_ETHERNET) + (CONFIG_WLAN)) - #endif -#endif - - -/****************** For EAP auth configurations *******************/ -#define CONFIG_TLS 0 -#define CONFIG_PEAP 0 -#define CONFIG_TTLS 0 - -// DO NOT change the below config of EAP -#ifdef PRE_CONFIG_EAP -#undef CONFIG_TLS -#define CONFIG_TLS 1 -#undef CONFIG_PEAP -#define CONFIG_PEAP 1 -#undef CONFIG_TTLS -#define CONFIG_TTLS 1 -#endif - -// enable 1X code in lib_wlan as default (increase 380 bytes) -#define CONFIG_EAP - -#if CONFIG_TLS || CONFIG_PEAP || CONFIG_TTLS -#define EAP_REMOVE_UNUSED_CODE 1 -#endif - -#define EAP_SSL_VERIFY_SERVER - -#if CONFIG_TLS -#define EAP_SSL_VERIFY_CLIENT -#endif - -#if CONFIG_TTLS -#define EAP_MSCHAPv2 -#define EAP_TTLS_MSCHAPv2 -//#define EAP_TTLS_EAP -//#define EAP_TTLS_MSCHAP -//#define EAP_TTLS_PAP -//#define EAP_TTLS_CHAP -#endif -/****************** End of EAP configurations *******************/ - -/* For WPS and P2P */ -#define CONFIG_WPS -#if 0 -#define CONFIG_WPS_AP -#define CONFIG_P2P_NEW -#if (!defined(SUPPORT_SCAN_BUF)||!defined(CONFIG_WPS_AP)) && defined(CONFIG_P2P_NEW) -#error "If CONFIG_P2P_NEW, need to SUPPORT_SCAN_BUF" -#endif -#endif - -#define CONFIG_NEW_SIGNAL_STAT_PROCESS -#define CONFIG_SKIP_SIGNAL_SCALE_MAPPING - -/* For AP_MODE */ -#define CONFIG_AP_MODE -extern unsigned char g_user_ap_sta_num; -#define USER_AP_STA_NUM g_user_ap_sta_num -#if defined(CONFIG_PLATFORM_AMEBA_X) -#define AP_STA_NUM 3 //2014/10/27 modify to 3 -#define USE_DEDICATED_BCN_TX 0 -#if USE_DEDICATED_BCN_TX -#error "WLAN driver for Ameba should not enable USE_DEDICATED_BCN_TX" -#endif -#else -extern unsigned int g_ap_sta_num; -#define AP_STA_NUM 3//g_ap_sta_num -#endif -#ifdef CONFIG_AP_MODE -#if defined(CONFIG_PLATFORM_8195A) - //softap sent qos null0 polling client alive or not - #define CONFIG_AP_POLLING_CLIENT_ALIVE -#endif - #define CONFIG_NATIVEAP_MLME -#if defined(CONFIG_PLATFORM_AMEBA_X) - #define CONFIG_INTERRUPT_BASED_TXBCN -#endif - #ifdef CONFIG_INTERRUPT_BASED_TXBCN - //#define CONFIG_INTERRUPT_BASED_TXBCN_EARLY_INT - #define CONFIG_INTERRUPT_BASED_TXBCN_BCN_OK_ERR - #endif -// #define CONFIG_GK_REKEY -#if !defined(CONFIG_PLATFORM_AMEBA_X) - #define USE_DEDICATED_BCN_TX 1 -#endif -#if CONFIG_INIC_EN -// #define REPORT_STA_EVENT //useless -#endif -#else -#if !defined(CONFIG_PLATFORM_AMEBA_X) - #define USE_DEDICATED_BCN_TX 0 -#endif -#endif - -#if defined(CONFIG_AP_MODE) && defined(CONFIG_GK_REKEY) && !defined(CONFIG_MULTIPLE_WPA_STA) -#error "If CONFIG_GK_REKEY when CONFIG_AP_MODE, need to CONFIG_MULTIPLE_WPA_STA" -#endif - -#if !defined(CONFIG_PLATFORM_AMEBA_X) -#if !defined(CONFIG_AP_MODE) && defined(CONFIG_CONCURRENT_MODE) -#error "If CONFIG_CONCURRENT_MODEE, need to CONFIG_AP_MODE" -#endif -#endif - -/* For efuse or flash config */ -#if defined(CONFIG_PLATFORM_AMEBA_X) - #define CONFIG_RW_PHYSICAL_EFUSE 0 // Mask efuse user blocks - #define CONFIG_HIDE_PROTECT_EFUSE 1 - #define CONFIG_ADAPTOR_INFO_CACHING_FLASH 1 - #define CHECK_FLASH_VALID_MASK 1 - #define CHECK_EFUSE_VALID_MASK 1 - /* For K-free */ -// #if !defined(CONFIG_PLATFORM_8711B) - #define CONFIG_RF_GAIN_OFFSET -// #endif -#endif // CONFIG_PLATFORM_AMEBA_X - -/* For MP_MODE */ -//#define CONFIG_MP_INCLUDED -#ifdef CONFIG_MP_INCLUDED - #define MP_DRIVER 1 - #define CONFIG_MP_IWPRIV_SUPPORT -// #define HAL_EFUSE_MEMORY - #if defined(CONFIG_PLATFORM_AMEBA_X) - #define MP_REG_TEST - #endif -#else - #define MP_DRIVER 0 - #if defined(CONFIG_PLATFORM_8195A) - //Control wifi mcu function - #define CONFIG_LITTLE_WIFI_MCU_FUNCTION_THREAD - #define CONFIG_ODM_REFRESH_RAMASK - //#define CONFIG_ANTENNA_DIVERSITY - //#define CONFIG_BT_COEXIST - #endif -#endif // #ifdef CONFIG_MP_INCLUDED - -#ifdef CONFIG_BT_COEXIST - #undef NOT_SUPPORT_BT - #define CONFIG_BT_MAILBOX - //#define CONFIG_BT_TWO_ANTENNA -#endif - -#if defined(CONFIG_PLATFORM_AMEBA_X) - #if defined(CONFIG_PLATFORM_8195A) - #undef CONFIG_RTL8195A - #define CONFIG_RTL8195A - #endif - #if defined(CONFIG_PLATFORM_8711B) - #ifndef CONFIG_RTL8711B - #define CONFIG_RTL8711B - #endif - #undef CONFIG_ADAPTOR_INFO_CACHING_FLASH - #define CONFIG_ADAPTOR_INFO_CACHING_FLASH 0 - //#undef CONFIG_EAP - //#undef CONFIG_IPS - #define CONFIG_8710B_MOVE_TO_ROM - #define CONFIG_EFUSE_SEPARATE - #define CONFIG_MOVE_PSK_TO_ROM - #define CONFIG_WOWLAN - #define CONFIG_TRAFFIC_PROTECT - #ifdef CONFIG_LPS - #define REKEY_LEAVE_LPS - #endif - #endif -#elif defined(CONFIG_HARDWARE_8188F) -#define CONFIG_RTL8188F -#else -#define CONFIG_RTL8188E -#endif -#define RTL8192C_SUPPORT 0 -#define RTL8192CE_SUPPORT 0 -#define RTL8192CU_SUPPORT 0 -#define RTL8192D_SUPPORT 0 -#define RTL8192DE_SUPPORT 0 -#define RTL8192DU_SUPPORT 0 -#define RTL8723A_SUPPORT 0 -#define RTL8723AU_SUPPORT 0 -#define RTL8723AS_SUPPORT 0 -#define RTL8192E_SUPPORT 0 -#define RTL8812A_SUPPORT 0 -#define RTL8821A_SUPPORT 0 -#define RTL8723B_SUPPORT 0 -#define RTL8195A_SUPPORT 0 -#define RTL8188E_SUPPORT 0 -#define RTL8188F_SUPPORT 0 -#define RTL8711B_SUPPORT 0 -#if defined(CONFIG_PLATFORM_8195A) -#undef RTL8195A_SUPPORT -#define RTL8195A_SUPPORT 1 -#elif defined(CONFIG_PLATFORM_8711B) -#undef RTL8711B_SUPPORT -#define RTL8711B_SUPPORT 1 -#elif defined(CONFIG_HARDWARE_8188F) -#undef RTL8188F_SUPPORT -#define RTL8188F_SUPPORT 1 -#else -#undef RTL8188E_SUPPORT -#define RTL8188E_SUPPORT 1 -#endif - -#define TEST_CHIP_SUPPORT 0 - -#define RTL8188E_FOR_TEST_CHIP 0 -#define RTL8188E_FPGA_TRUE_PHY_VERIFICATION 0 - -// for Debug message -#define DBG 0 -#if defined(CONFIG_PLATFORM_AMEBA_X) -#if(DBG == 0) - #define ROM_E_RTW_MSG 1 - #define ROM_F_RTW_MSG 1 - /* For DM debug*/ - // BB - #define DBG_RX_INFO 1 - #define DBG_DM_DIG 1 // DebugComponents: bit0 - #define DBG_DM_RA_MASK 1 // DebugComponents: bit1 - #define DBG_DM_ANT_DIV 1 // DebugComponents: bit6 - #define DBG_TX_RATE 1 // DebugComponents: bit9 - #define DBG_DM_RA 1 // DebugComponents: bit9 - #define DBG_DM_ADAPTIVITY 1 // DebugComponents: bit17 - // RF - #define DBG_PWR_TRACKING 1 // DebugComponents: bit24 - #define DBG_RF_IQK 1 // DebugComponents: bit26 - // Common - #define DBG_PWR_INDEX 1 // DebugComponents: bit30 -#endif -#endif - -/* For DM support */ -#if defined(CONFIG_RTL8188F) -#define RATE_ADAPTIVE_SUPPORT 0 -#elif defined(CONFIG_PLATFORM_8711B) -#define RATE_ADAPTIVE_SUPPORT 0 -#define CONFIG_ODM_REFRESH_RAMASK -#else -#define RATE_ADAPTIVE_SUPPORT 1 -#endif -// adaptivity -#define RTW_ADAPTIVITY_EN_DISABLE 0 -#define RTW_ADAPTIVITY_EN_ENABLE 1 -#define CONFIG_RTW_ADAPTIVITY_EN RTW_ADAPTIVITY_EN_DISABLE -#define RTW_ADAPTIVITY_MODE_NORMAL 0 -#define RTW_ADAPTIVITY_MODE_CARRIER_SENSE 1 -#define CONFIG_RTW_ADAPTIVITY_MODE RTW_ADAPTIVITY_MODE_CARRIER_SENSE -#define CONFIG_RTW_ADAPTIVITY_DML 0 - - -#if defined(CONFIG_PLATFORM_AMEBA_X) - #define CONFIG_POWER_TRAINING_WIL 0 // in RA -#else - #define POWER_BY_RATE_SUPPORT 0 -#endif - -#if defined(CONFIG_PLATFORM_AMEBA_X) -#define RTL8195A_FOR_TEST_CHIP 0 - -//#define CONFIG_WIFI_TEST 1 -//#define CONFIG_MAC_LOOPBACK_DRIVER 1 -//#define CONFIG_WLAN_HAL_TEST 1 -//#define SKB_PRE_ALLOCATE_TX 1 -#define SKB_PRE_ALLOCATE_RX 0 -#define TX_CHECK_DSEC_ALWAYS 1 -#define CONFIG_DBG_DISABLE_RDU_INTERRUPT -//#define CONFIG_WLAN_HAL_RX_TASK -#if (SKB_PRE_ALLOCATE_RX == 1) - #define EXCHANGE_LXBUS_RX_SKB 0 -#endif -#ifdef CONFIG_FPGA - //Enable mac loopback for test mode (Ameba) - #define CONFIG_TWO_MAC_DRIVER // for test mode -#endif - -#ifdef ENABLE_MAC_LB_FOR_TEST_MODE - #define CONFIG_SUDO_PHY_SETTING - #define INT_HANDLE_IN_ISR 1 - #define CONFIG_LWIP_LAYER 0 - #define CONFIG_WLAN_HAL_TEST - #define CONFIG_WLAN_HAL_RX_TASK - #define CONFIG_MAC_LOOPBACK_DRIVER_RTL8711B 1 - #define HAL_MAC_ENABLE 1 - #define CONFIG_TWO_MAC_TEST_MODE - #define DISABLE_BB_RF 1 -#else - //#define CONFIG_TWO_MAC_DRIVER //for mornal driver; two mac - #ifdef CONFIG_TWO_MAC_DRIVER - #define CONFIG_SUDO_PHY_SETTING - #define HAL_MAC_ENABLE 1 - #define DISABLE_BB_RF 1 - #else - #define HAL_MAC_ENABLE 1 - #define HAL_BB_ENABLE 1 - #define HAL_RF_ENABLE 1 - #define DISABLE_BB_RF 0 - #endif - //#define INT_HANDLE_IN_ISR 1 -#endif -#endif // CONFIG_PLATFORM_AMEBA_X - -#ifndef CONFIG_LWIP_LAYER -#define CONFIG_LWIP_LAYER 1 -#endif -#define CONFIG_MAC_ADDRESS 0 -//fast reconnection -//#define CONFIG_FAST_RECONNECTION 1 -#if defined(CONFIG_INIC_EN)&&(CONFIG_INIC_EN==1) -#define CONFIG_RECV_REORDERING_CTRL //enable reordering for iNIC high throughput -#undef RX_AGGREGATION -#define RX_AGGREGATION 1 -#undef NOT_SUPPORT_40M -#undef CONFIG_CONCURRENT_MODE -#endif -#endif //WLANCONFIG_H diff --git a/platform/realtek-ambz/fixups/inc/lwip/lwip_timers.h b/platform/realtek-ambz/fixups/lwip/lwip_timers.h similarity index 100% rename from platform/realtek-ambz/fixups/inc/lwip/lwip_timers.h rename to platform/realtek-ambz/fixups/lwip/lwip_timers.h