Skip to content

Commit

Permalink
Skip CRT startup code for Puck.js to save some space, as suggested in 4…
Browse files Browse the repository at this point in the history
  • Loading branch information
gfwilliams committed Jul 2, 2024
1 parent 0f471f5 commit 972be5e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
: Bangle.js2: Add 'Bangle.touchRd()', 'Bangle.touchWr()'
Bangle.js2: After Bangle.showTestScreen, put Bangle.js into a hard off state (not soft off)
Fix for unexpected power draw on newest batch of Bangle.js devices
Puck.js: skip CRT startup code to save ~300b

2v23 : Fix XON/OFF thresholds to be based off the correct buffer size
Bangle.js2: Added BANGLE2_IFLASH target for firmware using internal flash for js files (currently only partially working)
Expand Down
2 changes: 2 additions & 0 deletions boards/PUCKJS.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@
'DEFINES+=-DCUSTOM_GETBATTERY=jswrap_puck_getBattery',
'DEFINES+=-DNFC_DEFAULT_URL=\'"https://puck-js.com/go"\'',
'DEFINES+=-DAPP_TIMER_OP_QUEUE_SIZE=3', # Puck.js magnetometer poll
'LDFLAGS += -nostartfiles',
'ASFLAGS += -D__STARTUP_CLEAR_BSS -D__START=main',
'DFU_PRIVATE_KEY=targets/nrf5x_dfu/dfu_private_key.pem',
'DFU_SETTINGS=--application-version 0xff --hw-version 52 --sd-req 0x8C,0x91',
'DEFINES+=-DESPR_PACKED_SYMPTR', # Pack builtin symbols' offset into pointer to save 2 bytes/symbol
Expand Down

0 comments on commit 972be5e

Please sign in to comment.