summaryrefslogtreecommitdiffstats
path: root/bsps/sh/gensh2/console/scitab.c
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2018-06-06 16:21:22 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2018-06-11 14:47:32 +0200
commit8c62cf4209b2fe57fdbc3a138f2c644e19774367 (patch)
tree1b2ccf4bb0f27934d31cd856c48994a295ffdd0c /bsps/sh/gensh2/console/scitab.c
parentbuild: Force warnings (diff)
downloadrtems-8c62cf4209b2fe57fdbc3a138f2c644e19774367.tar.bz2
tools: Remove shgen
All tools should be removed from the RTEMS source repository at some point in time. Tools with a BSD-style license will be moved to the RTEMS tools repository. Unfortunately, the shgen tool is GPL licensed. Remove all uses of this tool from the code base. Replace generated files with stub functions. If users of this BSP still exist, they can reimplement the functionality using a BSD-style license. Close #3443.
Diffstat (limited to '')
-rw-r--r--bsps/sh/gensh2/console/scitab.c38
1 files changed, 38 insertions, 0 deletions
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;
+}