Initial revision

This commit is contained in:
Ben Gras
2005-04-21 14:53:53 +00:00
commit 9865aeaa79
2264 changed files with 411685 additions and 0 deletions

20
lib/syslib/sys_out.c Normal file
View File

@@ -0,0 +1,20 @@
#include "syslib.h"
/*===========================================================================*
* sys_out *
*===========================================================================*/
PUBLIC int sys_out(port, value, type)
int port; /* port address to write to */
unsigned long value; /* value to write */
int type; /* byte, word, long */
{
message m_io;
m_io.DIO_TYPE = type;
m_io.DIO_REQUEST = DIO_OUTPUT;
m_io.DIO_PORT = port;
m_io.DIO_VALUE = value;
return _taskcall(SYSTASK, SYS_DEVIO, &m_io);
}