| 1234567891011121314151617181920212223242526 |
- /*
- * SPDX-FileCopyrightText: 2024 Espressif Systems (Shanghai) CO LTD
- *
- * SPDX-License-Identifier: Apache-2.0
- */
- #include "os_header.h"
- #include "os_wrapper.h"
- #include "esp_log.h"
- #include "esp_hosted_api.h"
- #include "esp_private/startup_internal.h"
- DEFINE_LOG_TAG(host_init);
- //ESP_SYSTEM_INIT_FN(esp_hosted_host_init, BIT(0), 120)
- static void __attribute__((constructor)) esp_hosted_host_init(void)
- {
- ESP_LOGI(TAG, "ESP Hosted : Host chip_ip[%d]", CONFIG_IDF_FIRMWARE_CHIP_ID);
- ESP_ERROR_CHECK(esp_hosted_init());
- }
- static void __attribute__((destructor)) esp_hosted_host_deinit(void)
- {
- ESP_LOGI(TAG, "ESP Hosted deinit");
- esp_hosted_deinit();
- }
|