subject

Write a program using FreeRTOS that performs the following:

The user should enter the number of minutes and seconds desired for the program to count down. The program will act like an alarm clock or countdown timer.

The program has two tasks: TimeTask, DisplayTask

The program has one queue that is shared by all of the tasks: timeQueue

TimeTaskwill keep track of the number of seconds remaining. Once every second, this task should send the number of seconds remaining to the DisplayTaskvia the timeQueue.

DisplayTaskshould retrieve numbers from timeQueueand print the value in the format of minutes and seconds

Expected Output

Enter minutes: 3

Enter seconds: 45

Time remaining: 3:45

Time remaining: 3:44

Time remaining: 3:43

...

Time remaining: 0:02

Time remaining: 0:01

Time is up!

ansver
Answers: 2

Other questions on the subject: Computers and Technology

image
Computers and Technology, 23.06.2019 09:30, jason9394
Facial expressions and gestures are examples of messages.
Answers: 3
image
Computers and Technology, 23.06.2019 21:20, FlowerChild1229
For positive constants a and b, the force between two atoms in a molecule is given f(r) = −a r2 + b r3 , where r > 0 is the distance between the atoms. note: a and b are upper case letters. (a) find f '(r) = (b) find the critical point for f(r). r = (c) find f ''(r) = (d) find the value of r so that f ''(r) = 0.
Answers: 1
image
Computers and Technology, 24.06.2019 07:00, jared2461
Jean has kept the content of her website limited to what is important; she has also ensured that the text follows a particular style and color all throughout her website. which website features has jean kept in mind? jean has limited the content of her website to what is important; this ensures (clarity, simplicity, harmony and unity) of the content. she has also formatted the text in a particular style and color throughout her website, ensuring (balance, simplicity, consistency)
Answers: 2
image
Computers and Technology, 24.06.2019 07:00, Dkhaurithompson
Selective is defined as paying attention to messages that are consistent with one’s attitudes and beliefs and ignoring messages that are inconsistent.
Answers: 1
You know the right answer?
Write a program using FreeRTOS that performs the following:

The user should enter the nu...

Questions in other subjects:

Konu
Mathematics, 03.11.2020 20:20
Konu
Mathematics, 03.11.2020 20:20
Konu
Mathematics, 03.11.2020 20:20