2016-09-17 19:14:18 +00:00
|
|
|
// 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.
|
|
|
|
#ifndef _SOC_GPIO_SD_STRUCT_H_
|
|
|
|
#define _SOC_GPIO_SD_STRUCT_H_
|
2016-09-18 04:36:33 +00:00
|
|
|
typedef volatile struct {
|
2016-09-17 19:14:18 +00:00
|
|
|
union {
|
|
|
|
struct {
|
2016-09-18 11:05:37 +00:00
|
|
|
uint32_t duty: 8;
|
2016-09-18 04:36:33 +00:00
|
|
|
uint32_t prescale: 8;
|
|
|
|
uint32_t reserved16: 16;
|
2016-09-17 19:14:18 +00:00
|
|
|
};
|
2016-09-18 04:36:33 +00:00
|
|
|
uint32_t val;
|
2016-09-19 09:33:21 +00:00
|
|
|
} channel[8];
|
2016-09-17 19:14:18 +00:00
|
|
|
union {
|
|
|
|
struct {
|
2016-09-18 04:36:33 +00:00
|
|
|
uint32_t reserved0: 31;
|
|
|
|
uint32_t clk_en: 1;
|
2016-09-17 19:14:18 +00:00
|
|
|
};
|
2016-09-18 04:36:33 +00:00
|
|
|
uint32_t val;
|
2016-09-19 09:33:21 +00:00
|
|
|
} cg;
|
2016-09-17 19:14:18 +00:00
|
|
|
union {
|
|
|
|
struct {
|
2016-09-18 04:36:33 +00:00
|
|
|
uint32_t reserved0: 31;
|
|
|
|
uint32_t spi_swap: 1;
|
2016-09-17 19:14:18 +00:00
|
|
|
};
|
2016-09-18 04:36:33 +00:00
|
|
|
uint32_t val;
|
2016-09-19 09:33:21 +00:00
|
|
|
} misc;
|
2016-09-17 19:14:18 +00:00
|
|
|
union {
|
|
|
|
struct {
|
2016-09-18 04:36:33 +00:00
|
|
|
uint32_t date: 28;
|
|
|
|
uint32_t reserved28: 4;
|
2016-09-17 19:14:18 +00:00
|
|
|
};
|
2016-09-18 04:36:33 +00:00
|
|
|
uint32_t val;
|
2016-09-19 09:33:21 +00:00
|
|
|
} version;
|
2016-09-17 19:14:18 +00:00
|
|
|
} gpio_sd_dev_t;
|
2016-09-18 04:36:33 +00:00
|
|
|
extern gpio_sd_dev_t SIGMADELTA;
|
2016-09-17 19:14:18 +00:00
|
|
|
#endif /* _SOC_GPIO_SD_STRUCT_H_ */
|