Updated date
This commit is contained in:
		
							parent
							
								
									d455f80759
								
							
						
					
					
						commit
						28a5c50b23
					
				
					 1 changed files with 11 additions and 3 deletions
				
			
		| 
						 | 
				
			
			@ -1,6 +1,6 @@
 | 
			
		|||
/*
 | 
			
		||||
 * Author: Jake G 
 | 
			
		||||
 * Date: 2024 
 | 
			
		||||
 * Date: 2025
 | 
			
		||||
 * filename: test_ADC.c
 | 
			
		||||
 * description: module_purpose
 | 
			
		||||
 */
 | 
			
		||||
| 
						 | 
				
			
			@ -73,8 +73,16 @@ TEST(test_ADC, ADC_SetupSetsRegisters)
 | 
			
		|||
    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.
 | 
			
		||||
| 
						 | 
				
			
			@ -94,7 +102,7 @@ TEST(test_ADC, ADC_InitPortBADC3UsesCorrectRegisters)
 | 
			
		|||
        .withUnsignedIntParameter("bit_num", PORT_ISC_INPUT_DISABLE_gc);
 | 
			
		||||
 | 
			
		||||
    */
 | 
			
		||||
    //ADC_Init(7);
 | 
			
		||||
    ADC_Init(7);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
TEST(test_ADC, ADC_InitPortAPin0UsesCorrectRegisters)
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		
		Reference in a new issue