Added board hardware driver support for the Arduino Uno development board.
Fixed incorrect LEDs_ChangeLEDs() function in the Benito board LED driver.
This commit is contained in:
		
							parent
							
								
									b2a30cd48a
								
							
						
					
					
						commit
						25d896a507
					
				
					 8 changed files with 143 additions and 6 deletions
				
			
		| 
						 | 
				
			
			@ -54,7 +54,7 @@
 | 
			
		|||
	/* Includes: */
 | 
			
		||||
		#include <avr/io.h>
 | 
			
		||||
 | 
			
		||||
/* Enable C linkage for C++ Compilers: */
 | 
			
		||||
	/* Enable C linkage for C++ Compilers: */
 | 
			
		||||
		#if defined(__cplusplus)
 | 
			
		||||
			extern "C" {
 | 
			
		||||
		#endif
 | 
			
		||||
| 
						 | 
				
			
			@ -104,7 +104,7 @@
 | 
			
		|||
			static inline void LEDs_ChangeLEDs(const uint8_t LEDMask,
 | 
			
		||||
			                                   const uint8_t ActiveMask)
 | 
			
		||||
			{
 | 
			
		||||
				PORTC = ((PORTC | ActiveMask) & ~LEDMask);
 | 
			
		||||
				PORTC = ((PORTC | LEDMask) & ~ActiveMask);
 | 
			
		||||
			}
 | 
			
		||||
 | 
			
		||||
			static inline void LEDs_ToggleLEDs(const uint8_t LEDMask)
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue