关闭静态库、以及OTA、射频功能
This commit is contained in:
@@ -54,16 +54,16 @@ void work_app_main(void *arg)
|
|||||||
app_cfg_init(); // 应用配置
|
app_cfg_init(); // 应用配置
|
||||||
app_log_init(); // 应用记录
|
app_log_init(); // 应用记录
|
||||||
|
|
||||||
/* 初始化 OTA 功能*/
|
// /* 初始化 OTA 功能*/
|
||||||
ota_partition_check();
|
// ota_partition_check();
|
||||||
|
|
||||||
/* 初始化 ws2812 */
|
// /* 初始化 ws2812 */
|
||||||
_init_ws2812();
|
// _init_ws2812();
|
||||||
ws2812_spi_shell_register(); // 用于测试 ws2812 的 shell 命令
|
// ws2812_spi_shell_register(); // 用于测试 ws2812 的 shell 命令
|
||||||
|
|
||||||
/* 启动静态库功能 */
|
// /* 启动静态库功能 */
|
||||||
sblib_init(SBLIB_INIT_ADAPTER);
|
// sblib_init(SBLIB_INIT_ADAPTER);
|
||||||
lib_shell_register(); // 静态库接口命令
|
// lib_shell_register(); // 静态库接口命令
|
||||||
|
|
||||||
/* 初始化按键检测和控制 */
|
/* 初始化按键检测和控制 */
|
||||||
btn_attach(&g_cfg_board->key_reset, _change_mode_event_button, EVENT_PRESS_UP | EVENT_PRESS_DOWN | EVENT_LONG_PRESS_HOLD);
|
btn_attach(&g_cfg_board->key_reset, _change_mode_event_button, EVENT_PRESS_UP | EVENT_PRESS_DOWN | EVENT_LONG_PRESS_HOLD);
|
||||||
@@ -110,34 +110,34 @@ static void _change_mode_event_button(button_hdl_t *handle, press_event_t event)
|
|||||||
}
|
}
|
||||||
|
|
||||||
// 导出符号,供 linker script 使用
|
// 导出符号,供 linker script 使用
|
||||||
#include "utils/sb_aes.h"
|
// #include "utils/sb_aes.h"
|
||||||
#include "drivers/data_port/sb_data_port.h"
|
// #include "drivers/data_port/sb_data_port.h"
|
||||||
#include "drivers/data_port/uart/uart_port.h"
|
// #include "drivers/data_port/uart/uart_port.h"
|
||||||
#if defined(CONFIG_BUILD_BLE)
|
// #if defined(CONFIG_BUILD_BLE)
|
||||||
#include "drivers/data_port/ble_spp/ble_spp_server.h"
|
// #include "drivers/data_port/ble_spp/ble_spp_server.h"
|
||||||
#endif
|
// #endif
|
||||||
#if defined(CONFIG_BUILD_WIFI)
|
// #if defined(CONFIG_BUILD_WIFI)
|
||||||
#include "drivers/data_port/socket_inet/socket_inet.h"
|
// #include "drivers/data_port/socket_inet/socket_inet.h"
|
||||||
#endif
|
// #endif
|
||||||
#if defined(CONFIG_IDF_TARGET_ESP32S3)
|
// #if defined(CONFIG_IDF_TARGET_ESP32S3)
|
||||||
#include "drivers/data_port/usb-host/usbport.h"
|
// #include "drivers/data_port/usb-host/usbport.h"
|
||||||
#endif
|
// #endif
|
||||||
void _exporter_reference_symbols(void)
|
// void _exporter_reference_symbols(void)
|
||||||
{
|
// {
|
||||||
btn_attach(NULL, NULL, 0);
|
// btn_attach(NULL, NULL, 0);
|
||||||
sb_aes_init();
|
// sb_aes_init();
|
||||||
sb_data_port_start(NULL);
|
// sb_data_port_start(NULL);
|
||||||
sb_uart_port_init();
|
// sb_uart_port_init();
|
||||||
sh_init_vt100(NULL, NULL, NULL);
|
// sh_init_vt100(NULL, NULL, NULL);
|
||||||
shell_start(NULL);
|
// shell_start(NULL);
|
||||||
ws2812_spi_led_strip_init(0, 0);
|
// ws2812_spi_led_strip_init(0, 0);
|
||||||
#if defined(CONFIG_BUILD_BLE)
|
// #if defined(CONFIG_BUILD_BLE)
|
||||||
sb_ble_server_port_init(NULL);
|
// sb_ble_server_port_init(NULL);
|
||||||
#endif
|
// #endif
|
||||||
#if defined(CONFIG_BUILD_WIFI)
|
// #if defined(CONFIG_BUILD_WIFI)
|
||||||
socket_inet_init();
|
// socket_inet_init();
|
||||||
#endif
|
// #endif
|
||||||
#if defined(CONFIG_IDF_TARGET_ESP32S3)
|
// #if defined(CONFIG_IDF_TARGET_ESP32S3)
|
||||||
usbport_init();
|
// usbport_init();
|
||||||
#endif
|
// #endif
|
||||||
}
|
// }
|
||||||
|
|||||||
@@ -1,19 +1,19 @@
|
|||||||
list(APPEND incs ".")
|
# list(APPEND incs ".")
|
||||||
list(APPEND incs "../system/include")
|
# list(APPEND incs "../system/include")
|
||||||
list(APPEND incs "../system/source")
|
# list(APPEND incs "../system/source")
|
||||||
list(APPEND incs "../../app")
|
# list(APPEND incs "../../app")
|
||||||
|
|
||||||
list(APPEND srcs "lib_shell.c")
|
# list(APPEND srcs "lib_shell.c")
|
||||||
|
|
||||||
idf_component_register(
|
# idf_component_register(
|
||||||
INCLUDE_DIRS ${incs}
|
# INCLUDE_DIRS ${incs}
|
||||||
SRCS ${srcs}
|
# SRCS ${srcs}
|
||||||
)
|
# )
|
||||||
|
|
||||||
if(CONFIG_IDF_TARGET_ESP32S3)
|
# if(CONFIG_IDF_TARGET_ESP32S3)
|
||||||
target_link_libraries(${COMPONENT_TARGET} INTERFACE "${CMAKE_CURRENT_LIST_DIR}/spbelib_s3.a")
|
# target_link_libraries(${COMPONENT_TARGET} INTERFACE "${CMAKE_CURRENT_LIST_DIR}/spbelib_s3.a")
|
||||||
elseif(CONFIG_IDF_TARGET_ESP32C2)
|
# elseif(CONFIG_IDF_TARGET_ESP32C2)
|
||||||
target_link_libraries(${COMPONENT_TARGET} INTERFACE "${CMAKE_CURRENT_LIST_DIR}/spbelib_c2.a")
|
# target_link_libraries(${COMPONENT_TARGET} INTERFACE "${CMAKE_CURRENT_LIST_DIR}/spbelib_c2.a")
|
||||||
else(CONFIG_IDF_TARGET_ESP32C3)
|
# else(CONFIG_IDF_TARGET_ESP32C3)
|
||||||
target_link_libraries(${COMPONENT_TARGET} INTERFACE "${CMAKE_CURRENT_LIST_DIR}/spbelib_c3.a")
|
# target_link_libraries(${COMPONENT_TARGET} INTERFACE "${CMAKE_CURRENT_LIST_DIR}/spbelib_c3.a")
|
||||||
endif()
|
# endif()
|
||||||
|
|||||||
Reference in New Issue
Block a user