aboutsummaryrefslogtreecommitdiffhomepage
path: root/AT91SAM7S256/Source/c_lowspeed.iom
diff options
context:
space:
mode:
authorafanofosc2011-08-03 23:38:17 +0000
committerNicolas Schodet2012-02-01 00:20:26 +0100
commitc38f18c2a32e3c91a9d0b1c18c0a52ee3d47f12e (patch)
tree4b96a12a8cc885ccf96625c1cd3ab98901b670fc /AT91SAM7S256/Source/c_lowspeed.iom
parent7514a2c489b810faf022a04321c894645e67f3df (diff)
Fast I2C support
Direct digital pin control support CommHSRead system call changes to support partial buffer reads git-svn-id: https://mindboards.svn.sourceforge.net/svnroot/mindboards/lms_nbcnxc/branches/version_131@42 c9361245-7fe8-9947-84e8-057757c4e366
Diffstat (limited to 'AT91SAM7S256/Source/c_lowspeed.iom')
-rw-r--r--AT91SAM7S256/Source/c_lowspeed.iom21
1 files changed, 19 insertions, 2 deletions
diff --git a/AT91SAM7S256/Source/c_lowspeed.iom b/AT91SAM7S256/Source/c_lowspeed.iom
index 15e0a8e..7fcec19 100644
--- a/AT91SAM7S256/Source/c_lowspeed.iom
+++ b/AT91SAM7S256/Source/c_lowspeed.iom
@@ -64,7 +64,12 @@ enum
LOWSPEED_NO_ERROR = 0,
LOWSPEED_CH_NOT_READY,
LOWSPEED_TX_ERROR,
- LOWSPEED_RX_ERROR
+ LOWSPEED_RX_ERROR,
+ LOWSPEED_FAST_INVALID_PORT = -1,
+ LOWSPEED_FAST_BUSY = -2,
+ LOWSPEED_FAST_FAULT = -3,
+ LOWSPEED_FAST_INVALID_LEN = -4,
+ LOWSPEED_FAST_BUS_BUSY = -5
};
// Constants referring to NoRestartOnRead
@@ -79,7 +84,17 @@ enum
COM_CHANNEL_NO_RESTART_MASK = 0x10
};
-
+// Constants referring to Speed
+enum
+{
+ COM_CHANNEL_NONE_FAST = 0x00,
+ COM_CHANNEL_ONE_FAST = 0x01,
+ COM_CHANNEL_TWO_FAST = 0x02,
+ COM_CHANNEL_THREE_FAST = 0x04,
+ COM_CHANNEL_FOUR_FAST = 0x08,
+ COM_CHANNEL_ALL_FAST = 0x0F,
+ COM_CHANNEL_SPEED_MASK = 0x10
+};
typedef struct
{
@@ -99,6 +114,8 @@ typedef struct
UBYTE State;
UBYTE Speed;
UBYTE NoRestartOnRead;
+ UBYTE Spare1;
+ SBYTE (*pFunc)(UBYTE);
}IOMAPLOWSPEED;