Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
proview
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Esteban Blanc
proview
Commits
514ff1f3
Commit
514ff1f3
authored
Jan 12, 2006
by
claes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Files moved from kernel
parent
229c1e7d
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
225 additions
and
0 deletions
+225
-0
tlog/exe/rs_tlog/src/os_linux/link_rule.mk
tlog/exe/rs_tlog/src/os_linux/link_rule.mk
+8
-0
tlog/lib/tlog/src/os_linux/hw_x86/makefile
tlog/lib/tlog/src/os_linux/hw_x86/makefile
+12
-0
tlog/lib/tlog/src/tlog_plc_macro.h
tlog/lib/tlog/src/tlog_plc_macro.h
+205
-0
No files found.
tlog/exe/rs_tlog/src/os_linux/link_rule.mk
0 → 100644
View file @
514ff1f3
ifndef
link_rule_mk
link_rule_mk
:=
1
link
=
$(ldxx)
$(elinkflags)
$(domap)
-o
$(export_exe)
\
$(export_obj)
$(objects)
$(rt_msg_eobjs)
\
-lpwr_rt
-lpwr_co
-lpwr_msg_dummy
-lpthread
-lrt
-lm
endif
tlog/lib/tlog/src/os_linux/hw_x86/makefile
0 → 100644
View file @
514ff1f3
include
$(pwre_dir_symbols)
-include
$(pwre_kroot)/tools/bld/src/$(os_name)/$(hw_name)/$(type_name)_generic.mk
ifeq
($($(type_name)_generic_mk),)
-include
$(pwre_kroot)/tools/bld/src/$(os_name)/$(type_name)_generic.mk
endif
ifeq
($($(type_name)_generic_mk),)
include
$(pwre_kroot)/tools/bld/src/$(type_name)_generic.mk
endif
tlog/lib/tlog/src/tlog_plc_macro.h
0 → 100644
View file @
514ff1f3
/*
* Proview $Id: tlog_plc_macro.h,v 1.1 2006-01-12 06:41:28 claes Exp $
* Copyright (C) 2005 SSAB Oxelsund AB.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License as
* published by the Free Software Foundation, either version 2 of
* the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with the program, if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
/* PREPROCESSOR RUTINER */
/* DtLog */
/* Function: Test Logging of Digital Value */
/* */
#define DtLog_exec( object, in) \
if ( in && !object->InOld && !object->UpSignal) \
{ \
object->UpSignal = 1; \
clock_gettime( CLOCK_REALTIME, &object->UpTime); \
} \
if ( !in && object->InOld && !object->DownSignal) \
{ \
object->DownSignal = 1; \
clock_gettime( CLOCK_REALTIME, &object->DownTime); \
} \
object->InOld = in;
/* AtLog */
/* Function: Test Logging of Analog Value */
/* */
#define AtLog_exec( object, in) \
if ( in >= object->Limit && object->InOld < object->Limit && \
!object->UpSignal) \
{ \
object->UpSignal = 1; \
clock_gettime( CLOCK_REALTIME, &object->UpTime); \
} \
if ( in <= object->Limit && object->InOld > object->Limit && \
!object->DownSignal) \
{ \
object->DownSignal = 1; \
clock_gettime( CLOCK_REALTIME, &object->DownTime); \
} \
object->InOld = in;
/* TLogOpen */
/* Function: Open and close Test Logging File */
/* */
#define TLogOpen_exec( object, in) \
if ( in && !object->InOld && !object->OpenSignal) \
object->OpenSignal = 1; \
else if ( !in && object->InOld && !object->CloseSignal) \
{ \
object->CloseSignal = 1; \
clock_gettime( CLOCK_REALTIME, &object->CloseTime); \
} \
if ( object->FileOpen && !object->FileOpenOld) \
clock_gettime( CLOCK_REALTIME, &object->OpenTime); \
object->InOld = in; \
object->FileOpenOld = object->FileOpen;
/* TLogModify */
/* Function: Modify selectlists for Test Logging File */
/* */
#define TLogModify_exec( object, in) \
if ( in && !object->InOld && !object->ModifySignal) \
{ \
object->ModifySignal = 1; \
clock_gettime( CLOCK_REALTIME, &object->ModifyTime); \
} \
else if ( !in && object->InOld && !object->UnModifySignal) \
{ \
object->UnModifySignal = 1; \
clock_gettime( CLOCK_REALTIME, &object->UnModifyTime); \
} \
object->InOld = in;
/* CDtLog */
/* Function: Conditional Test Logging of Digital */
/* Value */
/* */
#define CDtLog_exec( object, in, cond) \
if ( cond && !object->CondOld && !object->LogSignal) \
{ \
object->LogSignal = 1; \
object->LogValue = in; \
clock_gettime( CLOCK_REALTIME, &object->LogTime); \
} \
object->CondOld = cond;
/* CAtLog */
/* Function: Conditional Test Logging of Analog */
/* Value */
/* */
#define CAtLog_exec( object, in, cond) \
if ( cond && !object->CondOld && !object->LogSignal) \
{ \
object->LogSignal = 1; \
object->LogValue = in; \
clock_gettime( CLOCK_REALTIME, &object->LogTime); \
} \
object->CondOld = cond;
/* ChgAtLog */
/* Function: Chg Test Logging of Analog */
/* Value */
/* */
#define ChgAtLog_exec( object, in) \
if ( object->InOld != in && !object->LogSignal) \
{ \
object->LogSignal = 1; \
object->LogValue = in; \
clock_gettime( CLOCK_REALTIME, &object->LogTime); \
} \
object->InOld = in;
/* COtLog */
/* Function: Conditional Test Logging of an Objid */
/* Value */
/* */
#define COtLog_exec( object, in, cond) \
if ( cond && !object->CondOld && !object->LogSignal) \
{ \
object->LogSignal = 1; \
object->LogValue = in; \
clock_gettime( CLOCK_REALTIME, &object->LogTime); \
} \
object->CondOld = cond;
/* ChgOtLog */
/* Function: Test Logging of an Objid */
/* Value when value is changed */
/* */
#define ChgOtLog_exec( object, in) \
if ( cdh_ObjidIsNotEqual( object->InOld, in) && !object->LogSignal)\
{ \
object->LogSignal = 1; \
object->LogValue = in; \
clock_gettime( CLOCK_REALTIME, &object->LogTime); \
} \
object->InOld = in;
/* ExecOn */
/* Function: Turn exectution of all plcpgm's on */
/* */
#define TLogExecAllOn_exec( object, in)\
if ( in && !object->InOld && !object->ExecOnSignal)\
{\
object->ExecOnSignal = 1;\
clock_gettime( CLOCK_REALTIME, &object->LogTime);\
}\
if ( object->ExecOn && object->ExecOnOld )\
object->ExecOn = 0;\
object->ExecOnOld = object->ExecOn;\
object->InOld = in;
/* ExecOff */
/* Function: Turn exectution of all plcpgm's off */
/* */
#define TLogExecAllOff_exec( object, in)\
if ( in && !object->InOld && !object->ExecOffSignal)\
{\
object->ExecOffSignal = 1;\
clock_gettime( CLOCK_REALTIME, &object->LogTime);\
}\
if ( object->ExecOff && object->ExecOffOld )\
object->ExecOff = 0;\
object->ExecOffOld = object->ExecOff;\
object->InOld = in;
/* ExecPlcOn */
/* Function: Turn exectution of one plcpgm's on */
/* */
#define ExecPlcOn_exec( object, in, scanoff)\
object->SetOn = 0;\
if ( in && !object->InOld)\
{\
scanoff = 0;\
object->SetOn = 1;\
}\
object->InOld = in;
/* ExecPlcOff */
/* Function: Turn exectution of one plcpgm's off */
/* */
#define ExecPlcOff_exec( object, in, scanoff)\
object->SetOff = 0;\
if ( in && !object->InOld)\
{\
scanoff = 1;\
object->SetOff = 1;\
}\
object->InOld = in;
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment