You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by ja...@apache.org on 2017/04/26 22:41:20 UTC

[32/50] [abbrv] incubator-mynewt-core git commit: drivers/rtt: add syscfg option to define output buffer size

drivers/rtt: add syscfg option to define output buffer size

bletiny's shell requires larger buffer - 8k - to work properly
with debug logs enabled


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/f7acf777
Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/tree/f7acf777
Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/diff/f7acf777

Branch: refs/heads/bluetooth5
Commit: f7acf777efe151b77f8cf8ef7e1408b032d1abee
Parents: d36cccb
Author: Micha\u0142 Narajowski <mi...@codecoup.pl>
Authored: Thu Apr 6 16:00:59 2017 +0200
Committer: Micha\u0142 Narajowski <mi...@codecoup.pl>
Committed: Mon Apr 24 09:27:37 2017 -0700

----------------------------------------------------------------------
 hw/drivers/rtt/include/rtt/SEGGER_RTT_Conf.h |  4 +++-
 hw/drivers/rtt/syscfg.yml                    | 24 +++++++++++++++++++++++
 2 files changed, 27 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/f7acf777/hw/drivers/rtt/include/rtt/SEGGER_RTT_Conf.h
----------------------------------------------------------------------
diff --git a/hw/drivers/rtt/include/rtt/SEGGER_RTT_Conf.h b/hw/drivers/rtt/include/rtt/SEGGER_RTT_Conf.h
index 6a7a3ae..4daaa8f 100644
--- a/hw/drivers/rtt/include/rtt/SEGGER_RTT_Conf.h
+++ b/hw/drivers/rtt/include/rtt/SEGGER_RTT_Conf.h
@@ -63,6 +63,8 @@ Revision: $Rev: 4351 $
 #ifndef SEGGER_RTT_CONF_H
 #define SEGGER_RTT_CONF_H
 
+#include "syscfg/syscfg.h"
+
 #ifdef __IAR_SYSTEMS_ICC__
   #include <intrinsics.h>
 #endif
@@ -77,7 +79,7 @@ Revision: $Rev: 4351 $
 #define SEGGER_RTT_MAX_NUM_UP_BUFFERS             (3)     // Max. number of up-buffers (T->H) available on this target    (Default: 3)
 #define SEGGER_RTT_MAX_NUM_DOWN_BUFFERS           (3)     // Max. number of down-buffers (H->T) available on this target  (Default: 3)
 
-#define BUFFER_SIZE_UP                            (1024)  // Size of the buffer for terminal output of target, up to host (Default: 1k)
+#define BUFFER_SIZE_UP                            (MYNEWT_VAL(RTT_BUFFER_SIZE_UP))  // Size of the buffer for terminal output of target, up to host (Default: 1k)
 #define BUFFER_SIZE_DOWN                          (16)    // Size of the buffer for terminal input to target from host (Usually keyboard input) (Default: 16)
 
 #define SEGGER_RTT_PRINTF_BUFFER_SIZE             (64u)    // Size of buffer for RTT printf to bulk-send chars via RTT     (Default: 64)

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/f7acf777/hw/drivers/rtt/syscfg.yml
----------------------------------------------------------------------
diff --git a/hw/drivers/rtt/syscfg.yml b/hw/drivers/rtt/syscfg.yml
new file mode 100644
index 0000000..3463eec
--- /dev/null
+++ b/hw/drivers/rtt/syscfg.yml
@@ -0,0 +1,24 @@
+# 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.
+#
+
+# Package: hw/drivers/rtt
+
+syscfg.defs:
+    RTT_BUFFER_SIZE_UP:
+        description: 'Size of the output buffer'
+        value: 1024