Uncommented the SetAllHigh test and added the constatnts

This commit is contained in:
jakeg00dwin 2024-07-27 09:52:29 -07:00
parent 2e26507d76
commit 077b265be2
1 changed files with 5 additions and 6 deletions

View File

@ -57,28 +57,27 @@ TEST(test_TriacOut, TriacOut_SetupPins)
TriacOut_SetupPins();
}
/*
TEST(test_TriacOut, TriacOut_SetAllHigh)
{
//Expect that pin PA1 is set to output
mock().expectOneCall("RegEdit_SetBit")
.withPointerParameter("reg", (void *) &PORTA.OUT)
.withUnsignedIntParameter("bit_num", (1<<1));
.withUnsignedIntParameter("bit_num", G1);
//Expect that pin PB3 is set to output
mock().expectOneCall("RegEdit_SetBit")
.withPointerParameter("reg", (void *) &PORTB.OUT)
.withUnsignedIntParameter("bit_num", (1<<3));
.withUnsignedIntParameter("bit_num", G2);
//Expect that pin PB2 is set to output
mock().expectOneCall("RegEdit_SetBit")
.withPointerParameter("reg", (void *) &PORTB.OUT)
.withUnsignedIntParameter("bit_num", (1<<2));
.withUnsignedIntParameter("bit_num", G3);
TriacOut_SetAllHigh();
}
*/
/*
TEST(test_TriacOut, TriacOut_InitTimerA)