You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by ma...@apache.org on 2016/06/23 23:38:25 UTC
[2/2] incubator-mynewt-core git commit: MYNEWT-273;
hal - add prototype for bsp_hw_id().
MYNEWT-273; hal - add prototype for bsp_hw_id().
This should return unique ID for the BSP. Preferably serial
number of the MCU.
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/b633dfb7
Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/tree/b633dfb7
Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/diff/b633dfb7
Branch: refs/heads/develop
Commit: b633dfb7869f14d6502105ef0a0bfc012a76358b
Parents: e0c73d2
Author: Marko Kiiskila <ma...@runtime.io>
Authored: Thu Jun 23 16:31:19 2016 -0700
Committer: Marko Kiiskila <ma...@runtime.io>
Committed: Thu Jun 23 16:37:53 2016 -0700
----------------------------------------------------------------------
hw/hal/include/hal/hal_bsp.h | 9 +++++++++
1 file changed, 9 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/b633dfb7/hw/hal/include/hal/hal_bsp.h
----------------------------------------------------------------------
diff --git a/hw/hal/include/hal/hal_bsp.h b/hw/hal/include/hal/hal_bsp.h
index 848a7c5..ae96789 100644
--- a/hw/hal/include/hal/hal_bsp.h
+++ b/hw/hal/include/hal/hal_bsp.h
@@ -48,6 +48,9 @@ int bsp_imgr_current_slot(void);
*/
void *_sbrk(int incr);
+/*
+ * Report which memory areas should be included inside a coredump.
+ */
struct bsp_mem_dump {
void *bmd_start;
uint32_t bmd_size;
@@ -55,6 +58,12 @@ struct bsp_mem_dump {
const struct bsp_mem_dump *bsp_core_dump(int *area_cnt);
+/*
+ * Get unique HW identifier/serial number for platform.
+ * Returns the number of bytes filled in.
+ */
+int bsp_hw_id(uint8_t *id, int max_len);
+
#ifdef __cplusplus
}
#endif