Skip to content

Commit

Permalink
two places to change
Browse files Browse the repository at this point in the history
  • Loading branch information
tballmsft committed Mar 7, 2025
1 parent 0e55453 commit a424c45
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pxtcompiler/emitter/hexfile.ts
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,7 @@ namespace ts.pxtc {
checkFuns();
return


// TODO: read in the top of flash
function readPointers(s: string) {
let step = opts.shortPointers ? 4 : 8
while (s.length >= step) {
Expand Down
2 changes: 2 additions & 0 deletions pxtlib/cpp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1090,6 +1090,8 @@ namespace pxt.cpp {
if (compile.uf2Family)
pxtConfig += `#define PXT_UF2_FAMILY ${compile.uf2Family}\n`

// TODO: C++ generation for adding in top of flash from CODAL
// TODO: do we need a special include to get the TOP_OF_FLASH from codal?
res.generatedFiles[sourcePath + "pointers.cpp"] = includesInc + protos.finish() + abiInc +
pointerIncPre + pointersInc + "\nPXT_SHIMS_END\n"
res.generatedFiles[sourcePath + "pxtconfig.h"] = pxtConfig
Expand Down

0 comments on commit a424c45

Please sign in to comment.