Write a program using FreeRTOS that performs the following: The program has three tasks: TxTaskl, TxTask2,...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Write a program using FreeRTOS that performs the following: The program has three tasks: TxTaskl, TxTask2, RxTask ⚫ The program has one global counter (an unsigned integer): globalCount • The program has one queue that is shared by all of the tasks: numberQueue numberQueue should be sized so that it can hold up to 15 unsigned integers at a time . ⚫ TxTask1 and TxTask 2 perform the same function: they place the current value of globalCount in the numberQueue queue, and increment globalCount by 1 each time, then wait 500 ms before doing the same operation again • RxTask should retrieve numbers from numberQueue, and display (print to the console) the value of the number retrieved from the queue Write a program using FreeRTOS that performs the following: The program has three tasks: TxTaskl, TxTask2, RxTask ⚫ The program has one global counter (an unsigned integer): globalCount • The program has one queue that is shared by all of the tasks: numberQueue numberQueue should be sized so that it can hold up to 15 unsigned integers at a time . ⚫ TxTask1 and TxTask 2 perform the same function: they place the current value of globalCount in the numberQueue queue, and increment globalCount by 1 each time, then wait 500 ms before doing the same operation again • RxTask should retrieve numbers from numberQueue, and display (print to the console) the value of the number retrieved from the queue
Expert Answer:
Answer rating: 100% (QA)
Heres a simple implementation of the described program using FreeRTOS in C include include FreeRTOSh ... View the full answer
Related Book For
Microsoft Visual C# An Introduction to Object-Oriented Programming
ISBN: 978-1337102100
7th edition
Authors: Joyce Farrell
Posted Date:
Students also viewed these programming questions
-
Let A, B be sets. Define: (a) the Cartesian product (A B) (b) the set of relations R between A and B (c) the identity relation A on the set A [3 marks] Suppose S, T are relations between A and B, and...
-
Currently, the tile manufacturing industry is striving to reduce carbon emissions and increase processes efficiency. Castellon Tile aspires to modernize its production and gain market share by...
-
Analyzing Revenues and Expenses and Completing an Income Statement Neighborhood Realty, Incorporated, has been operating for three years and is owned by three investors. S. Bhojraj owns 60 percent of...
-
On January 1, 20X1, Williams Corporation acquired a machine costing $45,000. The estimated life is five years and the salvage value is $3,000. Determine the depreciation expense for the first two...
-
Propose a mechanism to account for cleavage of the -cyanoethyl protecting group from the phosphate groups on treatment with aqueous ammonia. (Acrylonitrile, H 2 C = CHCN, is a by product.) What kind...
-
Bistro Servers The RestaurantTips data file comes from a sample of 157 bills at a small bistro/wine bar. Three different servers (labeled A, $\mathrm{B}$, and $\mathrm{C}$ ) worked on the nights the...
-
Hiring an employee and taking a sales order are business activities but are not accounting transactions requiring journal entries. Make a list of some other business activities that would not be...
-
How do ethical considerations factor into the governance frameworks of collaborative consortia, particularly concerning data privacy, intellectual property rights, and equitable distribution of...
-
True or False: a) You can perform a two-way ANOVA only when the sample sizes are the same in all cells. b) When interaction is present in a two-way ANOVA, the main effects are always uninformative....
-
Consider the Mass-Spring-Damper system shown in Fig. 2 (left), where m is the mass of the cart, k is the spring constant, and b is the damper constant. The input of the system is u(t), which...
-
The following equations may be needed to answer question 2 mm m+m Ej = h B J (J + 1) Ev = hcv (v + ) B = h 82ur2 V = = 1 ke 2TCH A = Ecl 2. (a) Carbon monoxide (C60) has a bond length of 113 pm....
-
The following table describes a consulting project. Normal Required Time (Week) Activity A B C D (2) E F G Preceding Activities A A B C B, C D, E, F 2 5 4 4 3 5 3 Crash Required Time (Week) 1 2 2 2 1...
-
Two signals, mi(t) and m2(1) (both band-limited to 10,000 Hz) are to be transmitted simultaneously over a channel using a custom frequency division multiplexing scheme. The multiplexing system is...
-
Bright Sparks (Pty) Ltd is a company based in Cape Town that specialises in buying and selling energy-efficient lighting equipment for residential and commercial use. The company has a 31 December...
-
Mr. Atia Azuure was employed by Northern Star Tomatoes Ltd on 1st September 2014 on salary scale of GHC36,000 * 6,000 66,000 per annum as the financial controller of the company. He is provided with...
-
6 (a) Briefly develop a mathematical model of the behaviour of a copper-twisted pair cable (b) Derive the magnetic energy from: w given that: K + w, where the - - k symbols have their usual meaning...
-
The set of step-by-step instructions that solve a problem is called _____________________ . a. An algorithm b. A list c. A plan d. A sequential structure
-
Unless specified otherwise, variables in C++ are passed _____________________ . a. By address b. By content c. By reference d. By value
-
Programmers refer to the items needed to reach a problems goal as the _____________________ . a. Input b. Output c. Processing d. Purpose
-
When nitrogen and fluorine combine to form a molecule, the most likely chemical formula is: (a) N 3 F. (b)N 2 F. (c) NF 4 . (d) NF. (e) NF 3 .
-
A substance consisting of which of the two molecules shown below should have a higher boiling point? Why? (a) the molecule on the left, SCO, because it comes later in the periodic table (b) the...
-
In terms of the periodic table, is there an abrupt or gradual change between ionic and covalent bonds? (a) An abrupt change occurs across the metalloids. (b) Actually, any element of the periodic...
Study smarter with the SolutionInn App