1
0
mirror of https://github.com/thooge/esp32-nmea2000-obp60.git synced 2026-03-28 18:06:37 +01:00

Improve task start code for sensors and spiled

This commit is contained in:
2025-08-26 12:23:39 +02:00
parent 494acbf0d0
commit 8e72537286
6 changed files with 19 additions and 1064 deletions

View File

@@ -205,6 +205,11 @@ def generateCfg(inFile,outFile,impl):
secret="false";
if item.get('type') == 'password':
secret="true"
"""
PSRAM Allocator TODO Tests
new (heap_caps_malloc(sizeof(GwConfigInterface), MALLOC_CAP_SPIRAM))
"""
#data+=" new (heap_caps_malloc(sizeof(GwConfigInterface), MALLOC_CAP_SPIRAM)) GwConfigInterface(%s,\"%s\",%s);\n"%(name,item.get('default'),secret)
data+=" new GwConfigInterface(%s,\"%s\",%s);\n"%(name,item.get('default'),secret)
data+='}\n'
writeFileIfChanged(outFile,data)
@@ -505,6 +510,8 @@ def prebuild(env):
env.Append(CPPDEFINES=[('GWDEVVERSION',version)])
def cleangenerated(source, target, env):
# TODO source / target order?
print("CLEAN: {} - {}".format(source, target))
od=outPath()
if os.path.isdir(od):
print("#cleaning up %s"%od)
@@ -514,7 +521,6 @@ def cleangenerated(source, target, env):
fn=os.path.join(od,f)
os.unlink(f)
print("#prescript...")
prebuild(env)
board="PLATFORM_BOARD_%s"%env["BOARD"].replace("-","_").upper()