esp_psram_io.h 515 B

1234567891011121314151617181920212223242526272829
  1. /*
  2. * SPDX-FileCopyrightText: 2015-2021 Espressif Systems (Shanghai) CO LTD
  3. *
  4. * SPDX-License-Identifier: Apache-2.0
  5. */
  6. #pragma once
  7. #include <stddef.h>
  8. #include <stdbool.h>
  9. #include "esp_err.h"
  10. #ifdef __cplusplus
  11. extern "C" {
  12. #endif
  13. /**
  14. * @brief get psram CS IO
  15. *
  16. * This interface should be called after PSRAM is enabled, otherwise it will
  17. * return an invalid value -1/0xff.
  18. *
  19. * @return psram CS IO or -1/0xff if psram not enabled
  20. */
  21. uint8_t esp_psram_io_get_cs_io(void);
  22. #ifdef __cplusplus
  23. }
  24. #endif