Skip to content

Commit

Permalink
new: SD card initial support to CRC16 on (ESP32 compatibility).
Browse files Browse the repository at this point in the history
  • Loading branch information
lcgamboa committed Sep 24, 2023
1 parent 3d43532 commit 9fe60c3
Show file tree
Hide file tree
Showing 5 changed files with 222 additions and 56 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ PACKAGE=picsimlab
MAINVER=0
MINORVER=9
VERSION=0.9.0
DATE=230910
DATE=230924
VERSION_STABLE=0.9.0
18 changes: 11 additions & 7 deletions src/Makefile.JS
Original file line number Diff line number Diff line change
Expand Up @@ -15,25 +15,29 @@ execdir= ${prefix}/bin/
#lxrad automatic generated block start, don't edit below!

override CXXFLAGS+= -D_ARCH_=\"Javascript\" -D_DATE_=\"${DATE}\"
override CXXFLAGS+= -O2 -flto=auto
#override CXXFLAGS+= -g4 --source-map-base -Werror
override CXXFLAGS+= -O2
#override CXXFLAGS+= -fsanitize=address
#override CXXFLAGS+= -gsource-map

override CXXFLAGS+= -DEXT_BROWSER -DNO_DEBUG -DNO_TOOLS \
-s USE_SDL=2 -s USE_SDL_IMAGE=2 -s USE_SDL_GFX=2\
-s SDL2_IMAGE_FORMATS='["png","bmp"]' -s USE_SDL_TTF=2 --preload-file assets \
-s SDL2_IMAGE_FORMATS='["png","bmp"]' -s USE_SDL_TTF=2 \
-D_VERSION_=\"${VERSION}\" -Wall -D_SHARE_=\"/assets/share/\" -I../../LXRAD_SDL2/include/ \
-D_LIB_=\"../lib/picsimlab/\" \
-I../../picsim/include/ -I../../ucsim-0.6/picsimlab/ \
-I../../simavr/simavr/ -DEXT_BROWSER_EXAMPLES \
-I../teste/glib_js/target/include -I../teste/glib_js/target/include/glib-2.0 \
-I../teste/glib_js/target/lib/glib-2.0/include #--preload-file home
-I../teste/glib_js/target/lib/glib-2.0/include

override CXXFLAGS+= --pre-js load.js
# -s "BINARYEN_TRAP_MODE='clamp'"
#override CXXFLAGS+= -s "BINARYEN_TRAP_MODE='clamp'"

LINK= -s DEMANGLE_SUPPORT=0 -s SAFE_HEAP=0 -s ASSERTIONS=0 -s TOTAL_MEMORY=128MB \
-s EXPORTED_FUNCTIONS='["_main","_file_ready","_lxrad_scale_up","_lxrad_scale_down","_dirt_load","_SimRun","_SimStat"]' \
-s EXPORTED_RUNTIME_METHODS='["ccall", "cwrap"]'
-s EXPORTED_RUNTIME_METHODS='["ccall", "cwrap"]' --pre-js load.js --preload-file assets

#LINK+= --preload-file home
#LINK+= -s ALLOW_MEMORY_GROWTH


#CXXFLAGS+=-s USE_PTHREADS=1 -s PTHREAD_POOL_SIZE=2
#CXXFLAGS+=--emrun
Expand Down
9 changes: 4 additions & 5 deletions src/Makefile.JSMT
Original file line number Diff line number Diff line change
Expand Up @@ -16,23 +16,22 @@ execdir= ${prefix}/bin/

#-Werror
override CXXFLAGS+= -D_ARCH_=\"Javascript_MT\" -D_DATE_=\"${DATE}\"
override CXXFLAGS+= -DEXT_BROWSER -DNO_DEBUG -DNO_TOOLS -O2 -flto=auto\
override CXXFLAGS+= -s USE_PTHREADS=1
override CXXFLAGS+= -DEXT_BROWSER -DNO_DEBUG -DNO_TOOLS -O2 \
-s USE_SDL=2 -s USE_SDL_IMAGE=2 -s USE_SDL_GFX=2\
-s SDL2_IMAGE_FORMATS='["png","bmp"]' -s USE_SDL_TTF=2 --preload-file assets \
-s SDL2_IMAGE_FORMATS='["png","bmp"]' -s USE_SDL_TTF=2 \
-D_VERSION_=\"${VERSION}\" -Wall -D_SHARE_=\"/assets/share/\" -I../../LXRAD_SDL2/include/ \
-D_LIB_=\"../lib/picsimlab/\" \
-I../../picsim/include/ -I../../ucsim-0.6/picsimlab/ \
-I../../simavr/simavr/ -DEXT_BROWSER_EXAMPLES \
-I../teste/glib_js/target/include -I../teste/glib_js/target/include/glib-2.0 \
-I../teste/glib_js/target/lib/glib-2.0/include # --preload-file home

override CXXFLAGS+= --pre-js load.js
# -s "BINARYEN_TRAP_MODE='clamp'"
override CXXFLAGS+= -s USE_PTHREADS=1

LINK= -s DEMANGLE_SUPPORT=0 -s SAFE_HEAP=0 -s ASSERTIONS=0 -s TOTAL_MEMORY=128MB -s WASM=1 -s PTHREAD_POOL_SIZE=1 \
-s EXPORTED_FUNCTIONS='["_main","_file_ready","_lxrad_scale_up","_lxrad_scale_down","_dirt_load","_SimRun","_SimStat"]' \
-s EXPORTED_RUNTIME_METHODS='["ccall", "cwrap"]'
-s EXPORTED_RUNTIME_METHODS='["ccall", "cwrap"]' --pre-js load.js --preload-file assets

#-s PROXY_TO_PTHREAD
#CXXFLAGS+=--emrun
Expand Down
Loading

0 comments on commit 9fe60c3

Please sign in to comment.