You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by cc...@apache.org on 2017/02/06 23:33:22 UTC

incubator-mynewt-core git commit: MCUB-32 Mfg TLV for flash traits (min-write-sz)

Repository: incubator-mynewt-core
Updated Branches:
  refs/heads/develop 8092bf708 -> 3f8993434


MCUB-32 Mfg TLV for flash traits (min-write-sz)


Project: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/commit/3f899343
Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/tree/3f899343
Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/diff/3f899343

Branch: refs/heads/develop
Commit: 3f89934343584bee4929c50cdfb889543b2197ad
Parents: 8092bf7
Author: Christopher Collins <cc...@apache.org>
Authored: Mon Feb 6 15:27:50 2017 -0800
Committer: Christopher Collins <cc...@apache.org>
Committed: Mon Feb 6 15:32:34 2017 -0800

----------------------------------------------------------------------
 sys/mfg/include/mfg/mfg.h | 9 +++++++++
 1 file changed, 9 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/3f899343/sys/mfg/include/mfg/mfg.h
----------------------------------------------------------------------
diff --git a/sys/mfg/include/mfg/mfg.h b/sys/mfg/include/mfg/mfg.h
index 7c0bce3..ec7996b 100644
--- a/sys/mfg/include/mfg/mfg.h
+++ b/sys/mfg/include/mfg/mfg.h
@@ -30,6 +30,9 @@
 #define MFG_META_TLV_TYPE_HASH          0x01
 #define MFG_META_TLV_TYPE_FLASH_AREA    0x02
 
+/** Informational only; not read by firmware. */
+#define MFG_META_TLV_TYPE_FLASH_TRAITS  0x03
+
 struct mfg_meta_tlv {
     uint8_t type;
     uint8_t size;
@@ -44,6 +47,12 @@ struct mfg_meta_flash_area {
     uint32_t size;
 };
 
+/** Informational only; not read by firmware. */
+struct mfg_meta_flash_traits {
+    uint8_t device_id;
+    uint8_t min_write_sz;
+}
+
 int mfg_next_tlv(struct mfg_meta_tlv *tlv, uint32_t *off);
 int mfg_next_tlv_with_type(struct mfg_meta_tlv *tlv, uint32_t *off,
                            uint8_t type);