Add conditional compilation for open_esplib code

This commit is contained in:
Alex Stewart 2016-03-22 17:43:07 -07:00 committed by Angus Gratton
parent 4d6fa0ccfa
commit 3e5af479bc
8 changed files with 78 additions and 7 deletions

View file

@ -1,3 +1,7 @@
#include "open_esplibs.h"
#if OPEN_LIBMAIN_UART
// The contents of this file are only built if OPEN_LIBMAIN_UART is set to true
#include "espressif/sdk_private.h"
#include "esp/uart_regs.h"
@ -15,3 +19,4 @@ void sdk_Uart_Init(void) {
/* No-Op */
}
#endif /* OPEN_LIBMAIN_UART */