mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
esp_phy: move lib_printf.c to esp_phy
* fix the issue when esp32h2 target using phy_printf and rtc_printf
This commit is contained in:
parent
f08aedfa04
commit
8b3cddf09a
@ -18,6 +18,7 @@ if(IDF_TARGET STREQUAL "esp32h2")
|
|||||||
else()
|
else()
|
||||||
set(srcs "src/phy_init.c")
|
set(srcs "src/phy_init.c")
|
||||||
endif()
|
endif()
|
||||||
|
list(APPEND srcs "src/lib_printf.c")
|
||||||
|
|
||||||
idf_build_get_property(build_dir BUILD_DIR)
|
idf_build_get_property(build_dir BUILD_DIR)
|
||||||
|
|
||||||
|
@ -1,16 +1,8 @@
|
|||||||
// Copyright 2016 Espressif Systems (Shanghai) PTE LTD
|
/*
|
||||||
//
|
* SPDX-FileCopyrightText: 2016-2022 Espressif Systems (Shanghai) CO LTD
|
||||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
*
|
||||||
// you may not use this file except in compliance with the License.
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
// You may obtain a copy of the License at
|
*/
|
||||||
//
|
|
||||||
// http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
//
|
|
||||||
// Unless required by applicable law or agreed to in writing, software
|
|
||||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
// See the License for the specific language governing permissions and
|
|
||||||
// limitations under the License.
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @file lib_printf.c
|
* @file lib_printf.c
|
||||||
@ -142,7 +134,7 @@ int wapi_printf(const char* format, ...)
|
|||||||
{
|
{
|
||||||
va_list arg;
|
va_list arg;
|
||||||
va_start(arg, format);
|
va_start(arg, format);
|
||||||
int res = lib_printf("coexist", format, arg);
|
int res = lib_printf("wapi", format, arg);
|
||||||
va_end(arg);
|
va_end(arg);
|
||||||
return res;
|
return res;
|
||||||
}
|
}
|
@ -18,7 +18,6 @@ if(CONFIG_ESP32_WIFI_ENABLED)
|
|||||||
|
|
||||||
set(srcs
|
set(srcs
|
||||||
"src/coexist.c"
|
"src/coexist.c"
|
||||||
"src/lib_printf.c"
|
|
||||||
"src/mesh_event.c"
|
"src/mesh_event.c"
|
||||||
"src/smartconfig.c"
|
"src/smartconfig.c"
|
||||||
"src/smartconfig_ack.c"
|
"src/smartconfig_ack.c"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user