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/01/13 21:03:06 UTC
incubator-mynewt-larva git commit: Add bsp_imgr_current_slot() to
stm32f3discovery board.
Repository: incubator-mynewt-larva
Updated Branches:
refs/heads/master 7c0ccd3a8 -> 8ce98b0a1
Add bsp_imgr_current_slot() to stm32f3discovery board.
Project: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-larva/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-larva/commit/8ce98b0a
Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-larva/tree/8ce98b0a
Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-larva/diff/8ce98b0a
Branch: refs/heads/master
Commit: 8ce98b0a1248a7b9134e613c63031f0ca82fca4c
Parents: 7c0ccd3
Author: Marko Kiiskila <ma...@runtime.io>
Authored: Wed Jan 13 12:02:41 2016 -0800
Committer: Marko Kiiskila <ma...@runtime.io>
Committed: Wed Jan 13 12:02:41 2016 -0800
----------------------------------------------------------------------
hw/bsp/stm32f3discovery/include/bsp/bsp.h | 2 ++
hw/bsp/stm32f3discovery/src/os_bsp.c | 6 ++++++
2 files changed, 8 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-larva/blob/8ce98b0a/hw/bsp/stm32f3discovery/include/bsp/bsp.h
----------------------------------------------------------------------
diff --git a/hw/bsp/stm32f3discovery/include/bsp/bsp.h b/hw/bsp/stm32f3discovery/include/bsp/bsp.h
index e239a71..84be983 100644
--- a/hw/bsp/stm32f3discovery/include/bsp/bsp.h
+++ b/hw/bsp/stm32f3discovery/include/bsp/bsp.h
@@ -27,6 +27,8 @@ extern "C" {
#define UART_CNT 1
#define CONSOLE_UART 0
+int bsp_imgr_current_slot(void);
+
#ifdef __cplusplus
}
#endif
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-larva/blob/8ce98b0a/hw/bsp/stm32f3discovery/src/os_bsp.c
----------------------------------------------------------------------
diff --git a/hw/bsp/stm32f3discovery/src/os_bsp.c b/hw/bsp/stm32f3discovery/src/os_bsp.c
index 153a255..f7605d3 100644
--- a/hw/bsp/stm32f3discovery/src/os_bsp.c
+++ b/hw/bsp/stm32f3discovery/src/os_bsp.c
@@ -49,6 +49,12 @@ static struct flash_area bsp_flash_areas[] = {
}
};
+int
+bsp_imgr_current_slot(void)
+{
+ return FLASH_AREA_IMAGE_0;
+}
+
void
os_bsp_init(void)
{