summaryrefslogtreecommitdiffstats
path: root/bsps/sh/gensh2/console
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--bsps/sh/gensh2/console/sci.c3
-rw-r--r--bsps/sh/gensh2/console/scitab.c38
2 files changed, 39 insertions, 2 deletions
diff --git a/bsps/sh/gensh2/console/sci.c b/bsps/sh/gensh2/console/sci.c
index 143fc1bb94..e02049cbf3 100644
--- a/bsps/sh/gensh2/console/sci.c
+++ b/bsps/sh/gensh2/console/sci.c
@@ -73,8 +73,7 @@
#define SH_SCI_BASE_1 SCI_SMR1
#define SH_SCI_DEF_COMM_0 CS8, B9600
-#define SH_SCI_DEF_COMM_1 CS8, B38400
-/* #define SH_SCI_DEF_COMM_1 CS8, B9600 */
+#define SH_SCI_DEF_COMM_1 CS8, B9600
struct scidev_t {
char * name;
diff --git a/bsps/sh/gensh2/console/scitab.c b/bsps/sh/gensh2/console/scitab.c
new file mode 100644
index 0000000000..ca253df573
--- /dev/null
+++ b/bsps/sh/gensh2/console/scitab.c
@@ -0,0 +1,38 @@
+/*
+ * Copyright (c) 2018 embedded brains GmbH. All rights reserved.
+ *
+ * embedded brains GmbH
+ * Dornierstr. 4
+ * 82178 Puchheim
+ * Germany
+ * <info@embedded-brains.de>
+ *
+ * The license and distribution terms for this file may be
+ * found in the file LICENSE in this distribution or at
+ * http://www.rtems.org/license/LICENSE.
+ */
+
+/*
+ * The content of this file was previously generated by the GPL licensed shgen
+ * tool during the BSP build for a configured clock frequency
+ * (CPU_CLOCK_RATE_HZ). All tools were removed from the RTEMS source repository
+ * at some point in time. Tools with a BSD-style license were moved to the
+ * RTEMS tools repository.
+ */
+
+#include <bsp.h>
+
+int _sci_get_brparms(
+ unsigned int spd,
+ unsigned char *smr,
+ unsigned char *brr
+)
+{
+ if (spd != 9600) {
+ return -1;
+ }
+
+ *smr = 0x00;
+ *brr = 0x5f;
+ return 0;
+}