cu-ecen-aeld / final-project-ruchaborwankar

final-project-ruchaborwankar created by GitHub Classroom
0 stars 0 forks source link

Implementing Message queue FreeRTOS #4

Closed ruchaborwankar closed 4 years ago

ruchaborwankar commented 4 years ago

TODO: Implement simple message queue on TIVA board in order to send Ultrasonic sensor data to Beaglebone later.

DoD: Successful implementation of message queues

ruchaborwankar commented 4 years ago

A simple message queue is implemented with code: https://github.com/cu-ecen-5013/final-project-ruchaborwankar/blob/master/Message%20queues%20implementation.zip

In this code,simple message queue is implemented with two tasks:send and receive. A structure "AMessage" is passed from send to receive part with data:80 and messageid=1.Two semaphores S1 and S2 are used wherein S1 is released after thread creation in order to ensure that send occurs first and after that send thread releases the semaphore S2 for the second thread. In receive thread after data is received the thread release semaphore S1 in order to ensure sending of data.

Output is as follows: image

Thus,Successfully Implemented Message Queues