Added two mock calls for the restore of the port state.
This commit is contained in:
parent
ce68803cef
commit
029b96aade
|
@ -128,6 +128,7 @@ TEST(test_ADC, ADC_EnableSuccessOnPin7)
|
|||
|
||||
TEST(test_ADC, ADC_EnableNothingOnHighPinNumbers)
|
||||
{
|
||||
|
||||
mock().expectNoCall("RegEdit_SetBit");
|
||||
ADC_Enable(8);
|
||||
}
|
||||
|
@ -142,6 +143,13 @@ TEST(test_ADC, ADC_DisablePasses)
|
|||
.withPointerParameter("reg", (void *) &ADC0.CTRLA)
|
||||
.withUnsignedIntParameter("bit_num", 0);
|
||||
|
||||
mock().expectOneCall("RegEdit_SetNum")
|
||||
.withPointerParameter("reg", (void*) &PORTA.OUT)
|
||||
.ignoreOtherParameters();
|
||||
|
||||
mock().expectOneCall("RegEdit_SetNum")
|
||||
.withPointerParameter("reg", (void*) &PORTA.DIR)
|
||||
.ignoreOtherParameters();
|
||||
|
||||
ADC_Disable();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue