mirror of
https://github.com/espruino/Espruino.git
synced 2025-12-08 19:06:15 +00:00
adding TF compile
This commit is contained in:
parent
cf2e0727d7
commit
87b37b0d97
@ -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',
|
||||
|
||||
@ -1,4 +1,3 @@
|
||||
CFLAGS += -std=gnu99
|
||||
DEFINES += -DEMSCRIPTEN
|
||||
INCLUDE += -I$(ROOT)/targets/emscripten
|
||||
SOURCES += \
|
||||
|
||||
@ -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_ */
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user