Commit Graph

17365 Commits

Author SHA1 Message Date
Andrew Johnson a4fed4fe1a msi: Undefined macros under -V should exit(2)
Also cleaned up double negative in internal var name.
2013-05-13 10:10:31 -05:00
Michael Davidsaver 6347b1daf9 add MMIO API
From devLib2
adds calls to handle 8, 16, and 32 bit
Memory Mapped I/O reads and writes.

Adds X_iowriteY() and X_ioreadY().

where X is nat (native), be, or le.
Y is 16 or 32.

Also adds ioread8() and iowrite8().
2013-05-10 16:22:16 -04:00
Andrew Johnson 593e313fab dbStatic: More commands accept "" or "*" to mean 'all'
dbDumpRecordType, dbDumpMenu and dbDumpRecord commands improved.
2013-05-09 15:48:49 -05:00
Andrew Johnson 34744264e1 libCom: Fix win32 handle leak
Closing an epicsThread would leak one Win32 handle.
Reported by Giles Knap, Diamond.
2013-05-06 17:29:10 -05:00
Andrew Johnson 5ac686fafd tools: Munch support for module destructors
Added in VxWorks 6.9
2013-04-25 17:00:36 -05:00
Andrew Johnson 7e347b2de9 libCom: Fix sysAtReboot registration on vxWorks 6.8+
Removed C++ static constructor, do it from epicsThreadInit()
2013-04-24 12:52:05 -05:00
Andrew Johnson 8d7a241d04 dbScan: Allow periodic scan unit strings to differ in case.
Use epicsStrCaseCmp() instead of strcmp().
2013-04-23 10:38:57 -05:00
Andrew Johnson 5bc15b72a1 libCom: Add some missing #include guards.
There are still quite a few missing in libCom/osi/os/*
2013-04-11 12:56:56 -05:00
Andrew Johnson 880db9d4af configure: Set IOCS_APPL_TOP from INSTALL_LOCATION
Fixes lp:1165257
2013-04-09 12:39:26 -05:00
Andrew Johnson 97c6d1a903 Add podToHtml.pl script
New rules to use this for .pod and .pm conversions
Replace use of pod2html in ca/client/perl
2013-04-05 13:13:52 -05:00
Andrew Johnson 04ccf9db0d Consistency for extended device support
Call scanDelete() before pdsxt->del_record()
when closing down an IOC.
2013-04-04 14:59:56 -05:00
Andrew Johnson fabc8d06a9 Move db_post_events(waveform, NORD) into recordType.
Dirk pointed out that existing device support authors aren't
going to add this themselves; it's much better if the record
does it all for itself.
2013-04-04 14:18:35 -05:00
Andrew Johnson f661299a81 Added new 'tapfiles' build target.
There's a plugin for Jenkins which should be able to read the .tap
output files and generate pretty test status pages from them.
I haven't actually tried using it yet though...
2013-04-04 11:25:53 -05:00
Andrew Johnson 2c8eb630cb Merged Michael Davidsaver's array-opt branch 2013-04-02 17:01:53 -05:00
Michael Davidsaver fb21c7c6e7 update release notes 2013-04-02 17:07:54 -04:00
Michael Davidsaver 738c135ed8 Don't need void* cast
Implicit case from void** to void*
is allowed.
2013-04-02 17:07:53 -04:00
Andrew Johnson 58c031238b configure: Modify help rule to use $(DIVIDER)
... in case someone changes it.
2013-04-01 10:03:38 -05:00
Andrew Johnson b27439ce7b Only try to generate .html files where the .dbd.pod exists 2013-03-31 00:49:19 -05:00
Andrew Johnson 53c5aaa9ee Introduce the .dbd.pod extension
Rules to convert to .html and .dbd
Rename existing files
Fix various build rules to match.
2013-03-31 00:38:20 -05:00
Andrew Johnson 880d714a0f tools/DBD: Include cdefs in DBD format output. 2013-03-30 23:49:18 -05:00
Ralph Lange ddadd9b62e ioc/db/test: add test for parallel callback threads 2013-03-29 17:28:26 +01:00
Ralph Lange c1318e7d55 ioc/db: add support for parallel callback threads
- use thread safe (spinlocked) callback queues
- add callbackParallelThreads() configuration call (with iocShell binding)
- add callbackParallelThreadsDefault variable, preset to number of CPUs
- remove calls to epicsInterruptLock()
2013-03-29 17:27:56 +01:00
Ralph Lange 8abb1ed255 libCom/test: add test for thread safe (spinlocked) ringPointer buffer 2013-03-29 17:24:11 +01:00
Ralph Lange d6f5b50550 libCom/ring: add thread safe versions of ring buffers (using spinlocks) 2013-03-29 17:23:24 +01:00
Andrew Johnson f824246baa Add configuration for vxWorks 6.9 builds. 2013-03-29 11:17:09 -05:00
Ralph Lange 3718cfa673 ioc/db/test: add timing statistics to callbackTest 2013-03-29 11:59:30 +01:00
Andrew Johnson f9a0c82a63 libCom/osi: Resolve bcopyLongs() conflict on vxWorks 6.9 2013-03-28 17:17:41 -05:00
Ralph Lange 90b9965caf libCom/osi: add epicsThreadGetCPUs()
* Implementation for posix and WIN32 tries to get the CPUs available for this process,
   rather than the complete number of CPUs in the system.
 * For the time being, vxWorks returns 1. (This will have to change for vxWorks SMP.)
2013-03-28 15:03:29 +01:00
Ralph Lange 64a2e4e19b libCom/osi: Make EPICS ID in epicsThreadShow 2 characters wider (for 64bit) 2013-03-27 10:56:34 +01:00
Andrew Johnson a4edc46a5f dbStatic: Allow empty DB & DBD files
They used to cause a Syntax error with a bad context string.
2013-03-20 16:53:10 -05:00
Andrew Johnson 4f9928bc3c Merged changes from 3.14 branch
Up to revno 12404.
2013-03-15 15:23:55 -05:00
Andrew Johnson 738b8ca55f libCom: Add a High-Resolution Time Provider on MacOS
Since Apple don't support clock_gettime(CLOCK_REALTIME) I added a
new time provider that uses the Mach kernel Clock service to get
nanosecond resolution time.
2013-03-13 14:48:34 -05:00
Andrew Johnson 82560b552e libCom/osi: Fix for cygwin
Needed shareLib stuff.
2013-02-18 13:11:36 -06:00
Andrew Johnson 3196844602 Remove another Borland on Linux remnant. 2013-02-14 15:56:22 -06:00
Andrew Johnson 76911e4ae9 configure: Fix the earlier DLLSTUBS change
Turn on static library dependencies again in RULES_TARGET.
2013-02-13 17:09:54 -06:00
Andrew Johnson c29a8bd268 configure: Clean up command echoing in build rules 2013-02-12 15:36:55 -06:00
Andrew Johnson d85d1f0e56 Merged Ralph's spinlocks branch.
Added an RTEMS implementation which locks interrupts,
and some Release Notes mentioning the new API.
2013-02-12 12:13:01 -06:00
Andrew Johnson c5602af1b4 Fix DLLSTUB dependency generation. 2013-02-11 18:12:40 -06:00
Andrew Johnson c767958539 gdd: Build tweaks
Remove obselete HPUX warning flags
Disable strict-aliasing to suppress warnings (RTEMS, Linux)
2013-02-11 17:49:05 -06:00
Andrew Johnson 7264146fd1 configure: MinGW is not a Posix architecture. 2013-02-11 14:16:07 -06:00
Andrew Johnson 34e24699e6 configure: Fix DEPLIBS search order for Windows DLLs
Must search for the DLLSTUB library before the SHRLIB one.
This commit also cleans up some comments about MSVC settings.
2013-02-11 14:10:27 -06:00
Janet Anderson f2c9ddc412 Removed OBJLIBNAME references. obj libs for R3.13 vx compatibility only. 2013-02-05 15:54:08 -06:00
Andrew Johnson 8400e74606 Fix epicsRingPointerGetSize()
Definition name didn't match declaration.

Fixes lp:1109785 reported by Martin Konrad.
2013-01-29 18:02:51 -06:00
Michael Davidsaver 1b0ff46d33 Allow BPTR replacement in aai and aao 2013-01-23 10:38:32 -05:00
Michael Davidsaver 92d52cc415 Allow waveformRecord to replace BPTR 2013-01-23 10:38:31 -05:00
Michael Davidsaver 4f6040d35b get_array_info() can modifiy DBADDR::pfield
Allow the record support function get_array_info()
to modify its first argument to provide a different
pointer from which values should be read.

Remember the original and restore it afterwards.
2013-01-23 10:38:30 -05:00
Andrew Johnson 451c4cc854 Unify #! line for Perl scripts
/usr/bin/env exists on all current workstation OSs.
2013-01-23 07:29:07 -06:00
Andrew Johnson 038a1140f4 Fix drift in periodic scan times.
Method from Eric Norum, with warnings added by me.

Fixes lp:597054
2013-01-09 18:12:30 -06:00
Andrew Johnson d63dffcd34 libCom/test: epicsSockResolveTest build fix
Add socket libraries for Win32 & Solaris.
2013-01-04 12:22:02 -06:00
Michael Davidsaver f5b7693a58 libCom: aToIPAddr() finds numeric hostnames
Hostnames that begin with one or more digits were not being looked up
by name, causing problems at BNL.
This commit also changes the vxWorks implementation of hostToIPAddr()
to use inet_aton() instead of inet_addr().
2013-01-04 09:33:13 -06:00