Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions docs/platforms.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
| RTL8710B (AmebaZ) | Realtek | ✅ | ✅ | ✅⁴ | ✅ | ✅ | ✅⁸ | ❌ | ❌ | ✅ | ✅ | ✅⁶ | ➖ |
| RTL8710C<br>RTL8720C (AmebaZ2) | Realtek | ✅ | ✅ | ✅⁴ | ✅ | ✅ | ✅⁸ | ➖ | ❌ | ✅ | ✅ | ✅ | ✅ |
| RTL8720D (AmebaD)<br>RTL872xCSM<br>RTL8720CS (AmebaCS) | Realtek | ✅ | ✅ | ✅⁴ | ✅ | ✅ | ✅⁸ | ❌ | ❌ | ✅ | ✅ | ✅ | ✅ |
| RTL8721DA<br>RTL8711DAF (AmebaDplus) | Realtek | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | ❌ | ✅ | ✅ | ✅ | |
| RTL8720E<br>RTL8710ECF (AmebaLite) | Realtek | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | ❌ | ✅ | ✅ | ✅ | |
| RTL8721DA<br>RTL8711DAF (AmebaDplus) | Realtek | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | ❌ | ✅ | ✅ | ✅ | |
| RTL8720E<br>RTL8710ECF (AmebaLite) | Realtek | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | ❌ | ✅ | ✅ | ✅ | |
| ECR6600 | ESWIN | ✅ | ✅ | ✅ | ✅ | ✅ | ✅⁸ | ❗️ | ❗️¹¹ | ✅ | ➖ | ❓ | ❌ |
| TXW81X | Taixin | ✅ | ❌ | ❗️ | ❓ | ❌ | ❌ | ❌ | ❌ | ❓ | ❌ | ❌ | ➖ |
| RDA5981 | RDA | ✅ | ❌ | ✅ | ✅ | ✅ | ✅ | ❌ | ❌ | ✅ | ➖ | ❌ | ➖ |
Expand Down
13 changes: 12 additions & 1 deletion platforms/RTL8720E/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ set(BERRY_MODULEPATH "${OBK_SRCS}berry/modules")
include(../obk_main.cmake)
include(../../libraries/berry.cmake)

ameba_list_append(public_definitions LWIP_NETIF_HOSTNAME=1 TCP_MSL=1000)
ameba_list_append(public_definitions LWIP_NETIF_HOSTNAME=1 TCP_MSL=1000 RTK_BLE_ISO_SUPPORT=1)
ameba_global_define(${public_definitions})

add_compile_definitions(
Expand All @@ -37,6 +37,16 @@ target_compile_options(
"$<$<COMPILE_LANGUAGE:C>:-Wno-strict-prototypes>"
)

target_compile_options(
${c_MCU_PROJ_CONFIG} INTERFACE
-Os
)

target_link_options(
${c_MCU_PROJ_CONFIG} INTERFACE
-Wl,--wrap=vApplicationIdleHook
)

target_include_directories(
${CURRENT_LIB_NAME} PRIVATE
../../include
Expand All @@ -54,6 +64,7 @@ target_sources(
${OBK_SRCS}hal/realtek/hal_pins_realtek.c
${OBK_SRCS}hal/realtek/hal_ota_realtek.c
${OBK_SRCS}hal/realtek/hal_wifi_realtek_new.c
${OBK_SRCS}hal/realtek/rtl8721da/hal_bt_proxy_rtl8721da.c
${OBK_SRCS}hal/realtek/rtl8721da/hal_main_rtl8721da.c
${OBK_SRCS}hal/realtek/rtl8720e/hal_pins_rtl8720e.c
${OBK_SRCS}hal/realtek/rtl8721da/hal_uart_rtl8721da.c
Expand Down
3 changes: 3 additions & 0 deletions platforms/RTL8720E/default.conf
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,6 @@ CONFIG_KERNEL=y
CONFIG_LWIP_NETCONN_SEM_PER_THREAD_MENU=y
CONFIG_MBEDTLS_ENABLED_MENU=y
CONFIG_LWIP_IPV6=n
CONFIG_BT_MENU=y
CONFIG_BT_ADVANCED_FEATURE_MENU=y
CONFIG_BT_EXCLUDE_AT_COMMAND=y
13 changes: 12 additions & 1 deletion platforms/RTL8721DA/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ set(BERRY_MODULEPATH "${OBK_SRCS}berry/modules")
include(../obk_main.cmake)
include(../../libraries/berry.cmake)

ameba_list_append(public_definitions LWIP_NETIF_HOSTNAME=1 TCP_MSL=1000)
ameba_list_append(public_definitions LWIP_NETIF_HOSTNAME=1 TCP_MSL=1000 RTK_BLE_ISO_SUPPORT=1)
ameba_global_define(${public_definitions})

add_compile_definitions(
Expand All @@ -37,6 +37,16 @@ target_compile_options(
"$<$<COMPILE_LANGUAGE:C>:-Wno-strict-prototypes>"
)

target_compile_options(
${c_MCU_PROJ_CONFIG} INTERFACE
-Os
)

target_link_options(
${c_MCU_PROJ_CONFIG} INTERFACE
-Wl,--wrap=vApplicationIdleHook
)

target_include_directories(
${CURRENT_LIB_NAME} PRIVATE
../../include
Expand All @@ -54,6 +64,7 @@ target_sources(
${OBK_SRCS}hal/realtek/hal_pins_realtek.c
${OBK_SRCS}hal/realtek/hal_ota_realtek.c
${OBK_SRCS}hal/realtek/hal_wifi_realtek_new.c
${OBK_SRCS}hal/realtek/rtl8721da/hal_bt_proxy_rtl8721da.c
${OBK_SRCS}hal/realtek/rtl8721da/hal_main_rtl8721da.c
${OBK_SRCS}hal/realtek/rtl8721da/hal_pins_rtl8721da.c
${OBK_SRCS}hal/realtek/rtl8721da/hal_uart_rtl8721da.c
Expand Down
3 changes: 3 additions & 0 deletions platforms/RTL8721DA/default.conf
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,6 @@ CONFIG_KERNEL=y
CONFIG_LWIP_NETCONN_SEM_PER_THREAD_MENU=y
CONFIG_MBEDTLS_ENABLED_MENU=y
CONFIG_LWIP_IPV6=n
CONFIG_BT_MENU=y
CONFIG_BT_ADVANCED_FEATURE_MENU=y
CONFIG_BT_EXCLUDE_AT_COMMAND=y
21 changes: 21 additions & 0 deletions src/hal/generic/hal_bt_proxy_generic.c
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,11 @@ bool __attribute__((weak)) HAL_BTProxy_IsInit(void)
return false;
}

void __attribute__((weak)) HAL_BTProxy_FilterDuplicates(bool isActive)
{

}

#if ENABLE_BT_PROXY

static commandResult_t CMD_SetBTScanMode(const void* context, const char* cmd, const char* args, int cmdFlags)
Expand Down Expand Up @@ -128,6 +133,17 @@ static commandResult_t CMD_BTDeinit(const void* context, const char* cmd, const
return CMD_RES_OK;
}

static commandResult_t CMD_BTFilterDuplicates(const void* context, const char* cmd, const char* args, int cmdFlags)
{
Tokenizer_TokenizeString(args, 0);

int isActive = Tokenizer_GetArgIntegerDefault(0, 0);
if(isActive != 0 && isActive != 1)
return CMD_RES_BAD_ARGUMENT;
HAL_BTProxy_FilterDuplicates(isActive);
return CMD_RES_OK;
}

#endif

void HAL_BTProxy_RegisterCommands(void)
Expand Down Expand Up @@ -163,6 +179,11 @@ void HAL_BTProxy_RegisterCommands(void)
//cmddetail:"fn":"CMD_BTDeinit","file":"hal/generic/hal_bt_proxy_generic.c","requires":"ENABLE_BT_PROXY",
//cmddetail:"examples":""}
CMD_RegisterCommand("BTDeinit", CMD_BTDeinit, NULL);
//cmddetail:{"name":"BTFilterDuplicates","args":"[isActive]",
//cmddetail:"descr":"BT filter duplicates",
//cmddetail:"fn":"CMD_BTFilterDuplicates","file":"hal/generic/hal_bt_proxy_generic.c","requires":"ENABLE_BT_PROXY",
//cmddetail:"examples":""}
CMD_RegisterCommand("BTFilterDuplicates", CMD_BTFilterDuplicates, NULL);
#endif

HAL_BTProxy_RegisterPlatformCommands();
Expand Down
Loading
Loading