Skip to content

Samples: Add queue sample - #44

Open
sohshri796-cell wants to merge 1 commit into
vedantmalkar:mainfrom
sohshri796-cell:Samples/queue_mutex
Open

Samples: Add queue sample#44
sohshri796-cell wants to merge 1 commit into
vedantmalkar:mainfrom
sohshri796-cell:Samples/queue_mutex

Conversation

@sohshri796-cell

Copy link
Copy Markdown
Contributor

Adds a sample for queues which integrates the implementation of queues and mutex. This sample contains two producer functions and one consumer function.

  • Consumer function recieves from the queue and prints it using USART.
  • Producer 1 function sends data to the queue with a delay of 500ms.
  • Producer 2 function sends data to the queue with a delay of 700ms.

Queue is used for inter-task communication while the mutex is used to protect while printing using UART.

Verified the sample on QEMU as well as hardware.
QEMU:
qemu

Hardware:
hardware

part of #15

Adds a sample for queues which integrates the implementation of queues and mutex. This sample contains two producer functions and one consumer function.

part of vedantmalkar#15

Signed-off-by: Soham Aney <sohshri796@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant