Add conditional compilation for open_esplib code
This commit is contained in:
parent
4d6fa0ccfa
commit
3e5af479bc
8 changed files with 78 additions and 7 deletions
|
|
@ -1,3 +1,7 @@
|
|||
#include "open_esplibs.h"
|
||||
#if OPEN_LIBMAIN_MISC
|
||||
// The contents of this file are only built if OPEN_LIBMAIN_MISC is set to true
|
||||
|
||||
#include "espressif/esp_misc.h"
|
||||
#include "esp/gpio_regs.h"
|
||||
#include "esp/rtc_regs.h"
|
||||
|
|
@ -57,3 +61,5 @@ uint8_t sdk_rtc_get_reset_reason(void) {
|
|||
RTC.RESET_REASON0 &= ~RTC_RESET_REASON0_SOMETHING;
|
||||
return reason;
|
||||
}
|
||||
|
||||
#endif /* OPEN_LIBMAIN_MISC */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue