summaryrefslogtreecommitdiff
path: root/rs422lib/precomp.h
diff options
context:
space:
mode:
authorJoe Zhao <ztuowen@gmail.com>2014-05-16 13:48:41 +0800
committerJoe Zhao <ztuowen@gmail.com>2014-05-16 13:48:41 +0800
commit01a12fdad10b5995495e1a4236fdfb1a583979ab (patch)
tree44010320ae31d4e967871a8e9b1231134b6ecd45 /rs422lib/precomp.h
downloadrsbus-01a12fdad10b5995495e1a4236fdfb1a583979ab.tar.gz
rsbus-01a12fdad10b5995495e1a4236fdfb1a583979ab.tar.bz2
rsbus-01a12fdad10b5995495e1a4236fdfb1a583979ab.zip
First Commit
Diffstat (limited to 'rs422lib/precomp.h')
-rw-r--r--rs422lib/precomp.h28
1 files changed, 28 insertions, 0 deletions
diff --git a/rs422lib/precomp.h b/rs422lib/precomp.h
new file mode 100644
index 0000000..3c7c016
--- /dev/null
+++ b/rs422lib/precomp.h
@@ -0,0 +1,28 @@
+/*
+ * precomp.h
+ *
+ * Created on: 2014-4-26
+ * Author: Tuowen
+ */
+
+#ifndef PRECOMP_H_
+#define PRECOMP_H_
+
+#include<msp430g2553.h>
+
+#define RSDIR (P1DIR)
+#define RSOUT (P1OUT)
+#define RSPIN (BIT0)
+
+#define RSSYSBIT (SYS_BIT7) // This is the lowest level
+#define RSSYSRET (SYS_BIT6) // Second lowest level
+
+#define RSADDR (1)
+
+#define MACTYPE (TYPE0)
+// Change it in real implementation
+
+//define delay func
+#define delay_ms(ms) __delay_cycles(16000*(ms))
+
+#endif /* PRECOMP_H_ */