Add resources finalizing routines/blanks
This commit is contained in:
parent
f30058ac02
commit
279a1679c3
|
@ -41,6 +41,14 @@ void initializeHardware()
|
|||
{
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
// This function is called by the main OpenPLC routine when it is finalizing.
|
||||
// Resource clearing procedures should be here.
|
||||
//-----------------------------------------------------------------------------
|
||||
void finalizeHardware()
|
||||
{
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
// This function is called by the OpenPLC in a loop. Here the internal buffers
|
||||
// must be updated to reflect the actual Input state. The mutex bufferLock
|
||||
|
|
|
@ -58,6 +58,14 @@ void initializeHardware()
|
|||
}
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
// This function is called by the main OpenPLC routine when it is finalizing.
|
||||
// Resource clearing procedures should be here.
|
||||
//-----------------------------------------------------------------------------
|
||||
void finalizeHardware()
|
||||
{
|
||||
}
|
||||
|
||||
void sendOutput(unsigned char *sendBytes, unsigned char *recvBytes)
|
||||
{
|
||||
long serialTimer;
|
||||
|
|
|
@ -269,6 +269,14 @@ void initializeHardware()
|
|||
searchForIO();
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
// This function is called by the main OpenPLC routine when it is finalizing.
|
||||
// Resource clearing procedures should be here.
|
||||
//-----------------------------------------------------------------------------
|
||||
void finalizeHardware()
|
||||
{
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
// This function is called by the OpenPLC in a loop. Here the internal buffers
|
||||
// must be updated to reflect the actual Input state. The mutex bufferLock
|
||||
|
|
|
@ -822,6 +822,14 @@ void initializeHardware()
|
|||
pthread_create(&piXtend_thread, NULL, updateLocalBuffers, NULL);
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
// This function is called by the main OpenPLC routine when it is finalizing.
|
||||
// Resource clearing procedures should be here.
|
||||
//-----------------------------------------------------------------------------
|
||||
void finalizeHardware()
|
||||
{
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
// This function is called by the OpenPLC in a loop. Here the internal buffers
|
||||
// must be updated to reflect the actual Input state. The mutex buffer_lock
|
||||
|
|
|
@ -605,6 +605,14 @@ void initializeHardware()
|
|||
pthread_create(&piXtend_thread, NULL, updateLocalBuffers, NULL);
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
// This function is called by the main OpenPLC routine when it is finalizing.
|
||||
// Resource clearing procedures should be here.
|
||||
//-----------------------------------------------------------------------------
|
||||
void finalizeHardware()
|
||||
{
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
// This function is called by the OpenPLC in a loop. Here the internal buffers
|
||||
// must be updated to reflect the actual Input state. The mutex buffer_lock
|
||||
|
|
|
@ -542,6 +542,14 @@ void initializeHardware()
|
|||
pthread_create(&piXtend_thread, NULL, updateLocalBuffers, NULL);
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
// This function is called by the main OpenPLC routine when it is finalizing.
|
||||
// Resource clearing procedures should be here.
|
||||
//-----------------------------------------------------------------------------
|
||||
void finalizeHardware()
|
||||
{
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
// This function is called by the OpenPLC in a loop. Here the internal buffers
|
||||
// must be updated to reflect the actual Input state. The mutex buffer_lock
|
||||
|
|
|
@ -99,6 +99,14 @@ void initializeHardware()
|
|||
}
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
// This function is called by the main OpenPLC routine when it is finalizing.
|
||||
// Resource clearing procedures should be here.
|
||||
//-----------------------------------------------------------------------------
|
||||
void finalizeHardware()
|
||||
{
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
// This function is called by the OpenPLC in a loop. Here the internal buffers
|
||||
// must be updated to reflect the actual state of the input pins. The mutex buffer_lock
|
||||
|
|
|
@ -99,6 +99,14 @@ void initializeHardware()
|
|||
}
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
// This function is called by the main OpenPLC routine when it is finalizing.
|
||||
// Resource clearing procedures should be here.
|
||||
//-----------------------------------------------------------------------------
|
||||
void finalizeHardware()
|
||||
{
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
// This function is called by the OpenPLC in a loop. Here the internal buffers
|
||||
// must be updated to reflect the actual state of the input pins. The mutex buffer_lock
|
||||
|
|
|
@ -168,6 +168,14 @@ void initializeHardware()
|
|||
pthread_create(&thread, NULL, exchangeData, NULL);
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
// This function is called by the main OpenPLC routine when it is finalizing.
|
||||
// Resource clearing procedures should be here.
|
||||
//-----------------------------------------------------------------------------
|
||||
void finalizeHardware()
|
||||
{
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
// This function is called by the OpenPLC in a loop. Here the internal buffers
|
||||
// must be updated to reflect the actual Input state. The mutex bufferLock
|
||||
|
|
|
@ -192,6 +192,14 @@ void initializeHardware()
|
|||
pthread_create(&ADCthread, NULL, readAdcThread, NULL);
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
// This function is called by the main OpenPLC routine when it is finalizing.
|
||||
// Resource clearing procedures should be here.
|
||||
//-----------------------------------------------------------------------------
|
||||
void finalizeHardware()
|
||||
{
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
// This function is called by the OpenPLC in a loop. Here the internal buffers
|
||||
// must be updated to reflect the actual Input state. The mutex buffer_lock
|
||||
|
|
|
@ -93,6 +93,7 @@ void updateTime();
|
|||
|
||||
//hardware_layer.cpp
|
||||
void initializeHardware();
|
||||
void finalizeHardware();
|
||||
void updateBuffersIn();
|
||||
void updateBuffersOut();
|
||||
|
||||
|
|
|
@ -281,6 +281,7 @@ int main(int argc,char **argv)
|
|||
disableOutputs();
|
||||
updateCustomOut();
|
||||
updateBuffersOut();
|
||||
finalizeHardware();
|
||||
printf("Shutting down OpenPLC Runtime...\n");
|
||||
exit(0);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue