Define statements to declare the pin numbers

Assignment Help Basic Computer Science
Reference no: EM133363801

QEMU Implementation - Show results of emulated code in QEMU. Can use print statements or other debug output as needed to represent lights and sensors. Must use utsname and display machine name during installation. Must execute on armv7l architecture.

Programming - Multitasking: Multitasking with C and the BeagleBone Black

Update your traffic signal program to be multithreaded:

One thread for each of the traffic signals
Add a wait sensor sensor at each direction - there should be one thread for these as well
Implement this with a push-button
If a light is red but the corresponding wait sensor is triggered (i.e. the button is pushed and held) for 5 seconds, the light should cycle to green without waiting the full 2 minutes

Requirements: Implement the above updates in C using pthreads and mutexes Wait sensor threads should update a wait timer that the light threads can read. Use mutexes to synchronize the data access

Test code first with your emulator - be sure to print the utsname information during initialization

GPIO pins should be configurable - use #define statements to declare the pin numbers so that your code can be tested by professor or TAs
Ensure code compiles with zero warnings

Run the MISRA code check against your code. Fix as many warnings as applicable / possible. Give a short justification for why you can't fix the remaining ones.

BONUS Problems:

a. Implement the same program in Rust
b. Implement the same program in Ada (verison 95 or above)

Reference no: EM133363801

Questions Cloud

What are the methods, steps, and strategies that the hunting : What are the methods, steps, and strategies that The Hunting performance of captive-born South China tigers (Panthera tigris amoyensis) on free-ranging prey
What is the most important thing that caught your attention : In the book "The sixth extinction " in Kolbert chapter 5 "WELCOME TO THE ANTHROPOCENE" what is the most important thing that caught your attention
Distinguish saturation and presaturation dispersal : Compare and contrast the types of competition (1.e., interference, exploitation, and apparent). What is meant by a metapopulation how can it influence a species
Explain the intermediate disturbance hypothesis : Explain the intermediate disturbance hypothesis. Include in your answer how this relates to species diversity, composition, and competition within a riparian
Define statements to declare the pin numbers : Implement the same program in Rust and Implement the same program in Ada - Implement the above updates in C using pthreads and mutexes Wait sensor threads
Explain the hardy-weinberg principle and make up : Explain the Hardy-Weinberg principle and make up an illustrative example of a population in Hardy-Weinberg equilibrium and a population not in Hardy-Weinberg
Design study to investigate possible impact of agricultural : Design a study to investigate possible impact(s) of agricultural pesticides on honeybee survival. Assume that you have unlimited access to honeybees, farms
Explain the danger vestigial and lost traits present : Explain the danger vestigial and lost traits present for building an accurate phylogeny. Darwin discusses their role in classifying animals.
How does the artificial aquatic environment of the arboretum : How does the artificial aquatic environment of the Arboretum system differ from a natural freshwater system, and how could this affect the ecology of the system

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Discuss different reasons terminating a process and command

discuss the different reasons for terminating a process and the commands used for this purpose.

  The organization staff regarding security

What are the roles and responsibilities for the organization's staff regarding security?

  Compare it in style and speed to the stl versions

Write a C++ version that uses only classes and the string data type but no other advanced library facilities. Compare it in style and speed to the STL versions.

  Responsibilities for sales force business analyst

Create business requirement document for the fallowing responsibilities for sales force business analyst.

  Database administration and security

The executives in ACME are now asking for security privileges to the entire database. Explain how you have set-up your security for the ACME database and what w

  Discuss some of software engineering constraints

Discuss some of the "Software Engineering " constraints that must be overcome in order build a successful system.

  Check the assumptions and conditions for inference

Given the cost of BST, a farmer believes he cannot afford to use it unless he is sure of attaining at least a 25% increase in milk production. Based on your confidence interval, what advice would you give him?

  Describe the typical life cycle of an unmanned air vehicle

Describe the typical life cycle of an unmanned air vehicle such as the predator or reaper?

  Factors of resistance to change

Describe the organizational factors that create stress and discuss how they compare to the factors of resistance to change. How are they similar and different? Are the methods for managing change useful for managing stress caused by organizational..

  Analyze how big data and data collection

Analyze how Big Data and data collection from external sources can present opportunities for business intelligence.

  Republican party national committee

You are the webmaster for the Republican Party National Committee. Who is likely to attack your site? What sort of attacks might take place?

  Prototypes in the class declaration with definitions

Simple function members can be inclined by preceding their definitions with the keyword into ne and putting the definitions in the class header file

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd