esp-idf/components/soc/esp32/include/soc/gpio_sd_struct.h

52 lines
968 B
C
Raw Normal View History

2022-05-17 01:47:14 -04:00
/*
* SPDX-FileCopyrightText: 2015-2022 Espressif Systems (Shanghai) CO LTD
*
* SPDX-License-Identifier: Apache-2.0
*/
2016-09-17 15:14:18 -04:00
2022-05-17 01:47:14 -04:00
#pragma once
#include <stdint.h>
#ifdef __cplusplus
extern "C" {
#endif
2022-05-17 01:47:14 -04:00
typedef struct gpio_sd_dev_t {
volatile union {
2016-09-17 15:14:18 -04:00
struct {
2016-09-18 07:05:37 -04:00
uint32_t duty: 8;
uint32_t prescale: 8;
uint32_t reserved16: 16;
2016-09-17 15:14:18 -04:00
};
uint32_t val;
2016-09-19 05:33:21 -04:00
} channel[8];
2022-05-17 01:47:14 -04:00
volatile union {
2016-09-17 15:14:18 -04:00
struct {
uint32_t reserved0: 31;
uint32_t clk_en: 1;
2016-09-17 15:14:18 -04:00
};
uint32_t val;
2016-09-19 05:33:21 -04:00
} cg;
2022-05-17 01:47:14 -04:00
volatile union {
2016-09-17 15:14:18 -04:00
struct {
uint32_t reserved0: 31;
uint32_t spi_swap: 1;
2016-09-17 15:14:18 -04:00
};
uint32_t val;
2016-09-19 05:33:21 -04:00
} misc;
2022-05-17 01:47:14 -04:00
volatile union {
2016-09-17 15:14:18 -04:00
struct {
uint32_t date: 28;
uint32_t reserved28: 4;
2016-09-17 15:14:18 -04:00
};
uint32_t val;
2016-09-19 05:33:21 -04:00
} version;
2016-09-17 15:14:18 -04:00
} gpio_sd_dev_t;
2022-05-17 01:47:14 -04:00
extern gpio_sd_dev_t SDM;
#ifdef __cplusplus
}
#endif