Search found 90 matches
- Thu Mar 01, 2018 1:06 am
- Forum: ESP-IDF
- Topic: Any way to override ESP IDF constant #defines
- Replies: 9
- Views: 10494
Re: Any way to override ESP IDF constant #defines
Thanks for the advise, and pointers. I have implemented something along the lines you propose, and it works well for my use-case. I ended up simply moving the SNTP_SET_SYSTEM_TIME_US(t, us) into a sntp_setsystemtime_us(u32_t t, u32_t us) weak linked function (as well as doing the same with SNTP_SET_...
- Tue Feb 27, 2018 7:26 am
- Forum: ESP-IDF
- Topic: Any way to override ESP IDF constant #defines
- Replies: 9
- Views: 10494
Re: Any way to override ESP IDF constant #defines
Yes. That works for our code, but doesn't seem to work for the components in the ESP IDF code tree. The #define is used inside the lwip sntp component, not in our code.OneTwo wrote:Have you tried with
Code: Select all
#ifdef X #undef X // OR #define X = Y #define DEF_OVERWRITTEN #else ... #endif
- Tue Feb 27, 2018 7:25 am
- Forum: ESP-IDF
- Topic: Any way to override ESP IDF constant #defines
- Replies: 9
- Views: 10494
Re: Any way to override ESP IDF constant #defines
That would be fantastic, your PR will probably be accepted! Some kind of weak-linked "after SNTP update" function, which is a no-op in the LWIP component but can be implemented to do something in the project, could work well. Let me know if you'd like me to elaborate on this suggestion. My use case...
- Tue Feb 27, 2018 2:00 am
- Forum: ESP-IDF
- Topic: [solved] SDMMC 1-line mode, free-up unused pins
- Replies: 4
- Views: 7401
Re: SDMMC 1-line mode, free-up unused pins
Do you set host.flags = SDMMC_HOST_FLAG_1BIT? Yes. and slot_config.width = 1 ? No :-) That fixed it. Best 1 line (pun intended) fix ever. Many thanks for the quick assistance. So, code for 1 bit SDCARD is: sdmmc_host_t host = SDMMC_HOST_DEFAULT(); // this tells SD host to keep using 1-line bus mode...
- Tue Feb 27, 2018 1:45 am
- Forum: General Discussion
- Topic: How to override or detect SNTP_SET_SYSTEM_TIME_US?
- Replies: 5
- Views: 7786
Re: How to override or detect SNTP_SET_SYSTEM_TIME_US?
I'm going to try to get a change to add an extensible callback mechanism added to ESP IDF master. In the meantime, we'll do it in our own clone.
- Tue Feb 27, 2018 1:43 am
- Forum: ESP-IDF
- Topic: Any way to override ESP IDF constant #defines
- Replies: 9
- Views: 10494
Re: Any way to override ESP IDF constant #defines
Thanks for the replies. I was really just wondering if there is a standard way of overriding these things. Given that we already have our own fork of ESP IDF, it is not too onerous to change it, but we don't want to diverge from mainline too much. We'll make the change in an extensible way, then sen...
- Mon Feb 26, 2018 11:31 pm
- Forum: ESP-IDF
- Topic: [solved] SDMMC 1-line mode, free-up unused pins
- Replies: 4
- Views: 7401
Re: SDMMC 1-line mode, free-up unused pins
No. Straight C code, using latest ESP IDF.WiFive wrote:Are you talking about the Arduino version? If so you should post in Arduino forum.
- Mon Feb 26, 2018 2:43 pm
- Forum: ESP-IDF
- Topic: [solved] SDMMC 1-line mode, free-up unused pins
- Replies: 4
- Views: 7401
[solved] SDMMC 1-line mode, free-up unused pins
I'm running the SDMMC in 1-line mode, so would like to free-up the unused pins for other functions. Specifically SD_DATA1, SD_DATA2, and SD_DATA3. However, after mounting the SD CARD, it seems the driver re-maps those pins to SDMMC and I can't access them properly in the UART driver I am trying to w...
- Mon Feb 26, 2018 6:54 am
- Forum: ESP-IDF
- Topic: Any way to override ESP IDF constant #defines
- Replies: 9
- Views: 10494
Any way to override ESP IDF constant #defines
Is there any way to override ESP IDF constant #defines, to be specific to the app we are developing (built against ESP IDF).
For example, components/lwip/include/lwip/port/lwipopts.h I need a different implementation for #define SNTP_SET_SYSTEM_TIME_US.
Any suggestions appreciated.
For example, components/lwip/include/lwip/port/lwipopts.h I need a different implementation for #define SNTP_SET_SYSTEM_TIME_US.
Any suggestions appreciated.
- Mon Feb 26, 2018 2:04 am
- Forum: ESP-IDF
- Topic: Need Help to use PSRAM with External efused Flash(16 MB)
- Replies: 7
- Views: 9323
Re: Need Help to use PSRAM with External efused Flash(16 MB)
This is a rabbit hole that we went down, and lost about two months (on top of another three months chasing an SDCARD bug vs external flash). The idea is great. Just use another GPIO for a CS line, add an external flash chip, and burn the eFuses. For the WROOM32, we got it to working ok (apart from t...