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 2017/02/03 23:52:49 UTC
[2/2] incubator-mynewt-core git commit: MYNEWT-618;
add a gpio for testing serial bootloader with nrf52dk.
MYNEWT-618; add a gpio for testing serial bootloader with nrf52dk.
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/6b0d977c
Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/tree/6b0d977c
Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/diff/6b0d977c
Branch: refs/heads/1_0_0_b2_dev
Commit: 6b0d977c3d3c9b78b7124c46c66a33c2f26cb699
Parents: 2c90937
Author: Marko Kiiskila <ma...@runtime.io>
Authored: Fri Feb 3 15:51:20 2017 -0800
Committer: Marko Kiiskila <ma...@runtime.io>
Committed: Fri Feb 3 15:51:20 2017 -0800
----------------------------------------------------------------------
hw/bsp/nrf52dk/include/bsp/bsp.h | 8 ++++++++
1 file changed, 8 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/6b0d977c/hw/bsp/nrf52dk/include/bsp/bsp.h
----------------------------------------------------------------------
diff --git a/hw/bsp/nrf52dk/include/bsp/bsp.h b/hw/bsp/nrf52dk/include/bsp/bsp.h
index 7c6df66..2805a6c 100644
--- a/hw/bsp/nrf52dk/include/bsp/bsp.h
+++ b/hw/bsp/nrf52dk/include/bsp/bsp.h
@@ -22,6 +22,8 @@
#include <inttypes.h>
+#include <syscfg/syscfg.h>
+
#ifdef __cplusplus
extern "C" {
#endif
@@ -44,6 +46,12 @@ extern uint8_t _ram_start;
/* UART info */
#define CONSOLE_UART "uart0"
+#if MYNEWT_VAL(BOOT_SERIAL)
+#define BOOT_SERIAL_DETECT_PIN 13 /* Button 1 */
+#define BOOT_SERIAL_DETECT_PIN_CFG HAL_GPIO_PULL_UP
+#define BOOT_SERIAL_DETECT_PIN_VAL 0
+#endif
+
#define NFFS_AREA_MAX (8)
#ifdef __cplusplus