#ifndef LINUX_LIB_H #define LINUX_LIB_H /****************************************************** # File: linux_lib.h # Associated file: linux.lib linux_lib.c # Description: Both linux.lib and linux_lib.c provide an # OS independent interface to the underlying Linux OS. # They themselves contain all the OS dependent details. # linux_lib.c provides standard IPC interfaces to the upper # level. Four standard functions are defined. # (1) sys_init : to initialize the IPC handling system, must be called # (2) ipc_init : to initialize the IPC channel # (3) ipc_write : to write to the channel # (4) ipc_read : to read from the channel *******************************************************/ #define SIM_ONLY //#define IPAQ_ONLY // List of possible ipc_type #define LINUX_MSGQUE 0 #define LINUX_PIPE 1 // List all possible device_io_type #define DEVICE_DEFAULT 0 // dummy void sys_init(); int ipc_init(int ipc_type, int blocking); void ipc_write(int ipc_type, int ipc_id, char *data, int length); void ipc_read(int ipc_type, int ipc_id, char *buf, int length); void sys_end(); void setup_serial_com(); void send_pulse(int num); #endif