aboutsummaryrefslogtreecommitdiff
path: root/AT91SAM7S256/Source/c_comm.iom
diff options
context:
space:
mode:
Diffstat (limited to 'AT91SAM7S256/Source/c_comm.iom')
-rw-r--r--AT91SAM7S256/Source/c_comm.iom13
1 files changed, 12 insertions, 1 deletions
diff --git a/AT91SAM7S256/Source/c_comm.iom b/AT91SAM7S256/Source/c_comm.iom
index 367a0db..7f11837 100644
--- a/AT91SAM7S256/Source/c_comm.iom
+++ b/AT91SAM7S256/Source/c_comm.iom
@@ -127,6 +127,17 @@ enum
#define HS_MODE_8N1 (HS_MODE_8_DATA|HS_MODE_N_PARITY|HS_MODE_10_STOP)
#define HS_MODE_7E1 (HS_MODE_7_DATA|HS_MODE_E_PARITY|HS_MODE_10_STOP)
+// constants referring to HsAddress
+#define HS_ADDRESS_ALL 0
+#define HS_ADDRESS_1 1
+#define HS_ADDRESS_2 2
+#define HS_ADDRESS_3 3
+#define HS_ADDRESS_4 4
+#define HS_ADDRESS_5 5
+#define HS_ADDRESS_6 6
+#define HS_ADDRESS_7 7
+#define HS_ADDRESS_8 8
+
//Constants refering to DeviceStatus within DeviceTable
enum
{
@@ -273,7 +284,7 @@ typedef struct
UBYTE HsState;
UBYTE UsbState;
- UBYTE Spare1; // fill the vacant byte that would otherwise be here
+ UBYTE HsAddress; // make RS485 addressible for up to 8 bricks
UWORD HsMode;