]> rtime.felk.cvut.cz Git - ulut.git/log
ulut.git
14 years agoUpdated ul_htimer callback data type to be portable to 64 bit Windows. ul_drv-0.8.0-release
Pavel Pisa [Tue, 1 Dec 2009 17:45:39 +0000 (18:45 +0100)]
Updated ul_htimer callback data type to be portable to 64 bit Windows.

The 64-bit Windows use LLP64 where pointer value does not
fit in long type variable. On the other hand, on 8 and 16
bit machines uintptr_t can be smaller than long so conditional
type definition is used now.

Signed-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
14 years agouLUt allows minimal build suitable for mcs51 SDCC target.
Pavel Pisa [Fri, 27 Nov 2009 01:18:13 +0000 (02:18 +0100)]
uLUt allows minimal build suitable for mcs51 SDCC target.

The mcs51 build requires SDCC with matured inline support
and C99 support. The proposed inline fixes can be found
in discussion under bug #1767885

  Parameters lost from scope of intermediate inline function

Next options has been included in config.omk to build this
minimal uLUt version.

CONFIG_OC_ULUT=y
CONFIG_OC_ULUTMINIMAL=y

CFLAGS  += --std-c99

Signed-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
14 years agoNot so much successful attempt to update equations to MathML in GAVL documentation.
Pavel Pisa [Sun, 8 Nov 2009 17:45:44 +0000 (18:45 +0100)]
Not so much successful attempt to update equations to MathML in GAVL documentation.

Signed-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
14 years agouLUt documentation converted to XML DocBook variant.
Pavel Pisa [Sun, 8 Nov 2009 16:36:10 +0000 (17:36 +0100)]
uLUt documentation converted to XML DocBook variant.

Signed-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
14 years agoAdd support to compile uLUt submodule separately.
Pavel Pisa [Sun, 8 Nov 2009 12:33:48 +0000 (13:33 +0100)]
Add support to compile uLUt submodule separately.

Signed-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
14 years agouLUt: incorporated changes to compile GAVL and GSA by SDCC.
Pavel Pisa [Sat, 7 Nov 2009 22:41:27 +0000 (23:41 +0100)]
uLUt: incorporated changes to compile GAVL and GSA by SDCC.

The patches attached to the SDCC bug #1767885 are required
to fix functions inlining problems.

  #1767885 Parameters lost from scope of intermediate inline function

Signed-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
14 years agoIncluded documentation for uLUt library.
Pavel Pisa [Fri, 6 Nov 2009 12:59:16 +0000 (13:59 +0100)]
Included documentation for uLUt library.

Signed-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
14 years agoIntegration fixes after uLan project splitting into submodules.
Pavel Pisa [Thu, 5 Nov 2009 16:55:27 +0000 (17:55 +0100)]
Integration fixes after uLan project splitting into submodules.

14 years agouLUt: added definition for weak attribute.
ppisa [Thu, 29 Oct 2009 18:54:52 +0000 (18:54 +0000)]
uLUt: added definition for weak attribute.

14 years agoAdd possibility to specify GAVL, GSA and HTIMER generated symbols scope.
ppisa [Tue, 20 Oct 2009 09:55:29 +0000 (09:55 +0000)]
Add possibility to specify GAVL, GSA and HTIMER generated symbols scope.

This allows to GSA_CUST_DEC_SCOPE declaration macro variant
where the first argument can select static scope or explicit
functions visibility
UL_ATTR_UNUSED static
UL_EXPORT
UL_DLLLOCAL
UL_DLLPUBLIC
The DLL symbol visibility macros are defined in ul_udexport.h
header file. Same GAVL, GSA and HTIMER implementation macro
is used as for case of declaration with default functions scope.

14 years agoCorrected pointer type in custom static GSA generated functions.
ppisa [Fri, 21 Aug 2009 12:04:32 +0000 (12:04 +0000)]
Corrected pointer type in custom static GSA generated functions.

14 years agoAdded ul_logreg_for_each_domain()
wentasah [Mon, 10 Aug 2009 12:06:01 +0000 (12:06 +0000)]
Added ul_logreg_for_each_domain()

This functions walks through the list of all registered log domains and
calls a callback on it. It can be used to print the list of domains for
a user.

14 years agoAdded UL_ATTR_REENTRANT attribute into defines for SDCC integration.
ppisa [Mon, 10 Aug 2009 07:25:11 +0000 (07:25 +0000)]
Added UL_ATTR_REENTRANT attribute into defines for SDCC integration.

