Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
maxgerhardt authored Sep 23, 2023
1 parent 758aff9 commit 817eadb
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
12 changes: 12 additions & 0 deletions libraries/Bluefruit52Lib/extra_script.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import os

Import("env")

# The only purpose of this extra script is to set the `NRF_CRYPTOCELL` macro for the
# nrf52840 series because the original `NRF_CRYPTOCELL` macro is set in the framework
# sources and not visible when PlatformIO LDF resolves dependencies.
if env.BoardConfig().get("build.mcu", "").startswith("nrf5284"):
env.Append(
CPPDEFINES=[("NRF_CRYPTOCELL", "((NRF_CRYPTOCELL_Type*) NRF_CRYPTOCELL_BASE)")],

)
7 changes: 7 additions & 0 deletions libraries/Bluefruit52Lib/library.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"name": "Adafruit Bluefruit nRF52 Libraries",
"build": {
"libLDFMode": "chain+",
"extraScript": "extra_script.py"
}
}

0 comments on commit 817eadb

Please sign in to comment.