...
Defines a struct that stores two
uint8_t
counters,counter_a
andcounter_b
.typedef
this structCounters
.Uses a single soft timer to increment
counter_a
every half a second, andcounter_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:
...