I2C driver cleanup (#21273)
* remove i2c_start and i2c_stop from i2c drivers * remove static i2c_address variable from chibios i2c driver
This commit is contained in:
		
							parent
							
								
									2b0965944d
								
							
						
					
					
						commit
						e9bd7d7ad3
					
				
					 49 changed files with 280 additions and 603 deletions
				
			
		| 
						 | 
				
			
			@ -41,8 +41,6 @@ void pca9505_init(uint8_t slave_addr) {
 | 
			
		|||
    }
 | 
			
		||||
 | 
			
		||||
    // TODO: could check device connected
 | 
			
		||||
    // i2c_start(SLAVE_TO_ADDR(slave) | I2C_WRITE);
 | 
			
		||||
    // i2c_stop();
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
bool pca9505_set_config(uint8_t slave_addr, pca9505_port_t port, uint8_t conf) {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -29,8 +29,6 @@ void pca9555_init(uint8_t slave_addr) {
 | 
			
		|||
    }
 | 
			
		||||
 | 
			
		||||
    // TODO: could check device connected
 | 
			
		||||
    // i2c_start(SLAVE_TO_ADDR(slave) | I2C_WRITE);
 | 
			
		||||
    // i2c_stop();
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
bool pca9555_set_config(uint8_t slave_addr, pca9555_port_t port, uint8_t conf) {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue