Select Page

Queues

Queue Assignment

There are two user push buttons on the EK-TM4C123GXL LaunchPad Board. Write a program to light the LEDs:

  • Green LED when SW1 is pressed.
  • Blue LED when SW2 is pressed.
  • Red LED when no key.

Howto:

  1. Import atomthreads Template Project into CCS workspace
  2. Rename the Project as atomthreads_queue_one
  3. Using Queue(s) send message whenever a key is pressed
  4. Read from the Queue and accordingly light the LEDs
  5. Implement key scanning task as periodic task
  6. Take care of key de-bouncing

References

  1. Introduction to atomthreads
  2. atomthreads kernel Reference
  3. atomthreads Documentation