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

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 06:50
Match the personality traits with their description
Answers: 1
question
Computers and Technology, 23.06.2019 01:30
1. which of the following is a search engine? a) mozilla firefox b)internet explorer c)google d)safari 2. which of the following statements is true? a) all search engines will provide the same results when you enter the same query. b) all search engines use the same amount of advertisements. c) some search engines are also browsers. d) search engines often provide different results, even when you enter the same query.
Answers: 2
question
Computers and Technology, 23.06.2019 09:30
:you areto design the controller for alight that functions both as an ordinary light and also as a motion activated light and alarm. a.if the manual switch s is on, then the light l is on. b.besides the manual switch, there is a motion detector, m1, which activatesthis light.c.if motion is detected but the light is on anyway because s is on, only then a secondoutput a, an alarm, is turned on. d.the disable switch, d, disables the motion activated light and alarmbut leaves manual control operation of the light using switch s.(i)read the problem statement and clearly identify the inputs and outputs for the circuit you are designing. (ii)create the truth table for this system; include the light, alarm, switch, disable, and the motion sensor.(iii)draw a schematic of this system.
Answers: 1
question
Computers and Technology, 23.06.2019 15:00
1. which of the following statements are true about routers and routing on the internet. choose two answers. a. protocols ensure that a single path between two computers is established before sending packets over it. b. routers are hierarchical and the "root" router is responsible for communicating to sub-routers the best paths for them to route internet traffic. c. a packet traveling between two computers on the internet may be rerouted many times along the way or even lost or "dropped". d. routers act independently and route packets as they see fit.
Answers: 2
You know the right answer?
Write a program using FreeRTOS that performs the following:

The user should enter the nu...
Questions
question
Mathematics, 28.09.2019 20:00
question
Mathematics, 28.09.2019 20:00
question
History, 28.09.2019 20:00
question
Mathematics, 28.09.2019 20:00