generated from TDD-Templates/cmake_cpputest_template_avr
Updated date
This commit is contained in:
parent
d455f80759
commit
28a5c50b23
|
@ -1,6 +1,6 @@
|
||||||
/*
|
/*
|
||||||
* Author: Jake G
|
* Author: Jake G
|
||||||
* Date: 2024
|
* Date: 2025
|
||||||
* filename: test_ADC.c
|
* filename: test_ADC.c
|
||||||
* description: module_purpose
|
* description: module_purpose
|
||||||
*/
|
*/
|
||||||
|
@ -73,8 +73,16 @@ TEST(test_ADC, ADC_SetupSetsRegisters)
|
||||||
ADC_Setup();
|
ADC_Setup();
|
||||||
}
|
}
|
||||||
|
|
||||||
TEST(test_ADC, ADC_InitPortBADC3UsesCorrectRegisters)
|
TEST(test_ADC, ADC_InitPortbADC3UsesCorrectRegisters)
|
||||||
{
|
{
|
||||||
|
//PB3/ADC3
|
||||||
|
|
||||||
|
//Check it disables the pin's digital circuitry
|
||||||
|
|
||||||
|
//Check that the ADC pin is selected in ADMUX
|
||||||
|
|
||||||
|
|
||||||
|
//
|
||||||
|
|
||||||
/*
|
/*
|
||||||
//Check for setting the direction to input.
|
//Check for setting the direction to input.
|
||||||
|
@ -94,7 +102,7 @@ TEST(test_ADC, ADC_InitPortBADC3UsesCorrectRegisters)
|
||||||
.withUnsignedIntParameter("bit_num", PORT_ISC_INPUT_DISABLE_gc);
|
.withUnsignedIntParameter("bit_num", PORT_ISC_INPUT_DISABLE_gc);
|
||||||
|
|
||||||
*/
|
*/
|
||||||
//ADC_Init(7);
|
ADC_Init(7);
|
||||||
}
|
}
|
||||||
|
|
||||||
TEST(test_ADC, ADC_InitPortAPin0UsesCorrectRegisters)
|
TEST(test_ADC, ADC_InitPortAPin0UsesCorrectRegisters)
|
||||||
|
|
Loading…
Reference in New Issue