gpio_sd_struct.h 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. // Copyright 2015-2016 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. // http://www.apache.org/licenses/LICENSE-2.0
  7. //
  8. // Unless required by applicable law or agreed to in writing, software
  9. // distributed under the License is distributed on an "AS IS" BASIS,
  10. // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  11. // See the License for the specific language governing permissions and
  12. // limitations under the License.
  13. #ifndef _SOC_GPIO_SD_STRUCT_H_
  14. #define _SOC_GPIO_SD_STRUCT_H_
  15. typedef volatile struct {
  16. union {
  17. struct {
  18. uint32_t duty: 8;
  19. uint32_t prescale: 8;
  20. uint32_t reserved16: 16;
  21. };
  22. uint32_t val;
  23. } channel[8];
  24. union {
  25. struct {
  26. uint32_t reserved0: 31;
  27. uint32_t clk_en: 1;
  28. };
  29. uint32_t val;
  30. } cg;
  31. union {
  32. struct {
  33. uint32_t reserved0: 31;
  34. uint32_t spi_swap: 1;
  35. };
  36. uint32_t val;
  37. } misc;
  38. union {
  39. struct {
  40. uint32_t date: 28;
  41. uint32_t reserved28: 4;
  42. };
  43. uint32_t val;
  44. } version;
  45. } gpio_sd_dev_t;
  46. extern gpio_sd_dev_t SIGMADELTA;
  47. #endif /* _SOC_GPIO_SD_STRUCT_H_ */