|
From: <pa...@us...> - 2003-07-22 17:20:25
|
Update of /cvsroot/emc/rtapi/src/rtapi
In directory sc8-pr-cvs1:/tmp/cvs-serv32109/src/rtapi
Modified Files:
localdefs.h rtai_rtapi.c rtapi.h sim_rtapi.c
Log Message:
A few small changes to enable the timetask example to work with 2.4.21-adeos
Index: localdefs.h
===================================================================
RCS file: /cvsroot/emc/rtapi/src/rtapi/localdefs.h,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** localdefs.h 19 Jul 2003 07:17:22 -0000 1.4
--- localdefs.h 22 Jul 2003 17:20:22 -0000 1.5
***************
*** 2,8 ****
#define LOCALDEFS_H
! /* automatically generated by config script on Fri Jul 18 22:40:51 EDT 2003 */
! #define LOCAL_MHZ 233.866
#endif
--- 2,8 ----
#define LOCALDEFS_H
! /* automatically generated by config script on Tue Jul 22 13:03:40 UTC 2003 */
! #define LOCAL_MHZ 807.966
#endif
Index: rtai_rtapi.c
===================================================================
RCS file: /cvsroot/emc/rtapi/src/rtapi/rtai_rtapi.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** rtai_rtapi.c 19 Jul 2003 07:17:22 -0000 1.4
--- rtai_rtapi.c 22 Jul 2003 17:20:22 -0000 1.5
***************
*** 134,138 ****
/* validate taskptr */
! if ( taskptr == NULL )
return RTAPI_INVAL;
--- 134,138 ----
/* validate taskptr */
! if ( &taskptr == NULL )
return RTAPI_INVAL;
***************
*** 146,150 ****
/* and return handle to the caller */
! *taskptr = task;
return RTAPI_SUCCESS;
--- 146,150 ----
/* and return handle to the caller */
! taskptr = task;
return RTAPI_SUCCESS;
***************
*** 406,410 ****
vsprintf(buffer, fmt, args);
rt_printk(buffer);
! va_end(ap);
}
--- 406,410 ----
vsprintf(buffer, fmt, args);
rt_printk(buffer);
! va_end(args);
}
Index: rtapi.h
===================================================================
RCS file: /cvsroot/emc/rtapi/src/rtapi/rtapi.h,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** rtapi.h 19 Jul 2003 07:17:22 -0000 1.5
--- rtapi.h 22 Jul 2003 17:20:22 -0000 1.6
***************
*** 95,100 ****
* rtapi_task_new(). 'taskcode' is the name of a function taking one *
* int and returning void, which contains the task code. 'arg' will be *
! * passed to 'taskcode' when the task is invoked. 'prio' is the *
! * priority, as determined by one of the priority functions above. *
* 'stacksize' is the amount of stack to be reserved for the task - be *
* generous, hardware interrupts may use the same stack. 'period_nsec' *
--- 95,101 ----
* rtapi_task_new(). 'taskcode' is the name of a function taking one *
* int and returning void, which contains the task code. 'arg' will be *
! * passed to 'taskcode' as an abitrary int value when the task is *
! * invoked. 'prio' is the priority, as determined by one of the *
! * priority functions above. *
* 'stacksize' is the amount of stack to be reserved for the task - be *
* generous, hardware interrupts may use the same stack. 'period_nsec' *
Index: sim_rtapi.c
===================================================================
RCS file: /cvsroot/emc/rtapi/src/rtapi/sim_rtapi.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** sim_rtapi.c 19 Jul 2003 07:17:22 -0000 1.3
--- sim_rtapi.c 22 Jul 2003 17:20:22 -0000 1.4
***************
*** 397,401 ****
va_start(args, fmt);
vprintf(fmt, args);
! va_end(ap);
}
--- 397,401 ----
va_start(args, fmt);
vprintf(fmt, args);
! va_end(args);
}
|