Added LEDs_ToggleLEDs() function to several board LED drivers which were missing it (thanks to Andrei Krainev).
Simplify some of the LED driver functions to produce more compact code.
This commit is contained in:
		
							parent
							
								
									7aaf9b2036
								
							
						
					
					
						commit
						66f14d44a3
					
				
					 12 changed files with 25 additions and 12 deletions
				
			
		| 
						 | 
				
			
			@ -120,6 +120,11 @@
 | 
			
		|||
				PORTB = ((PORTB & ~LedMask) | ActiveMask);
 | 
			
		||||
			}
 | 
			
		||||
			
 | 
			
		||||
			static inline void LEDs_ToggleLEDs(const uint8_t LEDMask)
 | 
			
		||||
			{
 | 
			
		||||
				PORTB ^= LEDMask;
 | 
			
		||||
			}
 | 
			
		||||
 | 
			
		||||
			static inline uint8_t LEDs_GetLEDs(void) ATTR_WARN_UNUSED_RESULT;
 | 
			
		||||
			static inline uint8_t LEDs_GetLEDs(void)
 | 
			
		||||
			{
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue