hal: Deprecate soc_hal.h and soc_ll.h interface

This commit marks all functions in soc_hal.h and soc_ll.h as deprecated.
Users should use functions from esp_cpu.h instead.

Also added missing wrap funcions for esp_cpu_stall() in test_panic.c files.
This commit is contained in:
Guillaume Souchere
2022-07-21 19:39:21 +08:00
committed by Darian Leung
parent 6005cc9163
commit dcae121d80
7 changed files with 39 additions and 38 deletions
@@ -1,16 +1,8 @@
// Copyright 2015-2016 Espressif Systems (Shanghai) PTE LTD
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// 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.
/*
* SPDX-FileCopyrightText: 2015-2022 Espressif Systems (Shanghai) CO LTD
*
* SPDX-License-Identifier: Apache-2.0
*/
#include "riscv/rvruntime-frames.h"
#include "esp_private/panic_internal.h"
@@ -21,6 +13,7 @@ extern void esp_panic_handler(panic_info_t *info);
volatile bool g_override_illegal_instruction = false;
void __real_esp_panic_handler(panic_info_t *info);
void __real_esp_cpu_stall(int core_id);
void return_from_panic_handler(RvExcFrame *frm) __attribute__((noreturn));
@@ -50,3 +43,12 @@ void __wrap_esp_panic_handler(panic_info_t *info)
__real_esp_panic_handler(info);
}
}
void __wrap_esp_cpu_stall(int core_id)
{
if ( g_override_illegal_instruction == true ) {
return;
} else {
__real_esp_cpu_stall(core_id);
}
}