Removed prescaler define from avr i2c, as it was impossible to use (#6617)
This commit is contained in:
		
							parent
							
								
									b7ddf64b54
								
							
						
					
					
						commit
						edc8283572
					
				
					 2 changed files with 2 additions and 3 deletions
				
			
		| 
						 | 
				
			
			@ -27,8 +27,8 @@
 | 
			
		|||
#ifndef F_SCL
 | 
			
		||||
#    define F_SCL 400000UL  // SCL frequency
 | 
			
		||||
#endif
 | 
			
		||||
#define Prescaler 1
 | 
			
		||||
#define TWBR_val ((((F_CPU / F_SCL) / Prescaler) - 16) / 2)
 | 
			
		||||
 | 
			
		||||
#define TWBR_val (((F_CPU / F_SCL) - 16) / 2)
 | 
			
		||||
 | 
			
		||||
void i2c_init(void) {
 | 
			
		||||
    TWSR = 0; /* no prescaler */
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue