Put the Knowledge to Work

  1. Do the LED driver example from start to finish on your own. The exercises in the previous chapter show you where to start.

  2. Finish the CircularBuffer that you started at the end of the previous chapter.

  3. Our hardware engineer informed us she could save $0.12/board if the LEDs used inverted logic. Modify the LedDriver and its tests to use inverted logic.

    How could our tests or design be improved so that most of the tests don’t care about inverted logic?

  4. Our company just completed the version of the board with inverted LED logic. We find out that some of the previous version are still in the field. How should the LedDriver and its tests be modified to support both versions of the hardware? Conditional compilation ...

Get Test Driven Development for Embedded C now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.