Commit Graph

50 Commits

Author SHA1 Message Date
Kevin Peterson ff8c74a6e8 Merge pull request #112 from EuropeanSpallationSource/base-3_16_typedef_rset
Base 3.16 typedef rset
2018-10-19 15:22:14 -05:00
kpetersn e56f0585ba Changed XXX_init argument from void * to int. Some drivers fail to build. 2018-10-10 10:26:19 -05:00
Torsten Bögershausen dcf7b37c89 Avoid warnings with R3.16.1 in devSoft.cc and devMotorSim.c
Need to set USE_TYPED_RSET to avoid a warning whencompiling
against Base R3.16.1
Older Bases don't know the #define, and R3.16.1 seems to need it.
2018-10-02 16:11:37 +02:00
Mark Rivers 9aba61b06c Changed definition of soft_init; it is passed an int, not a void * 2018-09-08 14:33:46 -05:00
Mark Rivers c6e655d8b3 Merge branch 'master' of github.com:epics-modules/motor 2018-09-08 14:04:29 -05:00
Mark Rivers 58354556aa Fixed soft_init: it is passed an int, not a (void *). 2018-09-08 14:04:15 -05:00
Mark Rivers ee9fca1dc3 Fixes for problems that showed up in base 7.0.
- It was using the value of mr->[link]->value.constantStr and mr->[link]->value.pv_link.pvname without checking the link types.
  This was incorrect, and led to errors because constantStr no longer has a defined value if the link type is not CONSTANT.
  Changed so that it only accesses these union fields if the link is the correct type.
- It did not check if pv_link.pvname was NULL before calling CA functions, though now that we check the link type perhaps this cannot occur.
- It did not lock the motor record before accessing the fields.
- Added Debug calls to show the link types and values.
2018-09-08 12:44:59 -05:00
Mark Rivers 0b8da74ca3 Added stdarg.h, otherwise compiler error with va_start and va_end undefined if DEBUG is defined 2018-09-07 08:15:01 -05:00
Torsten Bögershausen 532afdc5a0 Remove all lines with svn keywords
They have no meaning in Git, are not updated and may cause unwanted diffs when
otherwise nothing is changed in a file
2015-11-23 08:23:12 +01:00
Ron Sluiter fc2b02582e Reformat from tabs to spaces; no code changes. 2015-03-13 19:11:14 +00:00
Ron Sluiter ee795dfa1f Changed diagnostic message macro 'Debug' to Mark Rivers inline variable argument function calls. 2011-11-29 20:50:00 +00:00
Ron Sluiter cf5626ad21 Fix header keywords for svn. 2010-03-25 16:50:30 +00:00
Ron Sluiter ddbd4fa893 Need errlog.h 2010-03-25 16:44:27 +00:00
Ron Sluiter 043194019f Don't need USR_CFLAGS. 2008-09-17 21:54:09 +00:00
Ron Sluiter d657dda679 64-bit compatibility. 2008-03-14 20:23:45 +00:00
Peter Denison 4e83896390 Fix behaviour of motorUtil in the face of incorrect prefix. Now does not
call ca_task_exit() unless it is ending the task.
Do not use epicsThreadSuspendSelf(), but instead wait on an event, in
    soft_motor_task() and motorUtil_task(), to avoid suspended threads.
