1 #include "syslib.h" 2 3 /*===========================================================================* 4 * sys_out * 5 *===========================================================================*/ sys_out(port,value,type)6int sys_out(port, value, type) 7 int port; /* port address to write to */ 8 u32_t value; /* value to write */ 9 int type; /* byte, word, long */ 10 { 11 message m_io; 12 13 m_io.m_lsys_krn_sys_devio.request = _DIO_OUTPUT | type; 14 m_io.m_lsys_krn_sys_devio.port = port; 15 m_io.m_lsys_krn_sys_devio.value = value; 16 17 return _kernel_call(SYS_DEVIO, &m_io); 18 } 19 20