Skip to content

Commit d2117ad

Browse files
committed
Merge branch 'refactor/split_esp32s2_soc_include_folder' into 'master'
refactor(soc): sort esp32s2 soc headers See merge request espressif/esp-idf!33310
2 parents f045230 + 17d0fb0 commit d2117ad

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

64 files changed

+179
-361
lines changed

components/soc/esp32s2/include/soc/dport_reg.h

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* SPDX-FileCopyrightText: 2015-2021 Espressif Systems (Shanghai) CO LTD
2+
* SPDX-FileCopyrightText: 2015-2024 Espressif Systems (Shanghai) CO LTD
33
*
44
* SPDX-License-Identifier: Apache-2.0
55
*/
@@ -10,15 +10,15 @@
1010
extern "C" {
1111
#endif
1212

13-
#include "interrupt_reg.h"
14-
#include "system_reg.h"
15-
#include "sensitive_reg.h"
16-
#include "soc.h"
13+
#include "soc/interrupt_reg.h"
14+
#include "soc/system_reg.h"
15+
#include "soc/sensitive_reg.h"
16+
#include "soc/soc.h"
1717

1818
#define DPORT_DATE_REG SYSTEM_DATE_REG
1919

2020
#ifndef __ASSEMBLER__
21-
#include "dport_access.h"
21+
#include "soc/dport_access.h"
2222
#endif
2323

2424
#ifdef __cplusplus

components/soc/esp32s2/include/soc/soc.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
#endif
1313

1414
#include "esp_bit_defs.h"
15-
#include "reg_base.h"
15+
#include "soc/reg_base.h"
1616

1717
#define PRO_CPU_NUM (0)
1818

components/soc/esp32s2/include/soc/usb_dwc_struct.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ typedef union {
3333
uint32_t hnpreq: 1;
3434
uint32_t hstsethnpen: 1;
3535
uint32_t devhnpen: 1;
36-
uint32_t ehen: 1;
36+
uint32_t ehen: 1; // codespell:ignore ehen
3737
uint32_t reserved_13: 2;
3838
uint32_t dbncefltrbypass: 1;
3939
uint32_t conidsts: 1;

components/soc/esp32s2/register/soc/.gitkeep

Whitespace-only changes.

components/soc/esp32s2/include/soc/apb_ctrl_reg.h renamed to components/soc/esp32s2/register/soc/apb_ctrl_reg.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
#ifdef __cplusplus
1212
extern "C" {
1313
#endif
14-
#include "soc.h"
14+
#include "soc/soc.h"
1515
#define APB_CTRL_SYSCLK_CONF_REG (DR_REG_APB_CTRL_BASE + 0x000)
1616
/* APB_CTRL_SOC_CLK_SEL : R/W ;bitpos:[15:14] ;default: 2'd0 ; */
1717
/*description: */

components/soc/esp32s2/include/soc/apb_saradc_reg.h renamed to components/soc/esp32s2/register/soc/apb_saradc_reg.h

Lines changed: 6 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,16 @@
1-
// Copyright 2017-2018 Espressif Systems (Shanghai) PTE LTD
2-
//
3-
// Licensed under the Apache License, Version 2.0 (the "License");
4-
// you may not use this file except in compliance with the License.
5-
// You may obtain a copy of the License at
6-
//
7-
// http://www.apache.org/licenses/LICENSE-2.0
8-
//
9-
// Unless required by applicable law or agreed to in writing, software
10-
// distributed under the License is distributed on an "AS IS" BASIS,
11-
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12-
// See the License for the specific language governing permissions and
13-
// limitations under the License.
1+
/*
2+
* SPDX-FileCopyrightText: 2017-2024 Espressif Systems (Shanghai) CO LTD
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
146
#ifndef _SOC_APB_SARADC_REG_H_
157
#define _SOC_APB_SARADC_REG_H_
168

179

1810
#ifdef __cplusplus
1911
extern "C" {
2012
#endif
21-
#include "soc.h"
13+
#include "soc/soc.h"
2214
#define APB_SARADC_CTRL_REG (DR_REG_APB_SARADC_BASE + 0x000)
2315
/* APB_SARADC_WAIT_ARB_CYCLE : R/W ;bitpos:[31:30] ;default: 2'd1 ; */
2416
/*description: wait arbit signal stable after sar_done*/

components/soc/esp32s2/include/soc/assist_debug_reg.h renamed to components/soc/esp32s2/register/soc/assist_debug_reg.h

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
/*
2+
* SPDX-FileCopyrightText: 2024 Espressif Systems (Shanghai) CO LTD
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
16
#define ASSIST_DEBUG_BASE DR_REG_ASSIST_DEBUG_BASE
27

38
#define ASSIST_DEBUG_INTERRUPT_ENA ((ASSIST_DEBUG_BASE) +0x00)
@@ -80,8 +85,8 @@
8085

8186
#define ASSIST_DEBUG_PRO_RCD_PDEBUGSTATUS ((ASSIST_DEBUG_BASE) +0x64)
8287
/* register layout:
83-
* BBCAUSE [5..0]: Indicates cause for bubble cycle. See below for posible values. When DPORT_RECORD_PDEBUGINST_SZ == 0
84-
* INSNTYPE[5..0]: Indicates type of instruction retiring in the W stage. See below for posible values. When DPORT_RECORD_PDEBUGINST_SZ > 0
88+
* BBCAUSE [5..0]: Indicates cause for bubble cycle. See below for possible values. When DPORT_RECORD_PDEBUGINST_SZ == 0
89+
* INSNTYPE[5..0]: Indicates type of instruction retiring in the W stage. See below for possible values. When DPORT_RECORD_PDEBUGINST_SZ > 0
8590
*/
8691
#define DPORT_RECORD_PDEBUGSTATUS_BBCAUSE_M ((DPORT_RECORD_PDEBUGSTATUS_BBCAUSE_V)<<(DPORT_RECORD_PDEBUGSTATUS_BBCAUSE_S))
8792
#define DPORT_RECORD_PDEBUGSTATUS_BBCAUSE_V 0x3F

components/soc/esp32s2/include/soc/cp_dma_reg.h renamed to components/soc/esp32s2/register/soc/cp_dma_reg.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -573,7 +573,7 @@ extern "C" {
573573
#define CP_DMA_CRC_CAL_EN_V 0x00000001
574574
#define CP_DMA_CRC_CAL_EN_S 9
575575
/** CP_DMA_CRC_BIG_ENDIAN_EN : R/W; bitpos: [10]; default: 0;
576-
* Set this bit to reorder the bit of data which will be send to excute crc.
576+
* Set this bit to reorder the bit of data which will be send to execute crc.
577577
*/
578578
#define CP_DMA_CRC_BIG_ENDIAN_EN (BIT(10))
579579
#define CP_DMA_CRC_BIG_ENDIAN_EN_M (CP_DMA_CRC_BIG_ENDIAN_EN_V << CP_DMA_CRC_BIG_ENDIAN_EN_S)
@@ -629,7 +629,7 @@ extern "C" {
629629
#define CP_DMA_FIFO_EMPTY_S 23
630630

631631
/** CP_DMA_OUT_ST_REG register
632-
* Status register of trasmitting data
632+
* Status register of transmitting data
633633
*/
634634
#define CP_DMA_OUT_ST_REG (DR_REG_CP_BASE + 0x44)
635635
/** CP_DMA_OUTLINK_DSCR_ADDR : RO; bitpos: [17:0]; default: 0;

0 commit comments

Comments
 (0)