mirror of
				https://github.com/mfulz/qmk_firmware.git
				synced 2025-10-31 05:12:33 +01:00 
			
		
		
		
	Oops - fix broken SPI driver due to missing bit inversion on a port mask.
This commit is contained in:
		
							parent
							
								
									bd337aced3
								
							
						
					
					
						commit
						5517f96e86
					
				| @ -122,7 +122,7 @@ | |||||||
| 			static inline void SPI_Init(const uint8_t SPIOptions) | 			static inline void SPI_Init(const uint8_t SPIOptions) | ||||||
| 			{ | 			{ | ||||||
| 				DDRB  |=  ((1 << 1) | (1 << 2)); | 				DDRB  |=  ((1 << 1) | (1 << 2)); | ||||||
| 				DDRB  &= ((1 << 0) | (1 << 3)); | 				DDRB  &= ~((1 << 0) | (1 << 3)); | ||||||
| 				PORTB |=  ((1 << 0) | (1 << 3)); | 				PORTB |=  ((1 << 0) | (1 << 3)); | ||||||
| 
 | 
 | ||||||
| 				SPCR   = ((1 << SPE) | SPIOptions); | 				SPCR   = ((1 << SPE) | SPIOptions); | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Dean Camera
						Dean Camera