Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/evbarm Move the 7-segment display definitions into ...
details: https://anonhg.NetBSD.org/src/rev/da4a0b665074
branches: trunk
changeset: 547186:da4a0b665074
user: thorpej <thorpej%NetBSD.org@localhost>
date: Wed May 14 19:46:39 2003 +0000
description:
Move the 7-segment display definitions into the C file.
diffstat:
sys/arch/evbarm/iq80310/iq80310_7seg.c | 28 +++++++++++++++++++++++++++-
sys/arch/evbarm/iq80310/iq80310reg.h | 27 +--------------------------
sys/arch/evbarm/iq80321/iq80321_7seg.c | 28 +++++++++++++++++++++++++++-
sys/arch/evbarm/iq80321/iq80321reg.h | 27 +--------------------------
4 files changed, 56 insertions(+), 54 deletions(-)
diffs (166 lines):
diff -r 51dcd446f28f -r da4a0b665074 sys/arch/evbarm/iq80310/iq80310_7seg.c
--- a/sys/arch/evbarm/iq80310/iq80310_7seg.c Wed May 14 18:28:04 2003 +0000
+++ b/sys/arch/evbarm/iq80310/iq80310_7seg.c Wed May 14 19:46:39 2003 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: iq80310_7seg.c,v 1.6 2002/04/12 20:50:26 thorpej Exp $ */
+/* $NetBSD: iq80310_7seg.c,v 1.7 2003/05/14 19:46:40 thorpej Exp $ */
/*
* Copyright (c) 2001, 2002 Wasabi Systems, Inc.
@@ -50,6 +50,32 @@
static int snakestate;
+/*
+ * The 7-segment display looks like so:
+ *
+ * A
+ * +-----+
+ * | |
+ * F | | B
+ * | G |
+ * +-----+
+ * | |
+ * E | | C
+ * | D |
+ * +-----+ o DP
+ *
+ * Setting a bit clears the corresponding segment on the
+ * display.
+ */
+#define SEG_A (1 << 0)
+#define SEG_B (1 << 1)
+#define SEG_C (1 << 2)
+#define SEG_D (1 << 3)
+#define SEG_E (1 << 4)
+#define SEG_F (1 << 5)
+#define SEG_G (1 << 6)
+#define SEG_DP (1 << 7)
+
static const uint8_t digitmap[] = {
/* +#####+
* # #
diff -r 51dcd446f28f -r da4a0b665074 sys/arch/evbarm/iq80310/iq80310reg.h
--- a/sys/arch/evbarm/iq80310/iq80310reg.h Wed May 14 18:28:04 2003 +0000
+++ b/sys/arch/evbarm/iq80310/iq80310reg.h Wed May 14 19:46:39 2003 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: iq80310reg.h,v 1.4 2001/12/01 02:02:46 thorpej Exp $ */
+/* $NetBSD: iq80310reg.h,v 1.5 2003/05/14 19:46:40 thorpej Exp $ */
/*
* Copyright (c) 2001 Wasabi Systems, Inc.
@@ -116,31 +116,6 @@
#define IQ80310_7SEG_MSB 0xfe840000UL
#define IQ80310_7SEG_LSB 0xfe850000UL
- /*
- * The 7-segment display looks like so:
- *
- * A
- * +-----+
- * | |
- * F | | B
- * | G |
- * +-----+
- * | |
- * E | | C
- * | D |
- * +-----+ o DP
- *
- * Setting a bit clears the corresponding segment on the
- * display.
- */
-#define SEG_A (1 << 0)
-#define SEG_B (1 << 1)
-#define SEG_C (1 << 2)
-#define SEG_D (1 << 3)
-#define SEG_E (1 << 4)
-#define SEG_F (1 << 5)
-#define SEG_G (1 << 6)
-#define SEG_DP (1 << 7)
#define IQ80310_XINT0_STATUS 0xfe850000UL /* rev F and later */
#define XINT0_SINTA 0 /* INTA# */
diff -r 51dcd446f28f -r da4a0b665074 sys/arch/evbarm/iq80321/iq80321_7seg.c
--- a/sys/arch/evbarm/iq80321/iq80321_7seg.c Wed May 14 18:28:04 2003 +0000
+++ b/sys/arch/evbarm/iq80321/iq80321_7seg.c Wed May 14 19:46:39 2003 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: iq80321_7seg.c,v 1.2 2002/04/12 20:50:27 thorpej Exp $ */
+/* $NetBSD: iq80321_7seg.c,v 1.3 2003/05/14 19:46:39 thorpej Exp $ */
/*
* Copyright (c) 2001, 2002 Wasabi Systems, Inc.
@@ -51,6 +51,32 @@
static int snakestate;
+/*
+ * The 7-segment display looks like so:
+ *
+ * A
+ * +-----+
+ * | |
+ * F | | B
+ * | G |
+ * +-----+
+ * | |
+ * E | | C
+ * | D |
+ * +-----+ o DP
+ *
+ * Setting a bit clears the corresponding segment on the
+ * display.
+ */
+#define SEG_A (1 << 7)
+#define SEG_B (1 << 6)
+#define SEG_C (1 << 5)
+#define SEG_D (1 << 4)
+#define SEG_E (1 << 3)
+#define SEG_F (1 << 2)
+#define SEG_G (1 << 1)
+#define SEG_DP (1 << 0)
+
static const uint8_t digitmap[] = {
/* +#####+
* # #
diff -r 51dcd446f28f -r da4a0b665074 sys/arch/evbarm/iq80321/iq80321reg.h
--- a/sys/arch/evbarm/iq80321/iq80321reg.h Wed May 14 18:28:04 2003 +0000
+++ b/sys/arch/evbarm/iq80321/iq80321reg.h Wed May 14 19:46:39 2003 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: iq80321reg.h,v 1.3 2003/04/19 08:18:13 scw Exp $ */
+/* $NetBSD: iq80321reg.h,v 1.4 2003/05/14 19:46:39 thorpej Exp $ */
/*
* Copyright (c) 2002 Wasabi Systems, Inc.
@@ -94,31 +94,6 @@
#define IQ80321_7SEG_MSB 0xfe840000UL
#define IQ80321_7SEG_LSB 0xfe850000UL
- /*
- * The 7-segment display looks like so:
- *
- * A
- * +-----+
- * | |
- * F | | B
- * | G |
- * +-----+
- * | |
- * E | | C
- * | D |
- * +-----+ o DP
- *
- * Setting a bit clears the corresponding segment on the
- * display.
- */
-#define SEG_A (1 << 7)
-#define SEG_B (1 << 6)
-#define SEG_C (1 << 5)
-#define SEG_D (1 << 4)
-#define SEG_E (1 << 3)
-#define SEG_F (1 << 2)
-#define SEG_G (1 << 1)
-#define SEG_DP (1 << 0)
#define IQ80321_ROT_SWITCH 0xfe8d0000UL
Home |
Main Index |
Thread Index |
Old Index