Added new LEDs_Disable(), Buttons_Disable() and Joystick_Disable() functions to the board hardware drivers.
This commit is contained in:
		
							parent
							
								
									a147cee95f
								
							
						
					
					
						commit
						5563da6a62
					
				
					 65 changed files with 422 additions and 16 deletions
				
			
		| 
						 | 
				
			
			@ -91,11 +91,20 @@
 | 
			
		|||
		#if !defined(__DOXYGEN__)
 | 
			
		||||
			static inline void Joystick_Init(void)
 | 
			
		||||
			{
 | 
			
		||||
				DDRF  &= ~(JOY_FMASK);
 | 
			
		||||
				DDRC  &= ~(JOY_CMASK);
 | 
			
		||||
				DDRF  &= ~JOY_FMASK;
 | 
			
		||||
				DDRC  &= ~JOY_CMASK;
 | 
			
		||||
 | 
			
		||||
				PORTF |= JOY_FMASK;
 | 
			
		||||
				PORTC |= JOY_CMASK;
 | 
			
		||||
				PORTF |=  JOY_FMASK;
 | 
			
		||||
				PORTC |=  JOY_CMASK;
 | 
			
		||||
			}
 | 
			
		||||
 | 
			
		||||
			static inline void Joystick_Disable(void)
 | 
			
		||||
			{
 | 
			
		||||
				DDRF  &= ~JOY_FMASK;
 | 
			
		||||
				DDRC  &= ~JOY_CMASK;
 | 
			
		||||
 | 
			
		||||
				PORTF &= ~JOY_FMASK;
 | 
			
		||||
				PORTC &= ~JOY_CMASK;
 | 
			
		||||
			}
 | 
			
		||||
 | 
			
		||||
			static inline uint8_t Joystick_GetStatus(void) ATTR_WARN_UNUSED_RESULT;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue