Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • Defines a struct that stores two uint8_t counters, counter_a and counter_b. typedef this struct Counters.

  • Uses a single soft timer to increment counter_a every half a second, and counter_b every second.

  • LOG_DEBUG the value of each counter whenever they’re updated.

  • Doesn’t use any global variables

  • Implements all code in main.c

Your output should look something like this:

...