本项止转自github官方arduino-esp32 传在这里仅为阅读源码方便
projectuser
2019-07-05 50148ccffe21ff54262064ec9f2245900eaf18aa
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
// Copyright 2015-2018 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.
#ifndef _SOC_HINF_STRUCT_H_
#define _SOC_HINF_STRUCT_H_
 
#ifdef __cplusplus
extern "C" {
#endif
 
typedef volatile struct {
    union {
        struct {
            uint32_t user_id_fn1:  16;
            uint32_t device_id_fn1:16;
        };
        uint32_t val;
    } cfg_data0;
    union {
        struct {
            uint32_t sdio_enable:      1;
            uint32_t sdio_ioready1:    1;
            uint32_t highspeed_enable: 1;
            uint32_t highspeed_mode:   1;
            uint32_t sdio_cd_enable:   1;
            uint32_t sdio_ioready2:    1;
            uint32_t sdio_int_mask:    1;
            uint32_t ioenable2:        1;
            uint32_t cd_disable:       1;
            uint32_t func1_eps:        1;
            uint32_t emp:              1;
            uint32_t ioenable1:        1;
            uint32_t sdio20_conf0:     4;
            uint32_t sdio_ver:        12;
            uint32_t func2_eps:        1;
            uint32_t sdio20_conf1:     3;
        };
        uint32_t val;
    } cfg_data1;
    uint32_t reserved_8;
    uint32_t reserved_c;
    uint32_t reserved_10;
    uint32_t reserved_14;
    uint32_t reserved_18;
    union {
        struct {
            uint32_t pin_state:     8;
            uint32_t chip_state:    8;
            uint32_t sdio_rst:      1;
            uint32_t sdio_ioready0: 1;
            uint32_t reserved18:   14;
        };
        uint32_t val;
    } cfg_data7;
    uint32_t cis_conf0;                     /**/
    uint32_t cis_conf1;                     /**/
    uint32_t cis_conf2;                     /**/
    uint32_t cis_conf3;                     /**/
    uint32_t cis_conf4;                     /**/
    uint32_t cis_conf5;                     /**/
    uint32_t cis_conf6;                     /**/
    uint32_t cis_conf7;                     /**/
    union {
        struct {
            uint32_t user_id_fn2:  16;
            uint32_t device_id_fn2:16;
        };
        uint32_t val;
    } cfg_data16;
    uint32_t reserved_44;
    uint32_t reserved_48;
    uint32_t reserved_4c;
    uint32_t reserved_50;
    uint32_t reserved_54;
    uint32_t reserved_58;
    uint32_t reserved_5c;
    uint32_t reserved_60;
    uint32_t reserved_64;
    uint32_t reserved_68;
    uint32_t reserved_6c;
    uint32_t reserved_70;
    uint32_t reserved_74;
    uint32_t reserved_78;
    uint32_t reserved_7c;
    uint32_t reserved_80;
    uint32_t reserved_84;
    uint32_t reserved_88;
    uint32_t reserved_8c;
    uint32_t reserved_90;
    uint32_t reserved_94;
    uint32_t reserved_98;
    uint32_t reserved_9c;
    uint32_t reserved_a0;
    uint32_t reserved_a4;
    uint32_t reserved_a8;
    uint32_t reserved_ac;
    uint32_t reserved_b0;
    uint32_t reserved_b4;
    uint32_t reserved_b8;
    uint32_t reserved_bc;
    uint32_t reserved_c0;
    uint32_t reserved_c4;
    uint32_t reserved_c8;
    uint32_t reserved_cc;
    uint32_t reserved_d0;
    uint32_t reserved_d4;
    uint32_t reserved_d8;
    uint32_t reserved_dc;
    uint32_t reserved_e0;
    uint32_t reserved_e4;
    uint32_t reserved_e8;
    uint32_t reserved_ec;
    uint32_t reserved_f0;
    uint32_t reserved_f4;
    uint32_t reserved_f8;
    uint32_t date;                          /**/
} hinf_dev_t;
extern hinf_dev_t HINF;
 
#ifdef __cplusplus
}
#endif
 
#endif  /* _SOC_HINF_STRUCT_H_ */