You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by vi...@apache.org on 2020/05/13 20:20:59 UTC
[mynewt-core] branch master updated: OTP Tool: Comment about BSP
Specific commands.
This is an automated email from the ASF dual-hosted git repository.
vipulrahane pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-core.git
The following commit(s) were added to refs/heads/master by this push:
new f8ae2c3 OTP Tool: Comment about BSP Specific commands.
new 71bc0c3 Merge pull request #2144 from nkaje/HWID_BLE
f8ae2c3 is described below
commit f8ae2c3c00fc2d0d8053be36e3dedee1d6b71cf6
Author: Naveen Kaje <na...@juul.com>
AuthorDate: Fri Dec 20 20:16:33 2019 -0600
OTP Tool: Comment about BSP Specific commands.
Update comment about Cmds. For application/custom BSP specific
commands, define them in the custom BSP this module. Commands
can be assigned starting at an offset so that this command set
can be expanded if required.
Signed-off-by: Naveen Kaje <na...@juul.com>
---
hw/bsp/dialog_da1469x-dk-pro/otp_tool.py | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/hw/bsp/dialog_da1469x-dk-pro/otp_tool.py b/hw/bsp/dialog_da1469x-dk-pro/otp_tool.py
index bd39981..2372275 100755
--- a/hw/bsp/dialog_da1469x-dk-pro/otp_tool.py
+++ b/hw/bsp/dialog_da1469x-dk-pro/otp_tool.py
@@ -33,7 +33,10 @@ sys.path.append(os.path.join(os.getcwd(), "repos", "mcuboot", "scripts",
"imgtool"))
import keys as keys
-
+# Cmds that apply for the dialog BSP are defined here.
+# Custom Commands are defined in the custom BSP starting
+# at a different offset so that the default command set
+# can be expanded if needed.
class Cmd(object):
OTP_READ_KEY = 0
OTP_WRITE_KEY = 1
@@ -45,7 +48,6 @@ class Cmd(object):
FLASH_ERASE = 7
TEST_ALIVE = 8
-
class cmd_no_payload(NamedTuple):
som: int
cmd: int