14 years agoCorrected delete_all for static version of GSA.
ppisa [Fri, 19 Jun 2009 11:32:24 +0000 (11:32 +0000)]
Corrected delete_all for static version of GSA.

14 years agoAdded support for static GSA arrays with insert/delete functionality.
ppisa [Fri, 19 Jun 2009 11:00:32 +0000 (11:00 +0000)]
Added support for static GSA arrays with insert/delete functionality.

Such array can utilize preallocated items pointers array.
This means, that GSA_STATIC_CUST_DEC can be used with limited
insert/delete functionality. The GSA_CONST_CUST_DEC should
be used for strictly constant arrays with compile time filled data
instead.

14 years agoAdded wrapper to register single domain and provide public initialization function.
ppisa [Tue, 26 May 2009 00:53:02 +0000 (00:53 +0000)]
Added wrapper to register single domain and provide public initialization function.

14 years agoRecognize underscore character as part of logdomain names during parsing.
ppisa [Mon, 25 May 2009 21:48:03 +0000 (21:48 +0000)]
Recognize underscore character as part of logdomain names during parsing.

14 years agoAdded helper macro for log domain registration function building.
ppisa [Mon, 25 May 2009 17:42:12 +0000 (17:42 +0000)]
Added helper macro for log domain registration function building.

14 years agoAdded constructor, destructor and always_inline attributes to the uLUt definitions.
ppisa [Mon, 25 May 2009 17:41:29 +0000 (17:41 +0000)]
Added constructor, destructor and always_inline attributes to the uLUt definitions.

14 years agoAdded script to generate log domains arrays for static registration.
ppisa [Mon, 25 May 2009 15:34:28 +0000 (15:34 +0000)]
Added script to generate log domains arrays for static registration.

14 years agoData queue FIFO included in uLUt missing file added.
ppisa [Sun, 17 May 2009 09:35:52 +0000 (09:35 +0000)]
Data queue FIFO included in uLUt missing file added.

14 years agoData queue FIFO included in uLUt.
ppisa [Sun, 17 May 2009 09:33:49 +0000 (09:33 +0000)]
Data queue FIFO included in uLUt.

The FIFO support functions and type for custom element
can be declared by UL_DQFIFO_CUST_DEC. The static
instances can be declared by UL_DQFIFO_STATIC_INSTANCE.
The FIFO size has to be power of two, because sequential
numbers are masked when index into buffer is computed.

Queue allows to iterate over last N elements in addition
to usual put and get operations which is significant
for FIR filters implementation.

15 years agoFixes to achieve C++ compatibility
wentasah [Tue, 10 Feb 2009 12:36:57 +0000 (12:36 +0000)]
Fixes to achieve C++ compatibility

new is C++ keyword so it cannot be used as a name of identifiers.

15 years agoMore clean separation of htimer time and msec time in event poll code.
ppisa [Tue, 27 Jan 2009 23:36:08 +0000 (23:36 +0000)]
More clean separation of htimer time and msec time in event poll code.

15 years agoThe uLUt root htimer can be redirected through ul_root_htimer_ops.
ppisa [Tue, 27 Jan 2009 20:34:04 +0000 (20:34 +0000)]
The uLUt root htimer can be redirected through ul_root_htimer_ops.

These changes are necessary to allow integration into another
root main loop and events processing framework in future.

The types ul_mstime_t/ul_msdiff_t and ul_htim_time_t/ul_htim_diff_t
are not intermixed in the code and they could be separated in the
future if there appears need to do so.

15 years agoFixed doc typo
wentasah [Wed, 7 Jan 2009 11:51:27 +0000 (11:51 +0000)]
Fixed doc typo

15 years agoUpdated cyclic buffer code.
ppisa [Fri, 19 Dec 2008 20:12:58 +0000 (20:12 +0000)]
Updated cyclic buffer code.

15 years agoUse pointer to constant key type in GSA and GAVL custom types.
ppisa [Fri, 19 Dec 2008 19:57:26 +0000 (19:57 +0000)]
Use pointer to constant key type in GSA and GAVL custom types.

The wish to allow use of constant references to key asked
by Michal Sojka for uLUt use in Frescor project.

15 years agoAddec const attribute to some generic GAVL iterator functions.
ppisa [Thu, 18 Dec 2008 07:33:51 +0000 (07:33 +0000)]
Addec const attribute to some generic GAVL iterator functions.

This is NOT conversion of custom seatch functions to the
const key pointer. This conversion needs more checking
and could cause problems when multiple consts attributes
are accumulated.

15 years agoUse va_copy if va_list is used twice, else bad things happen on X86_64 systems.
ppisa [Mon, 20 Oct 2008 08:41:51 +0000 (08:41 +0000)]
Use va_copy if va_list is used twice, else bad things happen on X86_64 systems.

The arguments pointer is eaten by its use in destination function
and it is unusable next time. The separate copy has to be used for each call.

15 years agoBack propagation of uLUt Makefile.omk changes from OCERA tree.
ppisa [Tue, 14 Oct 2008 23:33:04 +0000 (23:33 +0000)]
Back propagation of uLUt Makefile.omk changes from OCERA tree.

15 years agoUnification of uLUt Makefile.omk
ppisa [Tue, 14 Oct 2008 22:58:37 +0000 (22:58 +0000)]
Unification of uLUt Makefile.omk

15 years agoInitialization of the first_changed field of timer queue added to make Valgrind happy.
ppisa [Tue, 7 Oct 2008 08:16:36 +0000 (08:16 +0000)]
Initialization of the first_changed field of timer queue added to make Valgrind happy.

15 years agoThe UL_OFFSETOF return type changed to size_t
ppisa [Tue, 8 Jul 2008 21:09:27 +0000 (21:09 +0000)]
The UL_OFFSETOF return type changed to size_t
to silence enormous number of warnings on 64-bit systems.

The dependence on size_t could be problem in some specific
target configurations although.

16 years agoCorrected bug in gavl_find_after() found by Martin Molnar.
ppisa [Fri, 29 Feb 2008 11:04:50 +0000 (11:04 +0000)]
Corrected bug in gavl_find_after() found by Martin Molnar.

Added test option 'S' to check this function in "ul_gavlchk.c".

16 years agoMinor updates for C++ compatibility.
ppisa [Tue, 4 Dec 2007 20:02:09 +0000 (20:02 +0000)]
Minor updates for C++ compatibility.

16 years agoul_ethd - reimplementation working with sockets - now sending uses fdopen
smolik [Wed, 14 Nov 2007 13:30:58 +0000 (13:30 +0000)]
ul_ethd - reimplementation working with sockets - now sending uses fdopen
- under windows now is possible to run ul_ethd like windows service
ulut - disable compilation of utils_PROGRAMS under win32 - some error occures
libulan - implemeted new command - fd_wait_recv
- fdopen
a lot of bug fixes regarding ul_eth implementation

16 years agoCbuff included into legacy Makefile.std build.
ppisa [Sun, 12 Aug 2007 12:08:02 +0000 (12:08 +0000)]
Cbuff included into legacy Makefile.std build.

17 years agouLUt library updated from other projects.
ppisa [Tue, 13 Feb 2007 11:29:42 +0000 (11:29 +0000)]
uLUt library updated from other projects.

Added support for cyclic variables comparison
  ul_cyclic_gt
  ul_cyclic_ge
This is usable mainly to compare time counters and other
variables which are expected to overflow and support overflow
arithmetics.

17 years agoMinor uLUt enhancements for C89 conformance from other projects.
ppisa [Sat, 4 Nov 2006 09:15:19 +0000 (09:15 +0000)]
Minor uLUt enhancements for C89 conformance from other projects.

17 years agoConversion to new logging support finished.
ppisa [Sun, 30 Jul 2006 23:37:07 +0000 (23:37 +0000)]
Conversion to new logging support finished.
It is now possible to selectively enable and set verbosity
for different logging domains from commandline.
The option "-g" argument syntax is same for all tools.
Number without domain specifier or with symbol "all"
select log level for all domains. Domain name followed
by "." or "=" character selects level for specified domain.
More specifications can be concatenated by symbol ":" or ",".
Usage example:

   -g 1:domone.5:domtwo.6

Requires to select level 1 for all but two listed two specified
domains. Log levels for "domone" and "domtwo" domains are set
to 5 or 6 respectively.

17 years agoAdded parsing of log level argument.
ppisa [Fri, 28 Jul 2006 15:31:42 +0000 (15:31 +0000)]
Added parsing of log level argument.

17 years agoAdded custom delete_all function for GSA arrays.
ppisa [Fri, 28 Jul 2006 13:01:47 +0000 (13:01 +0000)]
Added custom delete_all function for GSA arrays.

17 years agoProvided generic code to maintain and register log domains.
ppisa [Fri, 28 Jul 2006 12:51:27 +0000 (12:51 +0000)]
Provided generic code to maintain and register log domains.

