mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
24 lines
545 B
C
24 lines
545 B
C
/*
|
|
* SPDX-FileCopyrightText: 2020-2021 Espressif Systems (Shanghai) CO LTD
|
|
*
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
#pragma once
|
|
#include <stdlib.h>
|
|
|
|
#include "soc/dport_reg.h"
|
|
#include "soc/tracemem_config.h"
|
|
|
|
static inline void trace_ll_set_mem_block(int cpu, int block)
|
|
{
|
|
uint32_t block_bits = 0;
|
|
|
|
if (cpu == 0) {
|
|
block_bits = TRACEMEM_CORE0_MUX_BLK_BITS(block);
|
|
} else {
|
|
block_bits = TRACEMEM_CORE1_MUX_BLK_BITS(block);
|
|
}
|
|
DPORT_SET_PERI_REG_MASK(SENSITIVE_INTERNAL_SRAM_USAGE_2_REG, block_bits);
|
|
}
|