summaryrefslogtreecommitdiff
path: root/rs422lib/precomp.h
diff options
context:
space:
mode:
Diffstat (limited to 'rs422lib/precomp.h')
-rw-r--r--rs422lib/precomp.h15
1 files changed, 12 insertions, 3 deletions
diff --git a/rs422lib/precomp.h b/rs422lib/precomp.h
index 11f64be..d2d2380 100644
--- a/rs422lib/precomp.h
+++ b/rs422lib/precomp.h
@@ -10,17 +10,26 @@
#include<msp430g2553.h>
+// ====== RSBUS configuration ======
+
+// Data Enable pin configuration
+// P1.0 -> red led
#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
+// This is the highest level
+#define RSSYSBIT (SYS_BIT0)
+// Specify the physical address on the rsbus
#define RSADDR (1)
-#define MACTYPE (0x00) //TYPE 0 is a dummy used for debug
+// Machine Type
+// TYPE 0 is a dummy used for debug
// Change it in real implementation
+#define MACTYPE (0x00)
+
+// ====== End RSBUS configuration ======
//define delay func
#define delay_ms(ms) __delay_cycles(16000*(ms))