2 #include "test_BiColorLed.h"
5 void BiColorLedOn_sets_bit_in_ddr(
void)
8 *BiColorLed_ddr = 0xFE;
10 TEST_ASSERT_BIT_LOW_MESSAGE(
13 "Cannot run test: must start with ddr led bit clear!"
18 TEST_ASSERT_BIT_HIGH(led, *BiColorLed_ddr);
20 void BiColorLedOff_clears_bit_in_ddr(
void)
23 *BiColorLed_ddr = 0x01;
25 TEST_ASSERT_BIT_HIGH_MESSAGE(
28 "Cannot run test: must start with ddr led bit set!"
33 TEST_ASSERT_BIT_LOW(led, *BiColorLed_ddr);
35 void BiColorLedGreen_clears_bit_in_port(
void)
38 *BiColorLed_port = 0x01;
40 TEST_ASSERT_BIT_HIGH_MESSAGE(
43 "Cannot run test: must start with port led bit set!"
48 TEST_ASSERT_BIT_LOW(led, *BiColorLed_port);
50 void BiColorLedRed_sets_bit_in_port(
void)
53 *BiColorLed_port = 0x00;
55 TEST_ASSERT_BIT_LOW_MESSAGE(
58 "Cannot run test: must start with port led bit clear!"
63 TEST_ASSERT_BIT_HIGH(led, *BiColorLed_port);
void BiColorLedOff(bicolorled_num led)
void BiColorLedGreen(bicolorled_num led)
void BiColorLedRed(bicolorled_num led)
void BiColorLedOn(bicolorled_num led)
uint8_t const bicolorled_num
Indicator LED numbers in the JSON file are not necessarily the same as the corresponding bit number i...