removed unused comments and substituted bit shifts with constants

This commit is contained in:
jakeg00dwin 2024-07-27 09:56:03 -07:00
parent 077b265be2
commit a35b806299
1 changed files with 5 additions and 13 deletions

View File

@ -79,19 +79,13 @@ TEST(test_TriacOut, TriacOut_SetAllHigh)
} }
/*
TEST(test_TriacOut, TriacOut_InitTimerA)
{
}
void FakeDelay(double us) void FakeDelay(double us)
{ {
//do Nothing. //do Nothing.
} }
*/
/*
TEST(test_TriacOut, TriacOut_PulsePins) TEST(test_TriacOut, TriacOut_PulsePins)
{ {
UT_PTR_SET(Delay_MicroSeconds, FakeDelay); UT_PTR_SET(Delay_MicroSeconds, FakeDelay);
@ -100,19 +94,17 @@ TEST(test_TriacOut, TriacOut_PulsePins)
//Expect that pin PA1 is set to output //Expect that pin PA1 is set to output
mock().expectOneCall("RegEdit_ClearBit") mock().expectOneCall("RegEdit_ClearBit")
.withPointerParameter("reg", (void *) &PORTA.OUT) .withPointerParameter("reg", (void *) &PORTA.OUT)
.withUnsignedIntParameter("bit_num", (1<<1)); .withUnsignedIntParameter("bit_num", G1);
//Expect that pin PB3 is set to output //Expect that pin PB3 is set to output
mock().expectOneCall("RegEdit_ClearBit") mock().expectOneCall("RegEdit_ClearBit")
.withPointerParameter("reg", (void *) &PORTB.OUT) .withPointerParameter("reg", (void *) &PORTB.OUT)
.withUnsignedIntParameter("bit_num", (1<<3)); .withUnsignedIntParameter("bit_num", G2);
//Expect that pin PB2 is set to output //Expect that pin PB2 is set to output
mock().expectOneCall("RegEdit_ClearBit") mock().expectOneCall("RegEdit_ClearBit")
.withPointerParameter("reg", (void *) &PORTB.OUT) .withPointerParameter("reg", (void *) &PORTB.OUT)
.withUnsignedIntParameter("bit_num", (1<<2)); .withUnsignedIntParameter("bit_num", G3);
TriacOut_PulsePins(1000); TriacOut_PulsePins(1000);
} }
*/