adding TF compile

This commit is contained in:
Gordon Williams 2019-12-02 17:34:18 +00:00
parent cf2e0727d7
commit 87b37b0d97
3 changed files with 3 additions and 4 deletions

View File

@ -22,7 +22,7 @@ info = {
'build' : {
'libraries' : [
# 'NET',
# 'TENSORFLOW',
'TENSORFLOW',
'GRAPHICS',
# 'FILESYSTEM',
# 'CRYPTO','SHA256','SHA512',
@ -31,7 +31,7 @@ info = {
],
'makefile' : [
'EMSCRIPTEN=1',
# 'DEFINES += -DUSE_TENSORFLOW',
'DEFINES += -DUSE_TENSORFLOW',
# 'DEFINES+=-DCUSTOM_GETBATTERY=jswrap_banglejs_getBattery',
'DEFINES+=-DDUMP_IGNORE_VARIABLES=\'"g\\0"\'',
'DEFINES+=-DUSE_FONT_6X8 -DGRAPHICS_PALETTED_IMAGES -DUSE_LCD_EMSCRTIPTEN',

View File

@ -1,4 +1,3 @@
CFLAGS += -std=gnu99
DEFINES += -DEMSCRIPTEN
INCLUDE += -I$(ROOT)/targets/emscripten
SOURCES += \

View File

@ -463,7 +463,7 @@ JshPinState jshVirtualPinGetState(Pin pin);
#define WAIT_UNTIL(CONDITION, REASON) { \
int timeout = WAIT_UNTIL_N_CYCLES; \
while (!(CONDITION) && !jspIsInterrupted() && (timeout--)>0); \
if (timeout<=0 || jspIsInterrupted()) { jsExceptionHere(JSET_INTERNALERROR, "Timeout on "REASON); } \
if (timeout<=0 || jspIsInterrupted()) { jsExceptionHere(JSET_INTERNALERROR, "Timeout on " REASON); } \
}
#endif /* JSHARDWARE_H_ */