Skip to content

Conversation

@paulftw
Copy link

@paulftw paulftw commented Jun 18, 2022

See #171

#include "SDCard.h"

#ifndef SOC_SDMMC_HOST_SUPPORTED
#error "Your chip does not support SDMCC_HOST. See https://github.com/PerMalmberg/Smooth/issues/171"
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perhaps reference some applicable IDF documentation instead?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's a good idea, but I'm not sure how to implement it.
SOC_SDMMC_HOST_SUPPORTED is described on chip-specific pages, e.g.

https://docs.espressif.com/projects/esp-idf/en/latest/esp32/api-reference/system/soc_caps.html
https://docs.espressif.com/projects/esp-idf/en/latest/esp32c3/api-reference/system/soc_caps.html

Correct URL can be computed by inserting CONFIG_IDF_TARGET into the error message, but I don't know how to do that inside the #error.

@paulftw
Copy link
Author

paulftw commented Jun 23, 2022

My second commit dropped the #ifndef part. Fixing that now

@paulftw
Copy link
Author

paulftw commented Jun 29, 2022

(nevermind, deleted)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants