[mynewt-core] branch master updated: bsp/pinetime: Add bsp for PineTime smartwatch

2020-03-29 Thread mlaz
This is an automated email from the ASF dual-hosted git repository.

mlaz 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 89c3805  bsp/pinetime: Add bsp for PineTime smartwatch
 new 220ddec  Merge pull request #2253 from caspermeijn/bsp-pinetime
89c3805 is described below

commit 89c38058336a7662b54cb6fc7889893c7e096675
Author: Casper Meijn 
AuthorDate: Thu Mar 26 13:42:07 2020 +0100

bsp/pinetime: Add bsp for PineTime smartwatch

This adds the bsp boilerplate including the pin definitions for the
peripherals.
---
 hw/bsp/pinetime/boot-pinetime.ld   |  25 ++
 hw/bsp/pinetime/bsp.yml|  62 +
 hw/bsp/pinetime/include/bsp/bsp.h  |  96 +++
 hw/bsp/pinetime/pinetime.ld|  27 ++
 hw/bsp/pinetime/pinetime_debug.sh  |  38 +++
 hw/bsp/pinetime/pinetime_download.sh   |  50 
 hw/bsp/pinetime/pkg.yml|  37 +++
 .../src/arch/cortex_m4/gcc_startup_nrf52.s | 301 +
 hw/bsp/pinetime/src/hal_bsp.c  |  99 +++
 hw/bsp/pinetime/src/sbrk.c |  58 
 hw/bsp/pinetime/syscfg.yml |  69 +
 11 files changed, 862 insertions(+)

diff --git a/hw/bsp/pinetime/boot-pinetime.ld b/hw/bsp/pinetime/boot-pinetime.ld
new file mode 100644
index 000..d1f1b99
--- /dev/null
+++ b/hw/bsp/pinetime/boot-pinetime.ld
@@ -0,0 +1,25 @@
+/* Linker script for Nordic Semiconductor nRF5 devices
+ *
+ * Version: Sourcery G++ 4.5-1
+ * Support: https://support.codesourcery.com/GNUToolchain/
+ *
+ * Copyright (c) 2007, 2008, 2009, 2010 CodeSourcery, Inc.
+ *
+ * The authors hereby grant permission to use, copy, modify, distribute,
+ * and license this software and its documentation for any purpose, provided
+ * that existing copyright notices are retained in all copies and that this
+ * notice is included verbatim in any distributions.  No written agreement,
+ * license, or royalty fee is required for any of the authorized uses.
+ * Modifications to this software may be copyrighted by their authors
+ * and need not follow the licensing terms described here, provided that
+ * the new terms are clearly indicated on the first page of each file where
+ * they apply.
+ */
+MEMORY
+{
+  FLASH (rx) : ORIGIN = 0x, LENGTH = 0x4000
+  RAM (rwx) : ORIGIN = 0x2000, LENGTH = 0x1
+}
+
+/* The bootloader does not contain an image header */
+_imghdr_size = 0x0;
diff --git a/hw/bsp/pinetime/bsp.yml b/hw/bsp/pinetime/bsp.yml
new file mode 100644
index 000..c89953d
--- /dev/null
+++ b/hw/bsp/pinetime/bsp.yml
@@ -0,0 +1,62 @@
+#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+#  http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+#
+
+bsp.arch: cortex_m4
+bsp.compiler: compiler/arm-none-eabi-m4
+bsp.linkerscript:
+- "hw/bsp/pinetime/pinetime.ld"
+- "@apache-mynewt-core/hw/mcu/nordic/nrf52xxx/nrf52.ld"
+bsp.linkerscript.BOOT_LOADER.OVERWRITE:
+- "hw/bsp/pinetime/boot-pinetime.ld"
+- "@apache-mynewt-core/hw/mcu/nordic/nrf52xxx/nrf52.ld"
+bsp.part2linkerscript: "hw/bsp/pinetime/split-pinetime.ld"
+bsp.downloadscript: "hw/bsp/pinetime/pinetime_download.sh"
+bsp.debugscript: "hw/bsp/pinetime/pinetime_debug.sh"
+
+bsp.flash_map:
+areas:
+# System areas.
+FLASH_AREA_BOOTLOADER:
+device: 0
+offset: 0x
+size: 16kB
+FLASH_AREA_IMAGE_0:
+device: 0
+offset: 0x8000
+size: 232kB
+FLASH_AREA_IMAGE_1:
+device: 0
+offset: 0x00042000
+size: 232kB
+FLASH_AREA_IMAGE_SCRATCH:
+device: 0
+offset: 0x0007c000
+size: 4kB
+
+# User areas.
+FLASH_AREA_REBOOT_LOG:
+user_id: 0
+device: 0
+offset: 0x4000
+size: 16kB
+FLASH_AREA_NFFS:
+user_id: 1
+device: 0
+offset: 0x0007d000
+size: 12kB
diff --git a/hw/bsp/pinetime/include/bsp/bsp.h 
b/hw/bsp/pinetime/include/bsp/bsp.h

[GitHub] [mynewt-core] mlaz merged pull request #2253: bsp/pinetime: Add bsp for PineTime smartwatch

2020-03-29 Thread GitBox
mlaz merged pull request #2253: bsp/pinetime: Add bsp for PineTime smartwatch
URL: https://github.com/apache/mynewt-core/pull/2253
 
 
   


This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services


[GitHub] [mynewt-core] apache-mynewt-bot removed a comment on issue #2253: bsp/pinetime: Add bsp for PineTime smartwatch

2020-03-29 Thread GitBox
apache-mynewt-bot removed a comment on issue #2253: bsp/pinetime: Add bsp for 
PineTime smartwatch
URL: https://github.com/apache/mynewt-core/pull/2253#issuecomment-605525744
 
 
   
   
   
   ## RAT Report (2020-03-28 22:05:02)
   
   ## New files with unknown licenses
   
   * https://github.com/apache/mynewt-core/blob/89c38058336a7662b54cb6fc7889893c7e096675/hw/bsp/pinetime/boot-pinetime.ld";>hw/bsp/pinetime/boot-pinetime.ld
   
   ## 13 new files were excluded from check (.rat-excludes)
   
   
 Detailed analysis
   
   ## New files in this PR
   
   | License | File |
   |-|--|
   | ?  | https://github.com/apache/mynewt-core/blob/89c38058336a7662b54cb6fc7889893c7e096675/hw/bsp/pinetime/boot-pinetime.ld";>hw/bsp/pinetime/boot-pinetime.ld
 |
   | AL | https://github.com/apache/mynewt-core/blob/89c38058336a7662b54cb6fc7889893c7e096675/hw/bsp/pinetime/bsp.yml";>hw/bsp/pinetime/bsp.yml
 |
   | AL | https://github.com/apache/mynewt-core/blob/89c38058336a7662b54cb6fc7889893c7e096675/hw/bsp/pinetime/pinetime.ld";>hw/bsp/pinetime/pinetime.ld
 |
   | AL | https://github.com/apache/mynewt-core/blob/89c38058336a7662b54cb6fc7889893c7e096675/hw/bsp/pinetime/pinetime_debug.sh";>hw/bsp/pinetime/pinetime_debug.sh
 |
   | AL | https://github.com/apache/mynewt-core/blob/89c38058336a7662b54cb6fc7889893c7e096675/hw/bsp/pinetime/pinetime_download.sh";>hw/bsp/pinetime/pinetime_download.sh
 |
   | AL | https://github.com/apache/mynewt-core/blob/89c38058336a7662b54cb6fc7889893c7e096675/hw/bsp/pinetime/pkg.yml";>hw/bsp/pinetime/pkg.yml
 |
   | AL | https://github.com/apache/mynewt-core/blob/89c38058336a7662b54cb6fc7889893c7e096675/hw/bsp/pinetime/syscfg.yml";>hw/bsp/pinetime/syscfg.yml
 |
   | AL | https://github.com/apache/mynewt-core/blob/89c38058336a7662b54cb6fc7889893c7e096675/hw/bsp/pinetime/include/bsp/bsp.h";>hw/bsp/pinetime/include/bsp/bsp.h
 |
   | AL | https://github.com/apache/mynewt-core/blob/89c38058336a7662b54cb6fc7889893c7e096675/hw/bsp/pinetime/src/hal_bsp.c";>hw/bsp/pinetime/src/hal_bsp.c
 |
   | AL | https://github.com/apache/mynewt-core/blob/89c38058336a7662b54cb6fc7889893c7e096675/hw/bsp/pinetime/src/sbrk.c";>hw/bsp/pinetime/src/sbrk.c
 |
   
   
   


This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services


[GitHub] [mynewt-core] apache-mynewt-bot commented on issue #2253: bsp/pinetime: Add bsp for PineTime smartwatch

2020-03-29 Thread GitBox
apache-mynewt-bot commented on issue #2253: bsp/pinetime: Add bsp for PineTime 
smartwatch
URL: https://github.com/apache/mynewt-core/pull/2253#issuecomment-605619858
 
 
   
   
   
   ## Style check summary
   
    No suggestions at this time!
   


This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services


[GitHub] [mynewt-core] apache-mynewt-bot commented on issue #2253: bsp/pinetime: Add bsp for PineTime smartwatch

2020-03-29 Thread GitBox
apache-mynewt-bot commented on issue #2253: bsp/pinetime: Add bsp for PineTime 
smartwatch
URL: https://github.com/apache/mynewt-core/pull/2253#issuecomment-605619859
 
 
   
   
   
   ## RAT Report (2020-03-29 11:11:24)
   
   ## New files with unknown licenses
   
   * https://github.com/apache/mynewt-core/blob/89c38058336a7662b54cb6fc7889893c7e096675/hw/bsp/pinetime/boot-pinetime.ld";>hw/bsp/pinetime/boot-pinetime.ld
   
   ## 11 new files were excluded from check (.rat-excludes)
   
   
 Detailed analysis
   
   ## New files in this PR
   
   | License | File |
   |-|--|
   | ?  | https://github.com/apache/mynewt-core/blob/89c38058336a7662b54cb6fc7889893c7e096675/hw/bsp/pinetime/boot-pinetime.ld";>hw/bsp/pinetime/boot-pinetime.ld
 |
   | AL | https://github.com/apache/mynewt-core/blob/89c38058336a7662b54cb6fc7889893c7e096675/hw/bsp/pinetime/bsp.yml";>hw/bsp/pinetime/bsp.yml
 |
   | AL | https://github.com/apache/mynewt-core/blob/89c38058336a7662b54cb6fc7889893c7e096675/hw/bsp/pinetime/pinetime.ld";>hw/bsp/pinetime/pinetime.ld
 |
   | AL | https://github.com/apache/mynewt-core/blob/89c38058336a7662b54cb6fc7889893c7e096675/hw/bsp/pinetime/pinetime_debug.sh";>hw/bsp/pinetime/pinetime_debug.sh
 |
   | AL | https://github.com/apache/mynewt-core/blob/89c38058336a7662b54cb6fc7889893c7e096675/hw/bsp/pinetime/pinetime_download.sh";>hw/bsp/pinetime/pinetime_download.sh
 |
   | AL | https://github.com/apache/mynewt-core/blob/89c38058336a7662b54cb6fc7889893c7e096675/hw/bsp/pinetime/pkg.yml";>hw/bsp/pinetime/pkg.yml
 |
   | AL | https://github.com/apache/mynewt-core/blob/89c38058336a7662b54cb6fc7889893c7e096675/hw/bsp/pinetime/syscfg.yml";>hw/bsp/pinetime/syscfg.yml
 |
   | AL | https://github.com/apache/mynewt-core/blob/89c38058336a7662b54cb6fc7889893c7e096675/hw/bsp/pinetime/include/bsp/bsp.h";>hw/bsp/pinetime/include/bsp/bsp.h
 |
   | AL | https://github.com/apache/mynewt-core/blob/89c38058336a7662b54cb6fc7889893c7e096675/hw/bsp/pinetime/src/hal_bsp.c";>hw/bsp/pinetime/src/hal_bsp.c
 |
   | AL | https://github.com/apache/mynewt-core/blob/89c38058336a7662b54cb6fc7889893c7e096675/hw/bsp/pinetime/src/sbrk.c";>hw/bsp/pinetime/src/sbrk.c
 |
   
   
   


This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services


[GitHub] [mynewt-core] apache-mynewt-bot removed a comment on issue #2253: bsp/pinetime: Add bsp for PineTime smartwatch

2020-03-29 Thread GitBox
apache-mynewt-bot removed a comment on issue #2253: bsp/pinetime: Add bsp for 
PineTime smartwatch
URL: https://github.com/apache/mynewt-core/pull/2253#issuecomment-605525758
 
 
   
   
   
   ## Style check summary
   
    No suggestions at this time!
   


This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services


[GitHub] [mynewt-core] caspermeijn commented on issue #2253: bsp/pinetime: Add bsp for PineTime smartwatch

2020-03-29 Thread GitBox
caspermeijn commented on issue #2253: bsp/pinetime: Add bsp for PineTime 
smartwatch
URL: https://github.com/apache/mynewt-core/pull/2253#issuecomment-605619584
 
 
   I split the documentation into a seperate PR in the hope to make progress on 
the BSP while the docs are discussed 
https://github.com/apache/mynewt-core/pull/2254


This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services


[GitHub] [mynewt-core] apache-mynewt-bot commented on issue #2254: docs/os/bsp: Add board support section

2020-03-29 Thread GitBox
apache-mynewt-bot commented on issue #2254: docs/os/bsp: Add board support 
section
URL: https://github.com/apache/mynewt-core/pull/2254#issuecomment-605619502
 
 
   
   
   
   ## Style check summary
   
    No suggestions at this time!
   


This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services


[GitHub] [mynewt-core] caspermeijn opened a new pull request #2254: docs/os/bsp: Add board support section

2020-03-29 Thread GitBox
caspermeijn opened a new pull request #2254: docs/os/bsp: Add board support 
section
URL: https://github.com/apache/mynewt-core/pull/2254
 
 
   Add a new section to the documentation which lists the status of BSPs.
   The first page is the status of the PineTime BSP.
   
   This is part of an effort to add PineTime support to mynewt. This documents 
the progress of that effort.


This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services