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
|
2017-08-28 06:10:46 -04:00
|
|
|
|
2018-12-03 19:17:38 -05:00
|
|
|
#include <stdint.h>
|
|
|
|
|
2017-08-28 06:10:46 -04:00
|
|
|
#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;
|
2016-09-18 00:36:33 -04:00
|
|
|
uint32_t prescale: 8;
|
|
|
|
uint32_t reserved16: 16;
|
2016-09-17 15:14:18 -04:00
|
|
|
};
|
2016-09-18 00:36:33 -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 {
|
2016-09-18 00:36:33 -04:00
|
|
|
uint32_t reserved0: 31;
|
|
|
|
uint32_t clk_en: 1;
|
2016-09-17 15:14:18 -04:00
|
|
|
};
|
2016-09-18 00:36:33 -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 {
|
2016-09-18 00:36:33 -04:00
|
|
|
uint32_t reserved0: 31;
|
|
|
|
uint32_t spi_swap: 1;
|
2016-09-17 15:14:18 -04:00
|
|
|
};
|
2016-09-18 00:36:33 -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 {
|
2016-09-18 00:36:33 -04:00
|
|
|
uint32_t date: 28;
|
|
|
|
uint32_t reserved28: 4;
|
2016-09-17 15:14:18 -04:00
|
|
|
};
|
2016-09-18 00:36:33 -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;
|
2017-08-28 06:10:46 -04:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|