2007-09-19 15:57:41 +00:00
Peter Denison 624f38c298 Convert to linked lists to remove arbitrary maximum number of soft motors 2006-04-11 10:11:24 +00:00
Ron Sluiter 898884c76e Debugging defaults to off. 2005-10-20 19:55:06 +00:00
Ron Sluiter f415aafbcd Include devSoftdebug. 2005-10-20 19:51:47 +00:00
Ron Sluiter 5c846953bb - Added debug messages.
- Fix compiler error when using "gcc version 3.4.2 20041017 (Red Hat 3.4.2-6.fc3)".
2005-08-03 15:02:13 +00:00
Ron Sluiter 24d58354a8 Need bigger stack. 2005-03-30 19:18:16 +00:00
MarkRivers cc76ca1360 Changed from using hardcoded stack size to generic EPICS stack size 2005-03-30 00:47:49 +00:00
Ron Sluiter b772809206 EPICS R3.14.7 compatibility; needs explicit #include <stdlib.h>. 2004-12-20 21:26:52 +00:00
Ron Sluiter 5945cbd6ee MicroSoft Visual C compiler compatibility. 2004-12-20 21:24:08 +00:00
Ron Sluiter 633109a7a4 Increase the maximum number of Soft
Channel motor records from 20 to 50.
2004-09-23 16:18:12 +00:00
Ron Sluiter 04bf14f94a Remove compiler warning on "status" in build(). 2004-01-22 22:22:04 +00:00
Ron Sluiter 4277772b0e Converted MSTA #define's to bit field. 2003-12-12 21:53:10 +00:00
MarkRivers de02159d2a Increased stack size to fix overflow on PPC 2003-06-30 04:57:09 +00:00
Ron Sluiter b2a3906490 Update modification log. 2003-06-16 15:03:12 +00:00
Ron Sluiter 944dc12554 Set DBE_LOG with all db_post_events()'s. 2003-06-06 21:09:24 +00:00
Ron Sluiter 5ee7c7d22e Stack overflows on soft_motor_task. 2003-06-06 16:18:27 +00:00
Ron Sluiter b72ae9057e 3.14.2 compatible. 2003-05-19 17:14:03 +00:00
Ron Sluiter 1d9cf7d362 Work around SUNPro compiler error. 2003-02-14 15:00:21 +00:00
Ron Sluiter ad7ade15e0 Restore use of OK/ERROR for function return values. 2002-10-31 21:07:25 +00:00
Ron Sluiter 67525bd0c8 Redefine callback_flag. 2002-10-31 20:47:55 +00:00
Ron Sluiter 666480bcdf Converted to R3.14.x and C++. 2002-10-21 21:10:48 +00:00
Ron Sluiter f068364fca R3.14.x compatible. 2002-10-17 17:57:50 +00:00
Ron Sluiter 167dffad5f Eliminated WAIT state. 2002-07-05 19:43:17 +00:00
Ron Sluiter ccedb96940 Fix for DMOV processing before the last DRBV update. 2002-07-05 19:42:20 +00:00
Ron Sluiter be2ca071e9 Eliminate WAIT state. 2002-07-05 19:40:57 +00:00
Ron Sluiter 73d167031b - Changed "dinp_value" MOVE state to SOFTMOVE and HARDMOVE.
- Set "dinp_value" to DONE in soft_dinp_func() if SOFTMOVE.
2002-06-25 20:12:24 +00:00
Ron Sluiter 7327245dfa - Changed "dinp_value" MOVE to SOFTMOVE.
- Bug fix; "default_done_behavior" not initialized to OFF.
2002-06-25 20:05:26 +00:00
Ron Sluiter 1ad4511058 Detect when "soft motor" has NOT initiated a move. 2002-06-25 20:01:28 +00:00
Ron Sluiter 98fa3fa065 RES field removed. 2002-03-27 21:43:45 +00:00
Ron Sluiter 6df4747fd1 - Eliminate/minimize EPICS LINK alarms by preventing record processing before "interruptAccept" is true.
- If the readback is changing, but motion was not initiated by this record, then reset the motor record's target to actual position (i.e., VAL/DVAL/RVAL = RBV/DRBV/RRBV) after the last readback.
- In soft_process(), call dbProcess() instead of directly calling motor record's process().
2002-02-11 17:34:35 +00:00
Ron Sluiter 29ff1cf709 Merged with V4.3 2001-05-14 20:13:48 +00:00
Ron Sluiter 20d1f64b28 Use new LIBOBJS macro. 2000-06-14 16:30:31 +00:00
Ron Sluiter e505adbbe0 Fixed stuck DMOV problem when "setting" position. 2000-03-03 22:36:52 +00:00
Ron Sluiter 39b5438372 Changed library name. 2000-03-03 22:34:58 +00:00
Ron Sluiter a3ea18fc83 Version 4-1 2000-02-08 22:19:43 +00:00