17 years agoCustom GSA array can be preinitialized by static intems list now.
ppisa [Fri, 28 Jul 2006 12:42:33 +0000 (12:42 +0000)]
Custom GSA array can be preinitialized by static intems list now.
The functions gsa_cust_insert_at() and gsa_cust_delete_at()
recognizes such case when alloc_count is zero and do array copy
instead of items array free or realloc.

17 years agoDBUFF loging updated to match other projects.
ppisa [Fri, 28 Jul 2006 07:51:11 +0000 (07:51 +0000)]
DBUFF loging updated to match other projects.

18 years agoAdded implementation of multi-tail circular buffer with O1 head space
ppisa [Sat, 29 Apr 2006 09:37:38 +0000 (09:37 +0000)]
Added implementation of multi-tail circular buffer with O1 head space
allocation.
This intended for situation, where more asynchronous sources
need to write data into queue. Because of uLUt is intended
to not enforce any policy to its users, the locking is not
part of the code and operations are divided to the shorter sequences.
Some of these has to be called with lock, spinlock or even IRQ
protection. Synchronization selection is fully in client hands.

18 years agoul_lib is possible compile with ul_log staff from ulut, new interface for indirect...
smolik [Fri, 7 Apr 2006 08:13:41 +0000 (08:13 +0000)]
ul_lib is possible compile with ul_log staff from ulut, new interface for indirect access

18 years agoadded support for logging, conditional compilation of ulcintf
smolik [Fri, 7 Apr 2006 07:21:39 +0000 (07:21 +0000)]
added support for logging, conditional compilation of ulcintf

18 years agoStructured comment added to unique IDs pool code and some memory leak correction.
ppisa [Tue, 24 Jan 2006 11:18:24 +0000 (11:18 +0000)]
Structured comment added to unique IDs pool code and some memory leak correction.

18 years agoElimination of some easily fix-able warnings for GCC-4.0.2.
ppisa [Sat, 29 Oct 2005 22:40:14 +0000 (22:40 +0000)]
Elimination of some easily fix-able warnings for GCC-4.0.2.
There is still bunch of more problematic things related
to the C99 strict aliasing rules.

18 years agoAdded support for static GSA arrays.
ppisa [Tue, 9 Aug 2005 15:20:45 +0000 (15:20 +0000)]
Added support for static GSA arrays.

18 years agoSynchronized with last changes in the CAN tree.
ppisa [Tue, 28 Jun 2005 20:42:37 +0000 (20:42 +0000)]
Synchronized with last changes in the CAN tree.

19 years agoSome small htimer mstime update
ppisa [Sun, 8 May 2005 22:01:10 +0000 (22:01 +0000)]
Some small htimer mstime update

19 years agoUL_ATTR_xxx updated and united with OCERA CAN sources
ppisa [Sun, 8 May 2005 21:53:56 +0000 (21:53 +0000)]
UL_ATTR_xxx updated and united with OCERA CAN sources

19 years agoAdded support for unique ID generator based on GAVL
ppisa [Sun, 8 May 2005 13:19:21 +0000 (13:19 +0000)]
Added support for unique ID generator based on GAVL

19 years agoFixed bug in the custom GSA iterators declaration
ppisa [Tue, 1 Mar 2005 09:36:52 +0000 (09:36 +0000)]
Fixed bug in the custom GSA iterators declaration

19 years agoChanges to achieve better compatibility with stranger compilers
ppisa [Fri, 14 Jan 2005 11:52:52 +0000 (11:52 +0000)]
Changes to achieve better compatibility with stranger compilers

19 years agoFixed bug in evaluation of return value in gavl_search_node() function.
ppisa [Thu, 9 Dec 2004 00:24:27 +0000 (00:24 +0000)]
Fixed bug in evaluation of return value in gavl_search_node() function.
Bug reported by Neal H. Walfield. It slipped into code
23 Oct 2003 and has been unnoticed until now, because all CAN
code switched to custom tree version before bug introduction.

19 years agoStructured comments updated
ppisa [Fri, 24 Sep 2004 23:38:42 +0000 (23:38 +0000)]
Structured comments updated

19 years agoAdded Makefile.std to support old style compilation
ppisa [Fri, 24 Sep 2004 22:13:17 +0000 (22:13 +0000)]
Added Makefile.std to support old style compilation

19 years agoAdded uLan Utilities (ulut) and uLan C interface (ulcintf) libraries
ppisa [Wed, 22 Sep 2004 22:13:08 +0000 (22:13 +0000)]
Added uLan Utilities (ulut) and uLan C interface (ulcintf) libraries

19 years agoInitial revision
ppisa [Fri, 10 Sep 2004 17:46:28 +0000 (17:46 +0000)]
Initial revision