TOP=../..

include $(TOP)/configure/CONFIG
#----------------------------------------
#  ADD MACRO DEFINITIONS AFTER THIS LINE


# ====================================================================================
# This demo demonstrates the intertask synchronization using binary
# semaphores.
# It creates two (semId1 and semId2) binary semaphores for intertask
# synchronization between two tasks (taskA and taskB). taskA needs
# to execute
# an event (event A). On completion of event A, taskB needs to execute
# another event (event B). On completion of the event B, taskA needs to
# execute event A. This process needs to be done iteratively. SynchronizeDemo
# executes this process.
#
# To run the code invoke the function synchronizeDemo().

# =====================================================================================
BIN_INSTALLS_vxWorks += synchronizeDemo.o
# =====================================================================================

# ====================================================================================
# This demo demonstrates intertask communication using Message Queues.
# It creates a Message Queue for interTask communication between the
# producerTask and the consumerTask. It spawns the producerTask that creates
# messages and sends messages to the consumerTask using the message queue.
# It spawns the consumerTask that reads messages from the message queue.
# After consumerTask has consumed all the messages, the message queue is
# deleted.
#
# To run this code invoke the function msgQDemo()

# ====================================================================================
BIN_INSTALLS_vxWorks += msgQDemo.o
# ====================================================================================


# ================================================================================
# This demo demonstrates the usage of the mutual exclusion semaphore
# for intertask synchronization and obtaining exclusive access to a
# data structure shared among multiple tasks.
#
# It creates a mutual exclusion semaphore for intertask syncronization
# between the producerTask and the consumerTask. Both producerTask and
# consumerTask access and manipulate the global shared memory data
# structure simultaneously. To avoid corruption of the global shared
# memory data structure mutual exclusion semaphores are used.
#
# It then spawns the producerTask that produces the message and puts the message
# in the global shared data structure, spawns the consumerTask that
# consumes the message from the global shared data structure and
# updates the status field to CONSUMED so that producerTask can put
# the next produced message in the global shared data structure.
# After consumerTask has consumed all the messages, the mutual exclusion
# semaphore is deleted.
#
# To run this code invoke the function mutexSemDemo()
# ================================================================================
BIN_INSTALLS_vxWorks += mutexSemDemo.o
# ================================================================================


#==========================================
include $(TOP)/configure/RULES
#----------------------------------------
#  ADD RULES AFTER THIS LINE

