关闭静态库、以及OTA、射频功能

This commit is contained in:
OPTOC
2025-08-19 18:12:32 +08:00
parent 1e82069ac7
commit 5e7de7483c
2 changed files with 55 additions and 55 deletions

View File

@@ -54,16 +54,16 @@ void work_app_main(void *arg)
app_cfg_init(); // 应用配置
app_log_init(); // 应用记录
/* 初始化 OTA 功能*/
ota_partition_check();
// /* 初始化 OTA 功能*/
// ota_partition_check();
/* 初始化 ws2812 */
_init_ws2812();
ws2812_spi_shell_register(); // 用于测试 ws2812 的 shell 命令
// /* 初始化 ws2812 */
// _init_ws2812();
// ws2812_spi_shell_register(); // 用于测试 ws2812 的 shell 命令
/* 启动静态库功能 */
sblib_init(SBLIB_INIT_ADAPTER);
lib_shell_register(); // 静态库接口命令
// /* 启动静态库功能 */
// sblib_init(SBLIB_INIT_ADAPTER);
// lib_shell_register(); // 静态库接口命令
/* 初始化按键检测和控制 */
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 使用
#include "utils/sb_aes.h"
#include "drivers/data_port/sb_data_port.h"
#include "drivers/data_port/uart/uart_port.h"
#if defined(CONFIG_BUILD_BLE)
#include "drivers/data_port/ble_spp/ble_spp_server.h"
#endif
#if defined(CONFIG_BUILD_WIFI)
#include "drivers/data_port/socket_inet/socket_inet.h"
#endif
#if defined(CONFIG_IDF_TARGET_ESP32S3)
#include "drivers/data_port/usb-host/usbport.h"
#endif
void _exporter_reference_symbols(void)
{
btn_attach(NULL, NULL, 0);
sb_aes_init();
sb_data_port_start(NULL);
sb_uart_port_init();
sh_init_vt100(NULL, NULL, NULL);
shell_start(NULL);
ws2812_spi_led_strip_init(0, 0);
#if defined(CONFIG_BUILD_BLE)
sb_ble_server_port_init(NULL);
#endif
#if defined(CONFIG_BUILD_WIFI)
socket_inet_init();
#endif
#if defined(CONFIG_IDF_TARGET_ESP32S3)
usbport_init();
#endif
}
// #include "utils/sb_aes.h"
// #include "drivers/data_port/sb_data_port.h"
// #include "drivers/data_port/uart/uart_port.h"
// #if defined(CONFIG_BUILD_BLE)
// #include "drivers/data_port/ble_spp/ble_spp_server.h"
// #endif
// #if defined(CONFIG_BUILD_WIFI)
// #include "drivers/data_port/socket_inet/socket_inet.h"
// #endif
// #if defined(CONFIG_IDF_TARGET_ESP32S3)
// #include "drivers/data_port/usb-host/usbport.h"
// #endif
// void _exporter_reference_symbols(void)
// {
// btn_attach(NULL, NULL, 0);
// sb_aes_init();
// sb_data_port_start(NULL);
// sb_uart_port_init();
// sh_init_vt100(NULL, NULL, NULL);
// shell_start(NULL);
// ws2812_spi_led_strip_init(0, 0);
// #if defined(CONFIG_BUILD_BLE)
// sb_ble_server_port_init(NULL);
// #endif
// #if defined(CONFIG_BUILD_WIFI)
// socket_inet_init();
// #endif
// #if defined(CONFIG_IDF_TARGET_ESP32S3)
// usbport_init();
// #endif
// }