Clean up excessive whitespace at the end of each line using the wspurify tool made by Laszlo Monda
This commit is contained in:
		
							parent
							
								
									a8871c7fba
								
							
						
					
					
						commit
						5a4def7478
					
				
					 760 changed files with 12883 additions and 12164 deletions
				
			
		| 
						 | 
				
			
			@ -1,7 +1,7 @@
 | 
			
		|||
/*
 | 
			
		||||
             LUFA Library
 | 
			
		||||
     Copyright (C) Dean Camera, 2010.
 | 
			
		||||
              
 | 
			
		||||
 | 
			
		||||
  dean [at] fourwalledcubicle [dot] com
 | 
			
		||||
      www.fourwalledcubicle.com
 | 
			
		||||
*/
 | 
			
		||||
| 
						 | 
				
			
			@ -9,13 +9,13 @@
 | 
			
		|||
/*
 | 
			
		||||
  Copyright 2010  Dean Camera (dean [at] fourwalledcubicle [dot] com)
 | 
			
		||||
 | 
			
		||||
  Permission to use, copy, modify, distribute, and sell this 
 | 
			
		||||
  Permission to use, copy, modify, distribute, and sell this
 | 
			
		||||
  software and its documentation for any purpose is hereby granted
 | 
			
		||||
  without fee, provided that the above copyright notice appear in 
 | 
			
		||||
  without fee, provided that the above copyright notice appear in
 | 
			
		||||
  all copies and that both that the copyright notice and this
 | 
			
		||||
  permission notice and warranty disclaimer appear in supporting 
 | 
			
		||||
  documentation, and that the name of the author not be used in 
 | 
			
		||||
  advertising or publicity pertaining to distribution of the 
 | 
			
		||||
  permission notice and warranty disclaimer appear in supporting
 | 
			
		||||
  documentation, and that the name of the author not be used in
 | 
			
		||||
  advertising or publicity pertaining to distribution of the
 | 
			
		||||
  software without specific, written prior permission.
 | 
			
		||||
 | 
			
		||||
  The author disclaim all warranties with regard to this
 | 
			
		||||
| 
						 | 
				
			
			@ -36,7 +36,7 @@
 | 
			
		|||
 *  \note This file should not be included directly. It is automatically included as needed by the Buttons driver
 | 
			
		||||
 *        dispatch header located in LUFA/Drivers/Board/Buttons.h.
 | 
			
		||||
 */
 | 
			
		||||
 
 | 
			
		||||
 | 
			
		||||
/** \ingroup Group_Buttons
 | 
			
		||||
 *  @defgroup Group_Buttons_ATAVRUSBRF01 ATAVRUSBRF01
 | 
			
		||||
 *
 | 
			
		||||
| 
						 | 
				
			
			@ -66,12 +66,12 @@
 | 
			
		|||
		#if !defined(__INCLUDE_FROM_BUTTONS_H)
 | 
			
		||||
			#error Do not include this file directly. Include LUFA/Drivers/Board/Buttons.h instead.
 | 
			
		||||
		#endif
 | 
			
		||||
		
 | 
			
		||||
 | 
			
		||||
	/* Public Interface - May be used in end-application: */
 | 
			
		||||
		/* Macros: */
 | 
			
		||||
			/** Button mask for the first button on the board. */
 | 
			
		||||
			#define BUTTONS_BUTTON1      (1 << 7)
 | 
			
		||||
	
 | 
			
		||||
 | 
			
		||||
		/* Inline Functions: */
 | 
			
		||||
		#if !defined(__DOXYGEN__)
 | 
			
		||||
			static inline void Buttons_Init(void)
 | 
			
		||||
| 
						 | 
				
			
			@ -91,7 +91,8 @@
 | 
			
		|||
		#if defined(__cplusplus)
 | 
			
		||||
			}
 | 
			
		||||
		#endif
 | 
			
		||||
			
 | 
			
		||||
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
/** @} */
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,7 +1,7 @@
 | 
			
		|||
/*
 | 
			
		||||
             LUFA Library
 | 
			
		||||
     Copyright (C) Dean Camera, 2010.
 | 
			
		||||
              
 | 
			
		||||
 | 
			
		||||
  dean [at] fourwalledcubicle [dot] com
 | 
			
		||||
      www.fourwalledcubicle.com
 | 
			
		||||
*/
 | 
			
		||||
| 
						 | 
				
			
			@ -9,13 +9,13 @@
 | 
			
		|||
/*
 | 
			
		||||
  Copyright 2010  Dean Camera (dean [at] fourwalledcubicle [dot] com)
 | 
			
		||||
 | 
			
		||||
  Permission to use, copy, modify, distribute, and sell this 
 | 
			
		||||
  Permission to use, copy, modify, distribute, and sell this
 | 
			
		||||
  software and its documentation for any purpose is hereby granted
 | 
			
		||||
  without fee, provided that the above copyright notice appear in 
 | 
			
		||||
  without fee, provided that the above copyright notice appear in
 | 
			
		||||
  all copies and that both that the copyright notice and this
 | 
			
		||||
  permission notice and warranty disclaimer appear in supporting 
 | 
			
		||||
  documentation, and that the name of the author not be used in 
 | 
			
		||||
  advertising or publicity pertaining to distribution of the 
 | 
			
		||||
  permission notice and warranty disclaimer appear in supporting
 | 
			
		||||
  documentation, and that the name of the author not be used in
 | 
			
		||||
  advertising or publicity pertaining to distribution of the
 | 
			
		||||
  software without specific, written prior permission.
 | 
			
		||||
 | 
			
		||||
  The author disclaim all warranties with regard to this
 | 
			
		||||
| 
						 | 
				
			
			@ -36,7 +36,7 @@
 | 
			
		|||
 *  \note This file should not be included directly. It is automatically included as needed by the LEDs driver
 | 
			
		||||
 *        dispatch header located in LUFA/Drivers/Board/LEDs.h.
 | 
			
		||||
 */
 | 
			
		||||
 
 | 
			
		||||
 | 
			
		||||
/** \ingroup Group_LEDs
 | 
			
		||||
 *  @defgroup Group_LEDs_ATAVRUSBRF01 ATAVRUSBRF01
 | 
			
		||||
 *
 | 
			
		||||
| 
						 | 
				
			
			@ -47,7 +47,7 @@
 | 
			
		|||
 *
 | 
			
		||||
 *  @{
 | 
			
		||||
 */
 | 
			
		||||
 
 | 
			
		||||
 | 
			
		||||
#ifndef __LEDS_ATAVRUSBRF01_H__
 | 
			
		||||
#define __LEDS_ATAVRUSBRF01_H__
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -71,7 +71,7 @@
 | 
			
		|||
		/* Macros: */
 | 
			
		||||
			#define LEDS_PORTD_LEDS       (LEDS_LED1 | LEDS_LED2)
 | 
			
		||||
			#define LEDS_PORTE_LEDS       (LEDS_LED3 | LEDS_LED4)
 | 
			
		||||
			
 | 
			
		||||
 | 
			
		||||
			#define LEDS_PORTE_MASK_SHIFT 4
 | 
			
		||||
	#endif
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -88,7 +88,7 @@
 | 
			
		|||
 | 
			
		||||
			/** LED mask for none of the board LEDs. */
 | 
			
		||||
			#define LEDS_NO_LEDS     0
 | 
			
		||||
			
 | 
			
		||||
 | 
			
		||||
		/* Inline Functions: */
 | 
			
		||||
		#if !defined(__DOXYGEN__)
 | 
			
		||||
			static inline void LEDs_Init(void)
 | 
			
		||||
| 
						 | 
				
			
			@ -111,7 +111,7 @@
 | 
			
		|||
			{
 | 
			
		||||
				PORTD = (PORTD & ~LEDS_ALL_LEDS) | (LEDMask & LEDS_ALL_LEDS);
 | 
			
		||||
			}
 | 
			
		||||
			
 | 
			
		||||
 | 
			
		||||
			static inline void LEDs_ChangeLEDs(const uint8_t LEDMask,
 | 
			
		||||
			                                   const uint8_t ActiveMask)
 | 
			
		||||
			{
 | 
			
		||||
| 
						 | 
				
			
			@ -122,7 +122,7 @@
 | 
			
		|||
			{
 | 
			
		||||
				PORTD ^= LEDMask;
 | 
			
		||||
			}
 | 
			
		||||
			
 | 
			
		||||
 | 
			
		||||
			static inline uint8_t LEDs_GetLEDs(void) ATTR_WARN_UNUSED_RESULT;
 | 
			
		||||
			static inline uint8_t LEDs_GetLEDs(void)
 | 
			
		||||
			{
 | 
			
		||||
| 
						 | 
				
			
			@ -134,7 +134,8 @@
 | 
			
		|||
		#if defined(__cplusplus)
 | 
			
		||||
			}
 | 
			
		||||
		#endif
 | 
			
		||||
	
 | 
			
		||||
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
/** @} */
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,7 +1,7 @@
 | 
			
		|||
/*
 | 
			
		||||
             LUFA Library
 | 
			
		||||
     Copyright (C) Dean Camera, 2010.
 | 
			
		||||
              
 | 
			
		||||
 | 
			
		||||
  dean [at] fourwalledcubicle [dot] com
 | 
			
		||||
      www.fourwalledcubicle.com
 | 
			
		||||
*/
 | 
			
		||||
| 
						 | 
				
			
			@ -9,13 +9,13 @@
 | 
			
		|||
/*
 | 
			
		||||
  Copyright 2010  Dean Camera (dean [at] fourwalledcubicle [dot] com)
 | 
			
		||||
 | 
			
		||||
  Permission to use, copy, modify, distribute, and sell this 
 | 
			
		||||
  Permission to use, copy, modify, distribute, and sell this
 | 
			
		||||
  software and its documentation for any purpose is hereby granted
 | 
			
		||||
  without fee, provided that the above copyright notice appear in 
 | 
			
		||||
  without fee, provided that the above copyright notice appear in
 | 
			
		||||
  all copies and that both that the copyright notice and this
 | 
			
		||||
  permission notice and warranty disclaimer appear in supporting 
 | 
			
		||||
  documentation, and that the name of the author not be used in 
 | 
			
		||||
  advertising or publicity pertaining to distribution of the 
 | 
			
		||||
  permission notice and warranty disclaimer appear in supporting
 | 
			
		||||
  documentation, and that the name of the author not be used in
 | 
			
		||||
  advertising or publicity pertaining to distribution of the
 | 
			
		||||
  software without specific, written prior permission.
 | 
			
		||||
 | 
			
		||||
  The author disclaim all warranties with regard to this
 | 
			
		||||
| 
						 | 
				
			
			@ -36,7 +36,7 @@
 | 
			
		|||
 *  \note This file should not be included directly. It is automatically included as needed by the Buttons driver
 | 
			
		||||
 *        dispatch header located in LUFA/Drivers/Board/Buttons.h.
 | 
			
		||||
 */
 | 
			
		||||
 
 | 
			
		||||
 | 
			
		||||
/** \ingroup Group_Buttons
 | 
			
		||||
 *  @defgroup Group_Buttons_BENITO BENITO
 | 
			
		||||
 *
 | 
			
		||||
| 
						 | 
				
			
			@ -66,12 +66,12 @@
 | 
			
		|||
		#if !defined(__INCLUDE_FROM_BUTTONS_H)
 | 
			
		||||
			#error Do not include this file directly. Include LUFA/Drivers/Board/Buttons.h instead.
 | 
			
		||||
		#endif
 | 
			
		||||
		
 | 
			
		||||
 | 
			
		||||
	/* Public Interface - May be used in end-application: */
 | 
			
		||||
		/* Macros: */
 | 
			
		||||
			/** Button mask for the first button on the board. */
 | 
			
		||||
			#define BUTTONS_BUTTON1      (1 << 7)
 | 
			
		||||
	
 | 
			
		||||
 | 
			
		||||
		/* Inline Functions: */
 | 
			
		||||
		#if !defined(__DOXYGEN__)
 | 
			
		||||
			static inline void Buttons_Init(void)
 | 
			
		||||
| 
						 | 
				
			
			@ -91,7 +91,8 @@
 | 
			
		|||
		#if defined(__cplusplus)
 | 
			
		||||
			}
 | 
			
		||||
		#endif
 | 
			
		||||
			
 | 
			
		||||
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
/** @} */
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,7 +1,7 @@
 | 
			
		|||
/*
 | 
			
		||||
             LUFA Library
 | 
			
		||||
     Copyright (C) Dean Camera, 2010.
 | 
			
		||||
              
 | 
			
		||||
 | 
			
		||||
  dean [at] fourwalledcubicle [dot] com
 | 
			
		||||
      www.fourwalledcubicle.com
 | 
			
		||||
*/
 | 
			
		||||
| 
						 | 
				
			
			@ -9,13 +9,13 @@
 | 
			
		|||
/*
 | 
			
		||||
  Copyright 2010  Dean Camera (dean [at] fourwalledcubicle [dot] com)
 | 
			
		||||
 | 
			
		||||
  Permission to use, copy, modify, distribute, and sell this 
 | 
			
		||||
  Permission to use, copy, modify, distribute, and sell this
 | 
			
		||||
  software and its documentation for any purpose is hereby granted
 | 
			
		||||
  without fee, provided that the above copyright notice appear in 
 | 
			
		||||
  without fee, provided that the above copyright notice appear in
 | 
			
		||||
  all copies and that both that the copyright notice and this
 | 
			
		||||
  permission notice and warranty disclaimer appear in supporting 
 | 
			
		||||
  documentation, and that the name of the author not be used in 
 | 
			
		||||
  advertising or publicity pertaining to distribution of the 
 | 
			
		||||
  permission notice and warranty disclaimer appear in supporting
 | 
			
		||||
  documentation, and that the name of the author not be used in
 | 
			
		||||
  advertising or publicity pertaining to distribution of the
 | 
			
		||||
  software without specific, written prior permission.
 | 
			
		||||
 | 
			
		||||
  The author disclaim all warranties with regard to this
 | 
			
		||||
| 
						 | 
				
			
			@ -85,7 +85,7 @@
 | 
			
		|||
				DDRC  |= LEDS_ALL_LEDS;
 | 
			
		||||
				PORTC |= LEDS_ALL_LEDS;
 | 
			
		||||
			}
 | 
			
		||||
			
 | 
			
		||||
 | 
			
		||||
			static inline void LEDs_TurnOnLEDs(const uint8_t LEDMask)
 | 
			
		||||
			{
 | 
			
		||||
				PORTC &= ~LEDMask;
 | 
			
		||||
| 
						 | 
				
			
			@ -100,7 +100,7 @@
 | 
			
		|||
			{
 | 
			
		||||
				PORTC = ((PORTC | LEDS_ALL_LEDS) & ~LEDMask);
 | 
			
		||||
			}
 | 
			
		||||
			
 | 
			
		||||
 | 
			
		||||
			static inline void LEDs_ChangeLEDs(const uint8_t LEDMask,
 | 
			
		||||
			                                   const uint8_t ActiveMask)
 | 
			
		||||
			{
 | 
			
		||||
| 
						 | 
				
			
			@ -111,7 +111,7 @@
 | 
			
		|||
			{
 | 
			
		||||
				PORTC ^= LEDMask;
 | 
			
		||||
			}
 | 
			
		||||
			
 | 
			
		||||
 | 
			
		||||
			static inline uint8_t LEDs_GetLEDs(void) ATTR_WARN_UNUSED_RESULT;
 | 
			
		||||
			static inline uint8_t LEDs_GetLEDs(void)
 | 
			
		||||
			{
 | 
			
		||||
| 
						 | 
				
			
			@ -123,7 +123,8 @@
 | 
			
		|||
		#if defined(__cplusplus)
 | 
			
		||||
			}
 | 
			
		||||
		#endif
 | 
			
		||||
		
 | 
			
		||||
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
/** @} */
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,7 +1,7 @@
 | 
			
		|||
/*
 | 
			
		||||
             LUFA Library
 | 
			
		||||
     Copyright (C) Dean Camera, 2010.
 | 
			
		||||
              
 | 
			
		||||
 | 
			
		||||
  dean [at] fourwalledcubicle [dot] com
 | 
			
		||||
      www.fourwalledcubicle.com
 | 
			
		||||
*/
 | 
			
		||||
| 
						 | 
				
			
			@ -9,13 +9,13 @@
 | 
			
		|||
/*
 | 
			
		||||
  Copyright 2010  Dean Camera (dean [at] fourwalledcubicle [dot] com)
 | 
			
		||||
 | 
			
		||||
  Permission to use, copy, modify, distribute, and sell this 
 | 
			
		||||
  Permission to use, copy, modify, distribute, and sell this
 | 
			
		||||
  software and its documentation for any purpose is hereby granted
 | 
			
		||||
  without fee, provided that the above copyright notice appear in 
 | 
			
		||||
  without fee, provided that the above copyright notice appear in
 | 
			
		||||
  all copies and that both that the copyright notice and this
 | 
			
		||||
  permission notice and warranty disclaimer appear in supporting 
 | 
			
		||||
  documentation, and that the name of the author not be used in 
 | 
			
		||||
  advertising or publicity pertaining to distribution of the 
 | 
			
		||||
  permission notice and warranty disclaimer appear in supporting
 | 
			
		||||
  documentation, and that the name of the author not be used in
 | 
			
		||||
  advertising or publicity pertaining to distribution of the
 | 
			
		||||
  software without specific, written prior permission.
 | 
			
		||||
 | 
			
		||||
  The author disclaim all warranties with regard to this
 | 
			
		||||
| 
						 | 
				
			
			@ -87,7 +87,7 @@
 | 
			
		|||
			{
 | 
			
		||||
				DDRC |= LEDS_ALL_LEDS;
 | 
			
		||||
			}
 | 
			
		||||
			
 | 
			
		||||
 | 
			
		||||
			static inline void LEDs_TurnOnLEDs(const uint8_t LEDMask)
 | 
			
		||||
			{
 | 
			
		||||
				PORTC |= LEDMask;
 | 
			
		||||
| 
						 | 
				
			
			@ -102,7 +102,7 @@
 | 
			
		|||
			{
 | 
			
		||||
				PORTC = (PORTC & ~LEDS_ALL_LEDS) | LEDMask;
 | 
			
		||||
			}
 | 
			
		||||
			
 | 
			
		||||
 | 
			
		||||
			static inline void LEDs_ChangeLEDs(const uint8_t LEDMask,
 | 
			
		||||
			                                   const uint8_t ActiveMask)
 | 
			
		||||
			{
 | 
			
		||||
| 
						 | 
				
			
			@ -113,7 +113,7 @@
 | 
			
		|||
			{
 | 
			
		||||
				PORTC ^= LEDMask;
 | 
			
		||||
			}
 | 
			
		||||
			
 | 
			
		||||
 | 
			
		||||
			static inline uint8_t LEDs_GetLEDs(void) ATTR_WARN_UNUSED_RESULT;
 | 
			
		||||
			static inline uint8_t LEDs_GetLEDs(void)
 | 
			
		||||
			{
 | 
			
		||||
| 
						 | 
				
			
			@ -125,7 +125,8 @@
 | 
			
		|||
		#if defined(__cplusplus)
 | 
			
		||||
			}
 | 
			
		||||
		#endif
 | 
			
		||||
		
 | 
			
		||||
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
/** @} */
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,7 +1,7 @@
 | 
			
		|||
/*
 | 
			
		||||
             LUFA Library
 | 
			
		||||
     Copyright (C) Dean Camera, 2010.
 | 
			
		||||
              
 | 
			
		||||
 | 
			
		||||
  dean [at] fourwalledcubicle [dot] com
 | 
			
		||||
      www.fourwalledcubicle.com
 | 
			
		||||
*/
 | 
			
		||||
| 
						 | 
				
			
			@ -9,13 +9,13 @@
 | 
			
		|||
/*
 | 
			
		||||
  Copyright 2010  Dean Camera (dean [at] fourwalledcubicle [dot] com)
 | 
			
		||||
 | 
			
		||||
  Permission to use, copy, modify, distribute, and sell this 
 | 
			
		||||
  Permission to use, copy, modify, distribute, and sell this
 | 
			
		||||
  software and its documentation for any purpose is hereby granted
 | 
			
		||||
  without fee, provided that the above copyright notice appear in 
 | 
			
		||||
  without fee, provided that the above copyright notice appear in
 | 
			
		||||
  all copies and that both that the copyright notice and this
 | 
			
		||||
  permission notice and warranty disclaimer appear in supporting 
 | 
			
		||||
  documentation, and that the name of the author not be used in 
 | 
			
		||||
  advertising or publicity pertaining to distribution of the 
 | 
			
		||||
  permission notice and warranty disclaimer appear in supporting
 | 
			
		||||
  documentation, and that the name of the author not be used in
 | 
			
		||||
  advertising or publicity pertaining to distribution of the
 | 
			
		||||
  software without specific, written prior permission.
 | 
			
		||||
 | 
			
		||||
  The author disclaim all warranties with regard to this
 | 
			
		||||
| 
						 | 
				
			
			@ -71,12 +71,12 @@
 | 
			
		|||
		#if !defined(__INCLUDE_FROM_BUTTONS_H)
 | 
			
		||||
			#error Do not include this file directly. Include LUFA/Drivers/Board/Buttons.h instead.
 | 
			
		||||
		#endif
 | 
			
		||||
		
 | 
			
		||||
 | 
			
		||||
	/* Public Interface - May be used in end-application: */
 | 
			
		||||
		/* Macros: */
 | 
			
		||||
			/** Button mask for the first button on the board. */
 | 
			
		||||
			#define BUTTONS_BUTTON1      (1 << 7)
 | 
			
		||||
	
 | 
			
		||||
 | 
			
		||||
		/* Inline Functions: */
 | 
			
		||||
		#if !defined(__DOXYGEN__)
 | 
			
		||||
			static inline void Buttons_Init(void)
 | 
			
		||||
| 
						 | 
				
			
			@ -96,7 +96,8 @@
 | 
			
		|||
		#if defined(__cplusplus)
 | 
			
		||||
			}
 | 
			
		||||
		#endif
 | 
			
		||||
			
 | 
			
		||||
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
/** @} */
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,7 +1,7 @@
 | 
			
		|||
/*
 | 
			
		||||
             LUFA Library
 | 
			
		||||
     Copyright (C) Dean Camera, 2010.
 | 
			
		||||
              
 | 
			
		||||
 | 
			
		||||
  dean [at] fourwalledcubicle [dot] com
 | 
			
		||||
      www.fourwalledcubicle.com
 | 
			
		||||
*/
 | 
			
		||||
| 
						 | 
				
			
			@ -9,13 +9,13 @@
 | 
			
		|||
/*
 | 
			
		||||
  Copyright 2010  Dean Camera (dean [at] fourwalledcubicle [dot] com)
 | 
			
		||||
 | 
			
		||||
  Permission to use, copy, modify, distribute, and sell this 
 | 
			
		||||
  Permission to use, copy, modify, distribute, and sell this
 | 
			
		||||
  software and its documentation for any purpose is hereby granted
 | 
			
		||||
  without fee, provided that the above copyright notice appear in 
 | 
			
		||||
  without fee, provided that the above copyright notice appear in
 | 
			
		||||
  all copies and that both that the copyright notice and this
 | 
			
		||||
  permission notice and warranty disclaimer appear in supporting 
 | 
			
		||||
  documentation, and that the name of the author not be used in 
 | 
			
		||||
  advertising or publicity pertaining to distribution of the 
 | 
			
		||||
  permission notice and warranty disclaimer appear in supporting
 | 
			
		||||
  documentation, and that the name of the author not be used in
 | 
			
		||||
  advertising or publicity pertaining to distribution of the
 | 
			
		||||
  software without specific, written prior permission.
 | 
			
		||||
 | 
			
		||||
  The author disclaim all warranties with regard to this
 | 
			
		||||
| 
						 | 
				
			
			@ -93,7 +93,7 @@
 | 
			
		|||
 | 
			
		||||
			/** Mask for the joystick being pushed inward. */
 | 
			
		||||
			#define JOY_PRESS                 (1 << 4)
 | 
			
		||||
			
 | 
			
		||||
 | 
			
		||||
		/* Inline Functions: */
 | 
			
		||||
		#if !defined(__DOXYGEN__)
 | 
			
		||||
			static inline void Joystick_Init(void)
 | 
			
		||||
| 
						 | 
				
			
			@ -101,7 +101,7 @@
 | 
			
		|||
				DDRD  &= ~JOY_MASK;
 | 
			
		||||
				PORTD |= JOY_MASK;
 | 
			
		||||
			}
 | 
			
		||||
			
 | 
			
		||||
 | 
			
		||||
			static inline uint8_t Joystick_GetStatus(void) ATTR_WARN_UNUSED_RESULT;
 | 
			
		||||
			static inline uint8_t Joystick_GetStatus(void)
 | 
			
		||||
			{
 | 
			
		||||
| 
						 | 
				
			
			@ -117,3 +117,4 @@
 | 
			
		|||
#endif
 | 
			
		||||
 | 
			
		||||
/** @} */
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,7 +1,7 @@
 | 
			
		|||
/*
 | 
			
		||||
             LUFA Library
 | 
			
		||||
     Copyright (C) Dean Camera, 2010.
 | 
			
		||||
              
 | 
			
		||||
 | 
			
		||||
  dean [at] fourwalledcubicle [dot] com
 | 
			
		||||
      www.fourwalledcubicle.com
 | 
			
		||||
*/
 | 
			
		||||
| 
						 | 
				
			
			@ -9,13 +9,13 @@
 | 
			
		|||
/*
 | 
			
		||||
  Copyright 2010  Dean Camera (dean [at] fourwalledcubicle [dot] com)
 | 
			
		||||
 | 
			
		||||
  Permission to use, copy, modify, distribute, and sell this 
 | 
			
		||||
  Permission to use, copy, modify, distribute, and sell this
 | 
			
		||||
  software and its documentation for any purpose is hereby granted
 | 
			
		||||
  without fee, provided that the above copyright notice appear in 
 | 
			
		||||
  without fee, provided that the above copyright notice appear in
 | 
			
		||||
  all copies and that both that the copyright notice and this
 | 
			
		||||
  permission notice and warranty disclaimer appear in supporting 
 | 
			
		||||
  documentation, and that the name of the author not be used in 
 | 
			
		||||
  advertising or publicity pertaining to distribution of the 
 | 
			
		||||
  permission notice and warranty disclaimer appear in supporting
 | 
			
		||||
  documentation, and that the name of the author not be used in
 | 
			
		||||
  advertising or publicity pertaining to distribution of the
 | 
			
		||||
  software without specific, written prior permission.
 | 
			
		||||
 | 
			
		||||
  The author disclaim all warranties with regard to this
 | 
			
		||||
| 
						 | 
				
			
			@ -98,7 +98,7 @@
 | 
			
		|||
				DDRB  |=  LEDS_ALL_LEDS;
 | 
			
		||||
				PORTB &= ~LEDS_ALL_LEDS;
 | 
			
		||||
			}
 | 
			
		||||
			
 | 
			
		||||
 | 
			
		||||
			static inline void LEDs_TurnOnLEDs(const uint8_t LedMask)
 | 
			
		||||
			{
 | 
			
		||||
				PORTB |= LedMask;
 | 
			
		||||
| 
						 | 
				
			
			@ -113,13 +113,13 @@
 | 
			
		|||
			{
 | 
			
		||||
				PORTB = ((PORTB & ~LEDS_ALL_LEDS) | LedMask);
 | 
			
		||||
			}
 | 
			
		||||
		
 | 
			
		||||
 | 
			
		||||
			static inline void LEDs_ChangeLEDs(const uint8_t LedMask,
 | 
			
		||||
			                                   const uint8_t ActiveMask)
 | 
			
		||||
			{
 | 
			
		||||
				PORTB = ((PORTB & ~LedMask) | ActiveMask);
 | 
			
		||||
			}
 | 
			
		||||
			
 | 
			
		||||
 | 
			
		||||
			static inline void LEDs_ToggleLEDs(const uint8_t LEDMask)
 | 
			
		||||
			{
 | 
			
		||||
				PORTB ^= LEDMask;
 | 
			
		||||
| 
						 | 
				
			
			@ -136,7 +136,8 @@
 | 
			
		|||
		#if defined(__cplusplus)
 | 
			
		||||
			}
 | 
			
		||||
		#endif
 | 
			
		||||
		
 | 
			
		||||
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
/** @} */
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,7 +1,7 @@
 | 
			
		|||
/*
 | 
			
		||||
             LUFA Library
 | 
			
		||||
     Copyright (C) Dean Camera, 2010.
 | 
			
		||||
              
 | 
			
		||||
 | 
			
		||||
  dean [at] fourwalledcubicle [dot] com
 | 
			
		||||
      www.fourwalledcubicle.com
 | 
			
		||||
*/
 | 
			
		||||
| 
						 | 
				
			
			@ -9,13 +9,13 @@
 | 
			
		|||
/*
 | 
			
		||||
  Copyright 2010  Dean Camera (dean [at] fourwalledcubicle [dot] com)
 | 
			
		||||
 | 
			
		||||
  Permission to use, copy, modify, distribute, and sell this 
 | 
			
		||||
  Permission to use, copy, modify, distribute, and sell this
 | 
			
		||||
  software and its documentation for any purpose is hereby granted
 | 
			
		||||
  without fee, provided that the above copyright notice appear in 
 | 
			
		||||
  without fee, provided that the above copyright notice appear in
 | 
			
		||||
  all copies and that both that the copyright notice and this
 | 
			
		||||
  permission notice and warranty disclaimer appear in supporting 
 | 
			
		||||
  documentation, and that the name of the author not be used in 
 | 
			
		||||
  advertising or publicity pertaining to distribution of the 
 | 
			
		||||
  permission notice and warranty disclaimer appear in supporting
 | 
			
		||||
  documentation, and that the name of the author not be used in
 | 
			
		||||
  advertising or publicity pertaining to distribution of the
 | 
			
		||||
  software without specific, written prior permission.
 | 
			
		||||
 | 
			
		||||
  The author disclaim all warranties with regard to this
 | 
			
		||||
| 
						 | 
				
			
			@ -74,7 +74,7 @@
 | 
			
		|||
 | 
			
		||||
	/* Includes: */
 | 
			
		||||
	#include "../../Common/Common.h"
 | 
			
		||||
	
 | 
			
		||||
 | 
			
		||||
	#if (BOARD == BOARD_NONE)
 | 
			
		||||
		#error The Board Buttons driver cannot be used if the makefile BOARD option is not set.
 | 
			
		||||
	#elif (BOARD == BOARD_USBKEY)
 | 
			
		||||
| 
						 | 
				
			
			@ -90,7 +90,7 @@
 | 
			
		|||
	#elif (BOARD == BOARD_EVK527)
 | 
			
		||||
		#include "EVK527/Buttons.h"
 | 
			
		||||
	#elif (BOARD == BOARD_USBTINYMKII)
 | 
			
		||||
		#include "USBTINYMKII/Buttons.h"		
 | 
			
		||||
		#include "USBTINYMKII/Buttons.h"
 | 
			
		||||
	#elif (BOARD == BOARD_BENITO)
 | 
			
		||||
		#include "BENITO/Buttons.h"
 | 
			
		||||
	#elif (BOARD == BOARD_JMDBU2)
 | 
			
		||||
| 
						 | 
				
			
			@ -108,7 +108,7 @@
 | 
			
		|||
	#else
 | 
			
		||||
		#error The selected board does not contain any GPIO buttons.
 | 
			
		||||
	#endif
 | 
			
		||||
	
 | 
			
		||||
 | 
			
		||||
	/* Pseudo-Functions for Doxygen: */
 | 
			
		||||
	#if defined(__DOXYGEN__)
 | 
			
		||||
		/** Initialises the BUTTONS driver, so that the current button position can be read. This sets the appropriate
 | 
			
		||||
| 
						 | 
				
			
			@ -117,7 +117,7 @@
 | 
			
		|||
		 *  This must be called before any Button driver functions are used.
 | 
			
		||||
		 */
 | 
			
		||||
		static inline void Buttons_Init(void);
 | 
			
		||||
		
 | 
			
		||||
 | 
			
		||||
		/** Returns a mask indicating which board buttons are currently pressed.
 | 
			
		||||
		 *
 | 
			
		||||
		 *  \return Mask indicating which board buttons are currently pressed.
 | 
			
		||||
| 
						 | 
				
			
			@ -128,3 +128,4 @@
 | 
			
		|||
#endif
 | 
			
		||||
 | 
			
		||||
/** @} */
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,7 +1,7 @@
 | 
			
		|||
/*
 | 
			
		||||
             LUFA Library
 | 
			
		||||
     Copyright (C) Dean Camera, 2010.
 | 
			
		||||
              
 | 
			
		||||
 | 
			
		||||
  dean [at] fourwalledcubicle [dot] com
 | 
			
		||||
      www.fourwalledcubicle.com
 | 
			
		||||
*/
 | 
			
		||||
| 
						 | 
				
			
			@ -9,13 +9,13 @@
 | 
			
		|||
/*
 | 
			
		||||
  Copyright 2010  Dean Camera (dean [at] fourwalledcubicle [dot] com)
 | 
			
		||||
 | 
			
		||||
  Permission to use, copy, modify, distribute, and sell this 
 | 
			
		||||
  Permission to use, copy, modify, distribute, and sell this
 | 
			
		||||
  software and its documentation for any purpose is hereby granted
 | 
			
		||||
  without fee, provided that the above copyright notice appear in 
 | 
			
		||||
  without fee, provided that the above copyright notice appear in
 | 
			
		||||
  all copies and that both that the copyright notice and this
 | 
			
		||||
  permission notice and warranty disclaimer appear in supporting 
 | 
			
		||||
  documentation, and that the name of the author not be used in 
 | 
			
		||||
  advertising or publicity pertaining to distribution of the 
 | 
			
		||||
  permission notice and warranty disclaimer appear in supporting
 | 
			
		||||
  documentation, and that the name of the author not be used in
 | 
			
		||||
  advertising or publicity pertaining to distribution of the
 | 
			
		||||
  software without specific, written prior permission.
 | 
			
		||||
 | 
			
		||||
  The author disclaim all warranties with regard to this
 | 
			
		||||
| 
						 | 
				
			
			@ -66,12 +66,12 @@
 | 
			
		|||
		#if !defined(__INCLUDE_FROM_BUTTONS_H)
 | 
			
		||||
			#error Do not include this file directly. Include LUFA/Drivers/Board/Buttons.h instead.
 | 
			
		||||
		#endif
 | 
			
		||||
		
 | 
			
		||||
 | 
			
		||||
	/* Public Interface - May be used in end-application: */
 | 
			
		||||
		/* Macros: */
 | 
			
		||||
			/** Button mask for the first button on the board. */
 | 
			
		||||
			#define BUTTONS_BUTTON1      (1 << 2)
 | 
			
		||||
	
 | 
			
		||||
 | 
			
		||||
		/* Inline Functions: */
 | 
			
		||||
		#if !defined(__DOXYGEN__)
 | 
			
		||||
			static inline void Buttons_Init(void)
 | 
			
		||||
| 
						 | 
				
			
			@ -91,7 +91,8 @@
 | 
			
		|||
		#if defined(__cplusplus)
 | 
			
		||||
			}
 | 
			
		||||
		#endif
 | 
			
		||||
			
 | 
			
		||||
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
/** @} */
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,7 +1,7 @@
 | 
			
		|||
/*
 | 
			
		||||
             LUFA Library
 | 
			
		||||
     Copyright (C) Dean Camera, 2010.
 | 
			
		||||
              
 | 
			
		||||
 | 
			
		||||
  dean [at] fourwalledcubicle [dot] com
 | 
			
		||||
      www.fourwalledcubicle.com
 | 
			
		||||
*/
 | 
			
		||||
| 
						 | 
				
			
			@ -9,13 +9,13 @@
 | 
			
		|||
/*
 | 
			
		||||
  Copyright 2010  Dean Camera (dean [at] fourwalledcubicle [dot] com)
 | 
			
		||||
 | 
			
		||||
  Permission to use, copy, modify, distribute, and sell this 
 | 
			
		||||
  Permission to use, copy, modify, distribute, and sell this
 | 
			
		||||
  software and its documentation for any purpose is hereby granted
 | 
			
		||||
  without fee, provided that the above copyright notice appear in 
 | 
			
		||||
  without fee, provided that the above copyright notice appear in
 | 
			
		||||
  all copies and that both that the copyright notice and this
 | 
			
		||||
  permission notice and warranty disclaimer appear in supporting 
 | 
			
		||||
  documentation, and that the name of the author not be used in 
 | 
			
		||||
  advertising or publicity pertaining to distribution of the 
 | 
			
		||||
  permission notice and warranty disclaimer appear in supporting
 | 
			
		||||
  documentation, and that the name of the author not be used in
 | 
			
		||||
  advertising or publicity pertaining to distribution of the
 | 
			
		||||
  software without specific, written prior permission.
 | 
			
		||||
 | 
			
		||||
  The author disclaim all warranties with regard to this
 | 
			
		||||
| 
						 | 
				
			
			@ -84,7 +84,7 @@
 | 
			
		|||
				DDRE  |=  LEDS_ALL_LEDS;
 | 
			
		||||
				PORTE &= ~LEDS_ALL_LEDS;
 | 
			
		||||
         	}
 | 
			
		||||
			
 | 
			
		||||
 | 
			
		||||
			static inline void LEDs_TurnOnLEDs(const uint8_t LEDMask)
 | 
			
		||||
			{
 | 
			
		||||
				PORTE |= LEDMask;
 | 
			
		||||
| 
						 | 
				
			
			@ -99,18 +99,18 @@
 | 
			
		|||
			{
 | 
			
		||||
				PORTE = ((PORTE & ~LEDS_ALL_LEDS) | LEDMask);
 | 
			
		||||
			}
 | 
			
		||||
			
 | 
			
		||||
 | 
			
		||||
			static inline void LEDs_ChangeLEDs(const uint8_t LEDMask,
 | 
			
		||||
			                                   const uint8_t ActiveMask)
 | 
			
		||||
			{
 | 
			
		||||
				PORTE = ((PORTE & ~LEDMask) | ActiveMask);
 | 
			
		||||
			}
 | 
			
		||||
			
 | 
			
		||||
 | 
			
		||||
			static inline void LEDs_ToggleLEDs(const uint8_t LEDMask)
 | 
			
		||||
			{
 | 
			
		||||
				PORTE = (PORTE ^ (LEDMask & LEDS_ALL_LEDS));
 | 
			
		||||
			}
 | 
			
		||||
			
 | 
			
		||||
 | 
			
		||||
			static inline uint8_t LEDs_GetLEDs(void) ATTR_WARN_UNUSED_RESULT;
 | 
			
		||||
			static inline uint8_t LEDs_GetLEDs(void)
 | 
			
		||||
			{
 | 
			
		||||
| 
						 | 
				
			
			@ -122,7 +122,8 @@
 | 
			
		|||
		#if defined(__cplusplus)
 | 
			
		||||
			}
 | 
			
		||||
		#endif
 | 
			
		||||
		
 | 
			
		||||
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
/** @} */
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,7 +1,7 @@
 | 
			
		|||
/*
 | 
			
		||||
             LUFA Library
 | 
			
		||||
     Copyright (C) Dean Camera, 2010.
 | 
			
		||||
              
 | 
			
		||||
 | 
			
		||||
  dean [at] fourwalledcubicle [dot] com
 | 
			
		||||
      www.fourwalledcubicle.com
 | 
			
		||||
*/
 | 
			
		||||
| 
						 | 
				
			
			@ -9,13 +9,13 @@
 | 
			
		|||
/*
 | 
			
		||||
  Copyright 2010  Dean Camera (dean [at] fourwalledcubicle [dot] com)
 | 
			
		||||
 | 
			
		||||
  Permission to use, copy, modify, distribute, and sell this 
 | 
			
		||||
  Permission to use, copy, modify, distribute, and sell this
 | 
			
		||||
  software and its documentation for any purpose is hereby granted
 | 
			
		||||
  without fee, provided that the above copyright notice appear in 
 | 
			
		||||
  without fee, provided that the above copyright notice appear in
 | 
			
		||||
  all copies and that both that the copyright notice and this
 | 
			
		||||
  permission notice and warranty disclaimer appear in supporting 
 | 
			
		||||
  documentation, and that the name of the author not be used in 
 | 
			
		||||
  advertising or publicity pertaining to distribution of the 
 | 
			
		||||
  permission notice and warranty disclaimer appear in supporting
 | 
			
		||||
  documentation, and that the name of the author not be used in
 | 
			
		||||
  advertising or publicity pertaining to distribution of the
 | 
			
		||||
  software without specific, written prior permission.
 | 
			
		||||
 | 
			
		||||
  The author disclaim all warranties with regard to this
 | 
			
		||||
| 
						 | 
				
			
			@ -42,7 +42,7 @@
 | 
			
		|||
 *
 | 
			
		||||
 *  For possible BOARD makefile values, see \ref Group_BoardTypes.
 | 
			
		||||
 */
 | 
			
		||||
 
 | 
			
		||||
 | 
			
		||||
/** \ingroup Group_BoardDrivers
 | 
			
		||||
 *  @defgroup Group_Dataflash Dataflash Driver - LUFA/Drivers/Board/Dataflash.h
 | 
			
		||||
 *
 | 
			
		||||
| 
						 | 
				
			
			@ -61,7 +61,7 @@
 | 
			
		|||
 *
 | 
			
		||||
 *  @{
 | 
			
		||||
 */
 | 
			
		||||
 
 | 
			
		||||
 | 
			
		||||
#ifndef __DATAFLASH_H__
 | 
			
		||||
#define __DATAFLASH_H__
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -86,7 +86,7 @@
 | 
			
		|||
				#define __GET_DATAFLASH_MASK2(x, y) x ## y
 | 
			
		||||
				#define __GET_DATAFLASH_MASK(x)     __GET_DATAFLASH_MASK2(DATAFLASH_CHIP,x)
 | 
			
		||||
			#endif
 | 
			
		||||
	
 | 
			
		||||
 | 
			
		||||
			/** Retrieves the Dataflash chip select mask for the given Dataflash chip index.
 | 
			
		||||
			 *
 | 
			
		||||
			 *  \param[in] index  Index of the dataflash chip mask to retrieve
 | 
			
		||||
| 
						 | 
				
			
			@ -94,7 +94,7 @@
 | 
			
		|||
			 *  \return Mask for the given Dataflash chip's /CS pin
 | 
			
		||||
			 */
 | 
			
		||||
			#define DATAFLASH_CHIP_MASK(index)      __GET_DATAFLASH_MASK(index)
 | 
			
		||||
			
 | 
			
		||||
 | 
			
		||||
		/* Inline Functions: */
 | 
			
		||||
			/** Initialises the dataflash driver so that commands and data may be sent to an attached dataflash IC.
 | 
			
		||||
			 *  The AVR's SPI driver MUST be initialized before any of the dataflash commands are used.
 | 
			
		||||
| 
						 | 
				
			
			@ -128,7 +128,7 @@
 | 
			
		|||
			 *                          ((DATAFLASH_PAGES * DATAFLASH_TOTALCHIPS) - 1).
 | 
			
		||||
			 */
 | 
			
		||||
			static inline void Dataflash_SelectChipFromPage(const uint16_t PageAddress);
 | 
			
		||||
			
 | 
			
		||||
 | 
			
		||||
			/** Toggles the select line of the currently selected dataflash IC, so that it is ready to receive
 | 
			
		||||
			 *  a new command.
 | 
			
		||||
			 */
 | 
			
		||||
| 
						 | 
				
			
			@ -169,7 +169,7 @@
 | 
			
		|||
			{
 | 
			
		||||
				SPI_SendByte(Byte);
 | 
			
		||||
			}
 | 
			
		||||
			
 | 
			
		||||
 | 
			
		||||
			/** Sends a dummy byte to the currently selected dataflash IC, and returns the next byte from the dataflash.
 | 
			
		||||
			 *
 | 
			
		||||
			 *  \return Last response byte from the dataflash
 | 
			
		||||
| 
						 | 
				
			
			@ -205,7 +205,8 @@
 | 
			
		|||
		#if defined(__cplusplus)
 | 
			
		||||
			}
 | 
			
		||||
		#endif
 | 
			
		||||
	
 | 
			
		||||
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
/** @} */
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,7 +1,7 @@
 | 
			
		|||
/*
 | 
			
		||||
             LUFA Library
 | 
			
		||||
     Copyright (C) Dean Camera, 2010.
 | 
			
		||||
              
 | 
			
		||||
 | 
			
		||||
  dean [at] fourwalledcubicle [dot] com
 | 
			
		||||
      www.fourwalledcubicle.com
 | 
			
		||||
*/
 | 
			
		||||
| 
						 | 
				
			
			@ -9,13 +9,13 @@
 | 
			
		|||
/*
 | 
			
		||||
  Copyright 2010  Dean Camera (dean [at] fourwalledcubicle [dot] com)
 | 
			
		||||
 | 
			
		||||
  Permission to use, copy, modify, distribute, and sell this 
 | 
			
		||||
  Permission to use, copy, modify, distribute, and sell this
 | 
			
		||||
  software and its documentation for any purpose is hereby granted
 | 
			
		||||
  without fee, provided that the above copyright notice appear in 
 | 
			
		||||
  without fee, provided that the above copyright notice appear in
 | 
			
		||||
  all copies and that both that the copyright notice and this
 | 
			
		||||
  permission notice and warranty disclaimer appear in supporting 
 | 
			
		||||
  documentation, and that the name of the author not be used in 
 | 
			
		||||
  advertising or publicity pertaining to distribution of the 
 | 
			
		||||
  permission notice and warranty disclaimer appear in supporting
 | 
			
		||||
  documentation, and that the name of the author not be used in
 | 
			
		||||
  advertising or publicity pertaining to distribution of the
 | 
			
		||||
  software without specific, written prior permission.
 | 
			
		||||
 | 
			
		||||
  The author disclaim all warranties with regard to this
 | 
			
		||||
| 
						 | 
				
			
			@ -47,7 +47,7 @@
 | 
			
		|||
 *
 | 
			
		||||
 *  @{
 | 
			
		||||
 */
 | 
			
		||||
 
 | 
			
		||||
 | 
			
		||||
#ifndef __DATAFLASH_CMDS_H__
 | 
			
		||||
#define __DATAFLASH_CMDS_H__
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -56,9 +56,9 @@
 | 
			
		|||
			#define DF_STATUS_READY                         (1 << 7)
 | 
			
		||||
			#define DF_STATUS_COMPMISMATCH                  (1 << 6)
 | 
			
		||||
			#define DF_STATUS_SECTORPROTECTION_ON           (1 << 1)
 | 
			
		||||
			
 | 
			
		||||
 | 
			
		||||
			#define DF_MANUFACTURER_ATMEL                   0x1F
 | 
			
		||||
		
 | 
			
		||||
 | 
			
		||||
			#define DF_CMD_GETSTATUS                        0xD7
 | 
			
		||||
 | 
			
		||||
			#define DF_CMD_MAINMEMTOBUFF1                   0x53
 | 
			
		||||
| 
						 | 
				
			
			@ -67,12 +67,12 @@
 | 
			
		|||
			#define DF_CMD_MAINMEMTOBUFF2COMP               0x61
 | 
			
		||||
			#define DF_CMD_AUTOREWRITEBUFF1                 0x58
 | 
			
		||||
			#define DF_CMD_AUTOREWRITEBUFF2                 0x59
 | 
			
		||||
			
 | 
			
		||||
 | 
			
		||||
			#define DF_CMD_MAINMEMPAGEREAD                  0xD2
 | 
			
		||||
			#define DF_CMD_CONTARRAYREAD_LF                 0xE8
 | 
			
		||||
			#define DF_CMD_BUFF1READ_LF                     0xD4
 | 
			
		||||
			#define DF_CMD_BUFF2READ_LF                     0xD6
 | 
			
		||||
			
 | 
			
		||||
 | 
			
		||||
			#define DF_CMD_BUFF1WRITE                       0x84
 | 
			
		||||
			#define DF_CMD_BUFF2WRITE                       0x87
 | 
			
		||||
			#define DF_CMD_BUFF1TOMAINMEMWITHERASE          0x83
 | 
			
		||||
| 
						 | 
				
			
			@ -81,7 +81,7 @@
 | 
			
		|||
			#define DF_CMD_BUFF2TOMAINMEM                   0x89
 | 
			
		||||
			#define DF_CMD_MAINMEMPAGETHROUGHBUFF1          0x82
 | 
			
		||||
			#define DF_CMD_MAINMEMPAGETHROUGHBUFF2          0x85
 | 
			
		||||
			
 | 
			
		||||
 | 
			
		||||
			#define DF_CMD_PAGEERASE                        0x81
 | 
			
		||||
			#define DF_CMD_BLOCKERASE                       0x50
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -90,9 +90,10 @@
 | 
			
		|||
			#define DF_CMD_SECTORPROTECTIONOFF_BYTE2        0x2A
 | 
			
		||||
			#define DF_CMD_SECTORPROTECTIONOFF_BYTE3        0x7F
 | 
			
		||||
			#define DF_CMD_SECTORPROTECTIONOFF_BYTE4        0xCF
 | 
			
		||||
			
 | 
			
		||||
 | 
			
		||||
			#define DF_CMD_READMANUFACTURERDEVICEINFO       0x9F
 | 
			
		||||
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
/** @} */
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,7 +1,7 @@
 | 
			
		|||
/*
 | 
			
		||||
             LUFA Library
 | 
			
		||||
     Copyright (C) Dean Camera, 2010.
 | 
			
		||||
              
 | 
			
		||||
 | 
			
		||||
  dean [at] fourwalledcubicle [dot] com
 | 
			
		||||
      www.fourwalledcubicle.com
 | 
			
		||||
*/
 | 
			
		||||
| 
						 | 
				
			
			@ -9,13 +9,13 @@
 | 
			
		|||
/*
 | 
			
		||||
  Copyright 2010  Dean Camera (dean [at] fourwalledcubicle [dot] com)
 | 
			
		||||
 | 
			
		||||
  Permission to use, copy, modify, distribute, and sell this 
 | 
			
		||||
  Permission to use, copy, modify, distribute, and sell this
 | 
			
		||||
  software and its documentation for any purpose is hereby granted
 | 
			
		||||
  without fee, provided that the above copyright notice appear in 
 | 
			
		||||
  without fee, provided that the above copyright notice appear in
 | 
			
		||||
  all copies and that both that the copyright notice and this
 | 
			
		||||
  permission notice and warranty disclaimer appear in supporting 
 | 
			
		||||
  documentation, and that the name of the author not be used in 
 | 
			
		||||
  advertising or publicity pertaining to distribution of the 
 | 
			
		||||
  permission notice and warranty disclaimer appear in supporting
 | 
			
		||||
  documentation, and that the name of the author not be used in
 | 
			
		||||
  advertising or publicity pertaining to distribution of the
 | 
			
		||||
  software without specific, written prior permission.
 | 
			
		||||
 | 
			
		||||
  The author disclaim all warranties with regard to this
 | 
			
		||||
| 
						 | 
				
			
			@ -72,12 +72,12 @@
 | 
			
		|||
		#if !defined(__INCLUDE_FROM_BUTTONS_H)
 | 
			
		||||
			#error Do not include this file directly. Include LUFA/Drivers/Board/Buttons.h instead.
 | 
			
		||||
		#endif
 | 
			
		||||
		
 | 
			
		||||
 | 
			
		||||
	/* Public Interface - May be used in end-application: */
 | 
			
		||||
		/* Macros: */
 | 
			
		||||
			/** Button mask for the first button on the board. */
 | 
			
		||||
			#define BUTTONS_BUTTON1      (1 << 2)
 | 
			
		||||
	
 | 
			
		||||
 | 
			
		||||
		/* Inline Functions: */
 | 
			
		||||
		#if !defined(__DOXYGEN__)
 | 
			
		||||
			static inline void Buttons_Init(void)
 | 
			
		||||
| 
						 | 
				
			
			@ -97,7 +97,8 @@
 | 
			
		|||
		#if defined(__cplusplus)
 | 
			
		||||
			}
 | 
			
		||||
		#endif
 | 
			
		||||
			
 | 
			
		||||
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
/** @} */
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,7 +1,7 @@
 | 
			
		|||
/*
 | 
			
		||||
             LUFA Library
 | 
			
		||||
     Copyright (C) Dean Camera, 2010.
 | 
			
		||||
              
 | 
			
		||||
 | 
			
		||||
  dean [at] fourwalledcubicle [dot] com
 | 
			
		||||
      www.fourwalledcubicle.com
 | 
			
		||||
*/
 | 
			
		||||
| 
						 | 
				
			
			@ -9,13 +9,13 @@
 | 
			
		|||
/*
 | 
			
		||||
  Copyright 2010  Dean Camera (dean [at] fourwalledcubicle [dot] com)
 | 
			
		||||
 | 
			
		||||
  Permission to use, copy, modify, distribute, and sell this 
 | 
			
		||||
  Permission to use, copy, modify, distribute, and sell this
 | 
			
		||||
  software and its documentation for any purpose is hereby granted
 | 
			
		||||
  without fee, provided that the above copyright notice appear in 
 | 
			
		||||
  without fee, provided that the above copyright notice appear in
 | 
			
		||||
  all copies and that both that the copyright notice and this
 | 
			
		||||
  permission notice and warranty disclaimer appear in supporting 
 | 
			
		||||
  documentation, and that the name of the author not be used in 
 | 
			
		||||
  advertising or publicity pertaining to distribution of the 
 | 
			
		||||
  permission notice and warranty disclaimer appear in supporting
 | 
			
		||||
  documentation, and that the name of the author not be used in
 | 
			
		||||
  advertising or publicity pertaining to distribution of the
 | 
			
		||||
  software without specific, written prior permission.
 | 
			
		||||
 | 
			
		||||
  The author disclaim all warranties with regard to this
 | 
			
		||||
| 
						 | 
				
			
			@ -52,7 +52,7 @@
 | 
			
		|||
#define __DATAFLASH_EVK527_H__
 | 
			
		||||
 | 
			
		||||
	/* Includes: */
 | 
			
		||||
		#include "AT45DB321C.h"		
 | 
			
		||||
		#include "AT45DB321C.h"
 | 
			
		||||
 | 
			
		||||
	/* Preprocessor Checks: */
 | 
			
		||||
		#if !defined(__INCLUDE_FROM_DATAFLASH_H)
 | 
			
		||||
| 
						 | 
				
			
			@ -77,7 +77,7 @@
 | 
			
		|||
 | 
			
		||||
			/** Mask for the first dataflash chip selected. */
 | 
			
		||||
			#define DATAFLASH_CHIP1                      0
 | 
			
		||||
			
 | 
			
		||||
 | 
			
		||||
			/** Internal main memory page size for the board's dataflash IC. */
 | 
			
		||||
			#define DATAFLASH_PAGE_SIZE                  512
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -93,7 +93,7 @@
 | 
			
		|||
				DATAFLASH_CHIPCS_DDR  |= DATAFLASH_CHIPCS_MASK;
 | 
			
		||||
				DATAFLASH_CHIPCS_PORT |= DATAFLASH_CHIPCS_MASK;
 | 
			
		||||
			}
 | 
			
		||||
			
 | 
			
		||||
 | 
			
		||||
			/** Determines the currently selected dataflash chip.
 | 
			
		||||
			 *
 | 
			
		||||
			 *  \return Mask of the currently selected Dataflash chip, either \ref DATAFLASH_NO_CHIP if no chip is selected
 | 
			
		||||
| 
						 | 
				
			
			@ -135,7 +135,7 @@
 | 
			
		|||
			static inline void Dataflash_SelectChipFromPage(const uint16_t PageAddress)
 | 
			
		||||
			{
 | 
			
		||||
				Dataflash_DeselectChip();
 | 
			
		||||
				
 | 
			
		||||
 | 
			
		||||
				if (PageAddress >= DATAFLASH_PAGES)
 | 
			
		||||
				  return;
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -148,7 +148,7 @@
 | 
			
		|||
			static inline void Dataflash_ToggleSelectedChipCS(void)
 | 
			
		||||
			{
 | 
			
		||||
				uint8_t SelectedChipMask = Dataflash_GetSelectedChip();
 | 
			
		||||
					
 | 
			
		||||
 | 
			
		||||
				Dataflash_DeselectChip();
 | 
			
		||||
				Dataflash_SelectChip(SelectedChipMask);
 | 
			
		||||
			}
 | 
			
		||||
| 
						 | 
				
			
			@ -161,7 +161,7 @@
 | 
			
		|||
				Dataflash_ToggleSelectedChipCS();
 | 
			
		||||
				Dataflash_SendByte(DF_CMD_GETSTATUS);
 | 
			
		||||
				while (!(Dataflash_ReceiveByte() & DF_STATUS_READY));
 | 
			
		||||
				Dataflash_ToggleSelectedChipCS();				
 | 
			
		||||
				Dataflash_ToggleSelectedChipCS();
 | 
			
		||||
			}
 | 
			
		||||
 | 
			
		||||
			/** Sends a set of page and buffer address bytes to the currently selected dataflash IC, for use with
 | 
			
		||||
| 
						 | 
				
			
			@ -172,12 +172,13 @@
 | 
			
		|||
			 */
 | 
			
		||||
			static inline void Dataflash_SendAddressBytes(uint16_t PageAddress,
 | 
			
		||||
			                                              const uint16_t BufferByte)
 | 
			
		||||
			{	
 | 
			
		||||
			{
 | 
			
		||||
				Dataflash_SendByte(PageAddress >> 5);
 | 
			
		||||
				Dataflash_SendByte((PageAddress << 3) | (BufferByte >> 8));
 | 
			
		||||
				Dataflash_SendByte(BufferByte);
 | 
			
		||||
			}
 | 
			
		||||
			
 | 
			
		||||
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
/** @} */
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,7 +1,7 @@
 | 
			
		|||
/*
 | 
			
		||||
             LUFA Library
 | 
			
		||||
     Copyright (C) Dean Camera, 2010.
 | 
			
		||||
              
 | 
			
		||||
 | 
			
		||||
  dean [at] fourwalledcubicle [dot] com
 | 
			
		||||
      www.fourwalledcubicle.com
 | 
			
		||||
*/
 | 
			
		||||
| 
						 | 
				
			
			@ -9,13 +9,13 @@
 | 
			
		|||
/*
 | 
			
		||||
  Copyright 2010  Dean Camera (dean [at] fourwalledcubicle [dot] com)
 | 
			
		||||
 | 
			
		||||
  Permission to use, copy, modify, distribute, and sell this 
 | 
			
		||||
  Permission to use, copy, modify, distribute, and sell this
 | 
			
		||||
  software and its documentation for any purpose is hereby granted
 | 
			
		||||
  without fee, provided that the above copyright notice appear in 
 | 
			
		||||
  without fee, provided that the above copyright notice appear in
 | 
			
		||||
  all copies and that both that the copyright notice and this
 | 
			
		||||
  permission notice and warranty disclaimer appear in supporting 
 | 
			
		||||
  documentation, and that the name of the author not be used in 
 | 
			
		||||
  advertising or publicity pertaining to distribution of the 
 | 
			
		||||
  permission notice and warranty disclaimer appear in supporting
 | 
			
		||||
  documentation, and that the name of the author not be used in
 | 
			
		||||
  advertising or publicity pertaining to distribution of the
 | 
			
		||||
  software without specific, written prior permission.
 | 
			
		||||
 | 
			
		||||
  The author disclaim all warranties with regard to this
 | 
			
		||||
| 
						 | 
				
			
			@ -72,7 +72,7 @@
 | 
			
		|||
			#define JOY_FMASK                 ((1 << 4) | (1 << 5) | (1 << 6) | (1 << 7))
 | 
			
		||||
			#define JOY_CMASK                 (1 << 6))
 | 
			
		||||
	#endif
 | 
			
		||||
	
 | 
			
		||||
 | 
			
		||||
	/* Public Interface - May be used in end-application: */
 | 
			
		||||
		/* Macros: */
 | 
			
		||||
			/** Mask for the joystick being pushed in the left direction. */
 | 
			
		||||
| 
						 | 
				
			
			@ -89,7 +89,7 @@
 | 
			
		|||
 | 
			
		||||
			/** Mask for the joystick being pushed inward. */
 | 
			
		||||
			#define JOY_PRESS                 (1 << 6)
 | 
			
		||||
			
 | 
			
		||||
 | 
			
		||||
		/* Inline Functions: */
 | 
			
		||||
		#if !defined(__DOXYGEN__)
 | 
			
		||||
			static inline void Joystick_Init(void)
 | 
			
		||||
| 
						 | 
				
			
			@ -98,9 +98,9 @@
 | 
			
		|||
				DDRC  &= ~(JOY_CMASK);
 | 
			
		||||
 | 
			
		||||
				PORTF |= JOY_FMASK;
 | 
			
		||||
				PORTC |= JOY_CMASK;				
 | 
			
		||||
				PORTC |= JOY_CMASK;
 | 
			
		||||
			}
 | 
			
		||||
			
 | 
			
		||||
 | 
			
		||||
			static inline uint8_t Joystick_GetStatus(void) ATTR_WARN_UNUSED_RESULT;
 | 
			
		||||
			static inline uint8_t Joystick_GetStatus(void)
 | 
			
		||||
			{
 | 
			
		||||
| 
						 | 
				
			
			@ -116,3 +116,4 @@
 | 
			
		|||
#endif
 | 
			
		||||
 | 
			
		||||
/** @} */
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,7 +1,7 @@
 | 
			
		|||
/*
 | 
			
		||||
             LUFA Library
 | 
			
		||||
     Copyright (C) Dean Camera, 2010.
 | 
			
		||||
              
 | 
			
		||||
 | 
			
		||||
  dean [at] fourwalledcubicle [dot] com
 | 
			
		||||
      www.fourwalledcubicle.com
 | 
			
		||||
*/
 | 
			
		||||
| 
						 | 
				
			
			@ -9,13 +9,13 @@
 | 
			
		|||
/*
 | 
			
		||||
  Copyright 2010  Dean Camera (dean [at] fourwalledcubicle [dot] com)
 | 
			
		||||
 | 
			
		||||
  Permission to use, copy, modify, distribute, and sell this 
 | 
			
		||||
  Permission to use, copy, modify, distribute, and sell this
 | 
			
		||||
  software and its documentation for any purpose is hereby granted
 | 
			
		||||
  without fee, provided that the above copyright notice appear in 
 | 
			
		||||
  without fee, provided that the above copyright notice appear in
 | 
			
		||||
  all copies and that both that the copyright notice and this
 | 
			
		||||
  permission notice and warranty disclaimer appear in supporting 
 | 
			
		||||
  documentation, and that the name of the author not be used in 
 | 
			
		||||
  advertising or publicity pertaining to distribution of the 
 | 
			
		||||
  permission notice and warranty disclaimer appear in supporting
 | 
			
		||||
  documentation, and that the name of the author not be used in
 | 
			
		||||
  advertising or publicity pertaining to distribution of the
 | 
			
		||||
  software without specific, written prior permission.
 | 
			
		||||
 | 
			
		||||
  The author disclaim all warranties with regard to this
 | 
			
		||||
| 
						 | 
				
			
			@ -90,7 +90,7 @@
 | 
			
		|||
				DDRD  |=  LEDS_ALL_LEDS;
 | 
			
		||||
				PORTD &= ~LEDS_ALL_LEDS;
 | 
			
		||||
			}
 | 
			
		||||
			
 | 
			
		||||
 | 
			
		||||
			static inline void LEDs_TurnOnLEDs(const uint8_t LEDMask)
 | 
			
		||||
			{
 | 
			
		||||
				PORTD |= LEDMask;
 | 
			
		||||
| 
						 | 
				
			
			@ -105,18 +105,18 @@
 | 
			
		|||
			{
 | 
			
		||||
				PORTD = ((PORTD & ~LEDS_ALL_LEDS) | LEDMask);
 | 
			
		||||
			}
 | 
			
		||||
			
 | 
			
		||||
 | 
			
		||||
			static inline void LEDs_ChangeLEDs(const uint8_t LEDMask,
 | 
			
		||||
			                                   const uint8_t ActiveMask)
 | 
			
		||||
			{
 | 
			
		||||
				PORTD = ((PORTD & ~LEDMask) | ActiveMask);
 | 
			
		||||
			}
 | 
			
		||||
			
 | 
			
		||||
 | 
			
		||||
			static inline void LEDs_ToggleLEDs(const uint8_t LEDMask)
 | 
			
		||||
			{
 | 
			
		||||
				PORTD ^= LEDMask;
 | 
			
		||||
			}
 | 
			
		||||
			
 | 
			
		||||
 | 
			
		||||
			static inline uint8_t LEDs_GetLEDs(void) ATTR_WARN_UNUSED_RESULT;
 | 
			
		||||
			static inline uint8_t LEDs_GetLEDs(void)
 | 
			
		||||
			{
 | 
			
		||||
| 
						 | 
				
			
			@ -128,7 +128,8 @@
 | 
			
		|||
		#if defined(__cplusplus)
 | 
			
		||||
			}
 | 
			
		||||
		#endif
 | 
			
		||||
		
 | 
			
		||||
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
/** @} */
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,7 +1,7 @@
 | 
			
		|||
/*
 | 
			
		||||
             LUFA Library
 | 
			
		||||
     Copyright (C) Dean Camera, 2010.
 | 
			
		||||
              
 | 
			
		||||
 | 
			
		||||
  dean [at] fourwalledcubicle [dot] com
 | 
			
		||||
      www.fourwalledcubicle.com
 | 
			
		||||
*/
 | 
			
		||||
| 
						 | 
				
			
			@ -9,13 +9,13 @@
 | 
			
		|||
/*
 | 
			
		||||
  Copyright 2010  Dean Camera (dean [at] fourwalledcubicle [dot] com)
 | 
			
		||||
 | 
			
		||||
  Permission to use, copy, modify, distribute, and sell this 
 | 
			
		||||
  Permission to use, copy, modify, distribute, and sell this
 | 
			
		||||
  software and its documentation for any purpose is hereby granted
 | 
			
		||||
  without fee, provided that the above copyright notice appear in 
 | 
			
		||||
  without fee, provided that the above copyright notice appear in
 | 
			
		||||
  all copies and that both that the copyright notice and this
 | 
			
		||||
  permission notice and warranty disclaimer appear in supporting 
 | 
			
		||||
  documentation, and that the name of the author not be used in 
 | 
			
		||||
  advertising or publicity pertaining to distribution of the 
 | 
			
		||||
  permission notice and warranty disclaimer appear in supporting
 | 
			
		||||
  documentation, and that the name of the author not be used in
 | 
			
		||||
  advertising or publicity pertaining to distribution of the
 | 
			
		||||
  software without specific, written prior permission.
 | 
			
		||||
 | 
			
		||||
  The author disclaim all warranties with regard to this
 | 
			
		||||
| 
						 | 
				
			
			@ -36,7 +36,7 @@
 | 
			
		|||
 *  \note This file should not be included directly. It is automatically included as needed by the Buttons driver
 | 
			
		||||
 *        dispatch header located in LUFA/Drivers/Board/Buttons.h.
 | 
			
		||||
 */
 | 
			
		||||
 
 | 
			
		||||
 | 
			
		||||
/** \ingroup Group_Buttons
 | 
			
		||||
 *  @defgroup Group_Buttons_JMDBU2 JMDBU2
 | 
			
		||||
 *
 | 
			
		||||
| 
						 | 
				
			
			@ -66,12 +66,12 @@
 | 
			
		|||
		#if !defined(__INCLUDE_FROM_BUTTONS_H)
 | 
			
		||||
			#error Do not include this file directly. Include LUFA/Drivers/Board/Buttons.h instead.
 | 
			
		||||
		#endif
 | 
			
		||||
		
 | 
			
		||||
 | 
			
		||||
	/* Public Interface - May be used in end-application: */
 | 
			
		||||
		/* Macros: */
 | 
			
		||||
			/** Button mask for the first button on the board. */
 | 
			
		||||
			#define BUTTONS_BUTTON1      (1 << 7)
 | 
			
		||||
	
 | 
			
		||||
 | 
			
		||||
		/* Inline Functions: */
 | 
			
		||||
		#if !defined(__DOXYGEN__)
 | 
			
		||||
			static inline void Buttons_Init(void)
 | 
			
		||||
| 
						 | 
				
			
			@ -91,7 +91,8 @@
 | 
			
		|||
		#if defined(__cplusplus)
 | 
			
		||||
			}
 | 
			
		||||
		#endif
 | 
			
		||||
			
 | 
			
		||||
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
/** @} */
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,7 +1,7 @@
 | 
			
		|||
/*
 | 
			
		||||
             LUFA Library
 | 
			
		||||
     Copyright (C) Dean Camera, 2010.
 | 
			
		||||
              
 | 
			
		||||
 | 
			
		||||
  dean [at] fourwalledcubicle [dot] com
 | 
			
		||||
      www.fourwalledcubicle.com
 | 
			
		||||
*/
 | 
			
		||||
| 
						 | 
				
			
			@ -9,13 +9,13 @@
 | 
			
		|||
/*
 | 
			
		||||
  Copyright 2010  Dean Camera (dean [at] fourwalledcubicle [dot] com)
 | 
			
		||||
 | 
			
		||||
  Permission to use, copy, modify, distribute, and sell this 
 | 
			
		||||
  Permission to use, copy, modify, distribute, and sell this
 | 
			
		||||
  software and its documentation for any purpose is hereby granted
 | 
			
		||||
  without fee, provided that the above copyright notice appear in 
 | 
			
		||||
  without fee, provided that the above copyright notice appear in
 | 
			
		||||
  all copies and that both that the copyright notice and this
 | 
			
		||||
  permission notice and warranty disclaimer appear in supporting 
 | 
			
		||||
  documentation, and that the name of the author not be used in 
 | 
			
		||||
  advertising or publicity pertaining to distribution of the 
 | 
			
		||||
  permission notice and warranty disclaimer appear in supporting
 | 
			
		||||
  documentation, and that the name of the author not be used in
 | 
			
		||||
  advertising or publicity pertaining to distribution of the
 | 
			
		||||
  software without specific, written prior permission.
 | 
			
		||||
 | 
			
		||||
  The author disclaim all warranties with regard to this
 | 
			
		||||
| 
						 | 
				
			
			@ -84,7 +84,7 @@
 | 
			
		|||
				DDRD  |=  LEDS_ALL_LEDS;
 | 
			
		||||
				PORTD &= ~LEDS_ALL_LEDS;
 | 
			
		||||
			}
 | 
			
		||||
			
 | 
			
		||||
 | 
			
		||||
			static inline void LEDs_TurnOnLEDs(const uint8_t LEDMask)
 | 
			
		||||
			{
 | 
			
		||||
				PORTD |= LEDMask;
 | 
			
		||||
| 
						 | 
				
			
			@ -99,18 +99,18 @@
 | 
			
		|||
			{
 | 
			
		||||
				PORTD = ((PORTD & ~LEDS_ALL_LEDS) | LEDMask);
 | 
			
		||||
			}
 | 
			
		||||
			
 | 
			
		||||
 | 
			
		||||
			static inline void LEDs_ChangeLEDs(const uint8_t LEDMask,
 | 
			
		||||
			                                   const uint8_t ActiveMask)
 | 
			
		||||
			{
 | 
			
		||||
				PORTD = ((PORTD & ~LEDMask) | ActiveMask);
 | 
			
		||||
			}
 | 
			
		||||
			
 | 
			
		||||
 | 
			
		||||
			static inline void LEDs_ToggleLEDs(const uint8_t LEDMask)
 | 
			
		||||
			{
 | 
			
		||||
				PORTD ^= LEDMask;
 | 
			
		||||
			}
 | 
			
		||||
			
 | 
			
		||||
 | 
			
		||||
			static inline uint8_t LEDs_GetLEDs(void) ATTR_WARN_UNUSED_RESULT;
 | 
			
		||||
			static inline uint8_t LEDs_GetLEDs(void)
 | 
			
		||||
			{
 | 
			
		||||
| 
						 | 
				
			
			@ -122,7 +122,8 @@
 | 
			
		|||
		#if defined(__cplusplus)
 | 
			
		||||
			}
 | 
			
		||||
		#endif
 | 
			
		||||
		
 | 
			
		||||
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
/** @} */
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,7 +1,7 @@
 | 
			
		|||
/*
 | 
			
		||||
             LUFA Library
 | 
			
		||||
     Copyright (C) Dean Camera, 2010.
 | 
			
		||||
              
 | 
			
		||||
 | 
			
		||||
  dean [at] fourwalledcubicle [dot] com
 | 
			
		||||
      www.fourwalledcubicle.com
 | 
			
		||||
*/
 | 
			
		||||
| 
						 | 
				
			
			@ -9,13 +9,13 @@
 | 
			
		|||
/*
 | 
			
		||||
  Copyright 2010  Dean Camera (dean [at] fourwalledcubicle [dot] com)
 | 
			
		||||
 | 
			
		||||
  Permission to use, copy, modify, distribute, and sell this 
 | 
			
		||||
  Permission to use, copy, modify, distribute, and sell this
 | 
			
		||||
  software and its documentation for any purpose is hereby granted
 | 
			
		||||
  without fee, provided that the above copyright notice appear in 
 | 
			
		||||
  without fee, provided that the above copyright notice appear in
 | 
			
		||||
  all copies and that both that the copyright notice and this
 | 
			
		||||
  permission notice and warranty disclaimer appear in supporting 
 | 
			
		||||
  documentation, and that the name of the author not be used in 
 | 
			
		||||
  advertising or publicity pertaining to distribution of the 
 | 
			
		||||
  permission notice and warranty disclaimer appear in supporting
 | 
			
		||||
  documentation, and that the name of the author not be used in
 | 
			
		||||
  advertising or publicity pertaining to distribution of the
 | 
			
		||||
  software without specific, written prior permission.
 | 
			
		||||
 | 
			
		||||
  The author disclaim all warranties with regard to this
 | 
			
		||||
| 
						 | 
				
			
			@ -40,9 +40,9 @@
 | 
			
		|||
 *  If the BOARD value is set to BOARD_USER, this will include the /Board/Joystick.h file in the user project
 | 
			
		||||
 *  directory.
 | 
			
		||||
 *
 | 
			
		||||
 *  For possible BOARD makefile values, see \ref Group_BoardTypes. 
 | 
			
		||||
 *  For possible BOARD makefile values, see \ref Group_BoardTypes.
 | 
			
		||||
 */
 | 
			
		||||
 
 | 
			
		||||
 | 
			
		||||
/** \ingroup Group_BoardDrivers
 | 
			
		||||
 *  @defgroup Group_Joystick Joystick Driver - LUFA/Drivers/Board/Joystick.h
 | 
			
		||||
 *
 | 
			
		||||
| 
						 | 
				
			
			@ -73,7 +73,7 @@
 | 
			
		|||
 | 
			
		||||
	/* Includes: */
 | 
			
		||||
	#include "../../Common/Common.h"
 | 
			
		||||
	
 | 
			
		||||
 | 
			
		||||
	#if (BOARD == BOARD_NONE)
 | 
			
		||||
		#error The Board Joystick driver cannot be used if the makefile BOARD option is not set.
 | 
			
		||||
	#elif (BOARD == BOARD_USBKEY)
 | 
			
		||||
| 
						 | 
				
			
			@ -111,3 +111,4 @@
 | 
			
		|||
#endif
 | 
			
		||||
 | 
			
		||||
/** @} */
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,7 +1,7 @@
 | 
			
		|||
/*
 | 
			
		||||
             LUFA Library
 | 
			
		||||
     Copyright (C) Dean Camera, 2010.
 | 
			
		||||
              
 | 
			
		||||
 | 
			
		||||
  dean [at] fourwalledcubicle [dot] com
 | 
			
		||||
      www.fourwalledcubicle.com
 | 
			
		||||
*/
 | 
			
		||||
| 
						 | 
				
			
			@ -9,13 +9,13 @@
 | 
			
		|||
/*
 | 
			
		||||
  Copyright 2010  Dean Camera (dean [at] fourwalledcubicle [dot] com)
 | 
			
		||||
 | 
			
		||||
  Permission to use, copy, modify, distribute, and sell this 
 | 
			
		||||
  Permission to use, copy, modify, distribute, and sell this
 | 
			
		||||
  software and its documentation for any purpose is hereby granted
 | 
			
		||||
  without fee, provided that the above copyright notice appear in 
 | 
			
		||||
  without fee, provided that the above copyright notice appear in
 | 
			
		||||
  all copies and that both that the copyright notice and this
 | 
			
		||||
  permission notice and warranty disclaimer appear in supporting 
 | 
			
		||||
  documentation, and that the name of the author not be used in 
 | 
			
		||||
  advertising or publicity pertaining to distribution of the 
 | 
			
		||||
  permission notice and warranty disclaimer appear in supporting
 | 
			
		||||
  documentation, and that the name of the author not be used in
 | 
			
		||||
  advertising or publicity pertaining to distribution of the
 | 
			
		||||
  software without specific, written prior permission.
 | 
			
		||||
 | 
			
		||||
  The author disclaim all warranties with regard to this
 | 
			
		||||
| 
						 | 
				
			
			@ -62,7 +62,7 @@
 | 
			
		|||
 *
 | 
			
		||||
 *  \note To make code as compatible as possible, it is assumed that all boards carry a minimum of four LEDs. If
 | 
			
		||||
 *        a board contains less than four LEDs, the remaining LED masks are defined to 0 so as to have no effect.
 | 
			
		||||
 *        If other behaviour is desired, either alias the remaining LED masks to existing LED masks via the -D 
 | 
			
		||||
 *        If other behaviour is desired, either alias the remaining LED masks to existing LED masks via the -D
 | 
			
		||||
 *        switch in the project makefile, or alias them to nothing in the makefile to cause compilation errors when
 | 
			
		||||
 *        a non-existing LED is referenced in application code. Note that this means that it is possible to make
 | 
			
		||||
 *        compatible code for a board with no LEDs by making a board LED driver (see \ref Page_WritingBoardDrivers)
 | 
			
		||||
| 
						 | 
				
			
			@ -79,7 +79,7 @@
 | 
			
		|||
		#define __INCLUDE_FROM_LEDS_H
 | 
			
		||||
		#define INCLUDE_FROM_LEDS_H
 | 
			
		||||
	#endif
 | 
			
		||||
	
 | 
			
		||||
 | 
			
		||||
	/* Includes: */
 | 
			
		||||
	#include "../../Common/Common.h"
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -130,7 +130,7 @@
 | 
			
		|||
	#elif (BOARD == BOARD_USER)
 | 
			
		||||
		#include "Board/LEDs.h"
 | 
			
		||||
	#endif
 | 
			
		||||
	
 | 
			
		||||
 | 
			
		||||
	#if !defined(LEDS_LED1)
 | 
			
		||||
		#define LEDS_LED1      0
 | 
			
		||||
	#endif
 | 
			
		||||
| 
						 | 
				
			
			@ -146,7 +146,7 @@
 | 
			
		|||
	#if !defined(LEDS_LED4)
 | 
			
		||||
		#define LEDS_LED4      0
 | 
			
		||||
	#endif
 | 
			
		||||
	
 | 
			
		||||
 | 
			
		||||
	/* Pseudo-Functions for Doxygen: */
 | 
			
		||||
	#if defined(__DOXYGEN__)
 | 
			
		||||
		/** Initialises the board LED driver so that the LEDs can be controlled. This sets the appropriate port
 | 
			
		||||
| 
						 | 
				
			
			@ -181,7 +181,7 @@
 | 
			
		|||
		 */
 | 
			
		||||
		static inline void LEDs_ChangeLEDs(const uint8_t LEDMask,
 | 
			
		||||
		                                   const uint8_t ActiveMask);
 | 
			
		||||
		
 | 
			
		||||
 | 
			
		||||
		/** Toggles all LEDs in the LED mask, leaving all others in their current states.
 | 
			
		||||
		 *
 | 
			
		||||
		 *  \param[in] LEDMask  Mask of the board LEDs to manipulate (see board-specific LEDs.h driver file).
 | 
			
		||||
| 
						 | 
				
			
			@ -199,3 +199,4 @@
 | 
			
		|||
#endif
 | 
			
		||||
 | 
			
		||||
/** @} */
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,7 +1,7 @@
 | 
			
		|||
/*
 | 
			
		||||
             LUFA Library
 | 
			
		||||
     Copyright (C) Dean Camera, 2010.
 | 
			
		||||
              
 | 
			
		||||
 | 
			
		||||
  dean [at] fourwalledcubicle [dot] com
 | 
			
		||||
      www.fourwalledcubicle.com
 | 
			
		||||
*/
 | 
			
		||||
| 
						 | 
				
			
			@ -9,13 +9,13 @@
 | 
			
		|||
/*
 | 
			
		||||
  Copyright 2010  Dean Camera (dean [at] fourwalledcubicle [dot] com)
 | 
			
		||||
 | 
			
		||||
  Permission to use, copy, modify, distribute, and sell this 
 | 
			
		||||
  Permission to use, copy, modify, distribute, and sell this
 | 
			
		||||
  software and its documentation for any purpose is hereby granted
 | 
			
		||||
  without fee, provided that the above copyright notice appear in 
 | 
			
		||||
  without fee, provided that the above copyright notice appear in
 | 
			
		||||
  all copies and that both that the copyright notice and this
 | 
			
		||||
  permission notice and warranty disclaimer appear in supporting 
 | 
			
		||||
  documentation, and that the name of the author not be used in 
 | 
			
		||||
  advertising or publicity pertaining to distribution of the 
 | 
			
		||||
  permission notice and warranty disclaimer appear in supporting
 | 
			
		||||
  documentation, and that the name of the author not be used in
 | 
			
		||||
  advertising or publicity pertaining to distribution of the
 | 
			
		||||
  software without specific, written prior permission.
 | 
			
		||||
 | 
			
		||||
  The author disclaim all warranties with regard to this
 | 
			
		||||
| 
						 | 
				
			
			@ -36,7 +36,7 @@
 | 
			
		|||
 *  \note This file should not be included directly. It is automatically included as needed by the Buttons driver
 | 
			
		||||
 *        dispatch header located in LUFA/Drivers/Board/Buttons.h.
 | 
			
		||||
 */
 | 
			
		||||
 
 | 
			
		||||
 | 
			
		||||
/** \ingroup Group_Buttons
 | 
			
		||||
 *  @defgroup Group_Buttons_OLIMEX162 OLIMEX162
 | 
			
		||||
 *
 | 
			
		||||
| 
						 | 
				
			
			@ -66,12 +66,12 @@
 | 
			
		|||
		#if !defined(__INCLUDE_FROM_BUTTONS_H)
 | 
			
		||||
			#error Do not include this file directly. Include LUFA/Drivers/Board/Buttons.h instead.
 | 
			
		||||
		#endif
 | 
			
		||||
		
 | 
			
		||||
 | 
			
		||||
	/* Public Interface - May be used in end-application: */
 | 
			
		||||
		/* Macros: */
 | 
			
		||||
			/** Button mask for the first button on the board. */
 | 
			
		||||
			#define BUTTONS_BUTTON1      (1 << 7)
 | 
			
		||||
	
 | 
			
		||||
 | 
			
		||||
		/* Inline Functions: */
 | 
			
		||||
		#if !defined(__DOXYGEN__)
 | 
			
		||||
			static inline void Buttons_Init(void)
 | 
			
		||||
| 
						 | 
				
			
			@ -91,7 +91,8 @@
 | 
			
		|||
		#if defined(__cplusplus)
 | 
			
		||||
			}
 | 
			
		||||
		#endif
 | 
			
		||||
			
 | 
			
		||||
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
/** @} */
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,7 +1,7 @@
 | 
			
		|||
/*
 | 
			
		||||
             LUFA Library
 | 
			
		||||
     Copyright (C) Dean Camera, 2010.
 | 
			
		||||
              
 | 
			
		||||
 | 
			
		||||
  dean [at] fourwalledcubicle [dot] com
 | 
			
		||||
      www.fourwalledcubicle.com
 | 
			
		||||
*/
 | 
			
		||||
| 
						 | 
				
			
			@ -9,13 +9,13 @@
 | 
			
		|||
/*
 | 
			
		||||
  Copyright 2010  Dean Camera (dean [at] fourwalledcubicle [dot] com)
 | 
			
		||||
 | 
			
		||||
  Permission to use, copy, modify, distribute, and sell this 
 | 
			
		||||
  Permission to use, copy, modify, distribute, and sell this
 | 
			
		||||
  software and its documentation for any purpose is hereby granted
 | 
			
		||||
  without fee, provided that the above copyright notice appear in 
 | 
			
		||||
  without fee, provided that the above copyright notice appear in
 | 
			
		||||
  all copies and that both that the copyright notice and this
 | 
			
		||||
  permission notice and warranty disclaimer appear in supporting 
 | 
			
		||||
  documentation, and that the name of the author not be used in 
 | 
			
		||||
  advertising or publicity pertaining to distribution of the 
 | 
			
		||||
  permission notice and warranty disclaimer appear in supporting
 | 
			
		||||
  documentation, and that the name of the author not be used in
 | 
			
		||||
  advertising or publicity pertaining to distribution of the
 | 
			
		||||
  software without specific, written prior permission.
 | 
			
		||||
 | 
			
		||||
  The author disclaim all warranties with regard to this
 | 
			
		||||
| 
						 | 
				
			
			@ -47,7 +47,7 @@
 | 
			
		|||
 *
 | 
			
		||||
 *  @{
 | 
			
		||||
 */
 | 
			
		||||
 
 | 
			
		||||
 | 
			
		||||
#ifndef __LEDS_OLIMEX162_H__
 | 
			
		||||
#define __LEDS_OLIMEX162_H__
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -76,7 +76,7 @@
 | 
			
		|||
 | 
			
		||||
			/** LED mask for none of the board LEDs. */
 | 
			
		||||
			#define LEDS_NO_LEDS     0
 | 
			
		||||
			
 | 
			
		||||
 | 
			
		||||
		/* Inline Functions: */
 | 
			
		||||
		#if !defined(__DOXYGEN__)
 | 
			
		||||
			static inline void LEDs_Init(void)
 | 
			
		||||
| 
						 | 
				
			
			@ -84,7 +84,7 @@
 | 
			
		|||
				DDRD  |= LEDS_ALL_LEDS;
 | 
			
		||||
				PORTD |= LEDS_ALL_LEDS;
 | 
			
		||||
			}
 | 
			
		||||
			
 | 
			
		||||
 | 
			
		||||
			static inline void LEDs_TurnOnLEDs(const uint8_t LEDMask)
 | 
			
		||||
			{
 | 
			
		||||
				PORTD &= ~LEDMask;
 | 
			
		||||
| 
						 | 
				
			
			@ -99,13 +99,13 @@
 | 
			
		|||
			{
 | 
			
		||||
				PORTD = ((PORTD | LEDS_ALL_LEDS) & ~LEDMask);
 | 
			
		||||
			}
 | 
			
		||||
			
 | 
			
		||||
 | 
			
		||||
			static inline void LEDs_ChangeLEDs(const uint8_t LEDMask,
 | 
			
		||||
			                                   const uint8_t ActiveMask)
 | 
			
		||||
			{
 | 
			
		||||
				PORTD = ((PORTD | LEDMask) & ~ActiveMask);
 | 
			
		||||
			}
 | 
			
		||||
			
 | 
			
		||||
 | 
			
		||||
			static inline void LEDs_ToggleLEDs(const uint8_t LEDMask)
 | 
			
		||||
			{
 | 
			
		||||
				PORTD ^= LEDMask;
 | 
			
		||||
| 
						 | 
				
			
			@ -122,7 +122,8 @@
 | 
			
		|||
		#if defined(__cplusplus)
 | 
			
		||||
			}
 | 
			
		||||
		#endif
 | 
			
		||||
		
 | 
			
		||||
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
/** @} */
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,7 +1,7 @@
 | 
			
		|||
/*
 | 
			
		||||
             LUFA Library
 | 
			
		||||
     Copyright (C) Dean Camera, 2010.
 | 
			
		||||
              
 | 
			
		||||
 | 
			
		||||
  dean [at] fourwalledcubicle [dot] com
 | 
			
		||||
      www.fourwalledcubicle.com
 | 
			
		||||
*/
 | 
			
		||||
| 
						 | 
				
			
			@ -9,13 +9,13 @@
 | 
			
		|||
/*
 | 
			
		||||
  Copyright 2010  Dean Camera (dean [at] fourwalledcubicle [dot] com)
 | 
			
		||||
 | 
			
		||||
  Permission to use, copy, modify, distribute, and sell this 
 | 
			
		||||
  Permission to use, copy, modify, distribute, and sell this
 | 
			
		||||
  software and its documentation for any purpose is hereby granted
 | 
			
		||||
  without fee, provided that the above copyright notice appear in 
 | 
			
		||||
  without fee, provided that the above copyright notice appear in
 | 
			
		||||
  all copies and that both that the copyright notice and this
 | 
			
		||||
  permission notice and warranty disclaimer appear in supporting 
 | 
			
		||||
  documentation, and that the name of the author not be used in 
 | 
			
		||||
  advertising or publicity pertaining to distribution of the 
 | 
			
		||||
  permission notice and warranty disclaimer appear in supporting
 | 
			
		||||
  documentation, and that the name of the author not be used in
 | 
			
		||||
  advertising or publicity pertaining to distribution of the
 | 
			
		||||
  software without specific, written prior permission.
 | 
			
		||||
 | 
			
		||||
  The author disclaim all warranties with regard to this
 | 
			
		||||
| 
						 | 
				
			
			@ -47,7 +47,7 @@
 | 
			
		|||
 *
 | 
			
		||||
 *  @{
 | 
			
		||||
 */
 | 
			
		||||
 
 | 
			
		||||
 | 
			
		||||
#ifndef __LEDS_RZUSBSTICK_H__
 | 
			
		||||
#define __LEDS_RZUSBSTICK_H__
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -71,7 +71,7 @@
 | 
			
		|||
		/* Macros: */
 | 
			
		||||
			#define LEDS_PORTD_LEDS       (LEDS_LED1 | LEDS_LED2)
 | 
			
		||||
			#define LEDS_PORTE_LEDS       (LEDS_LED3 | LEDS_LED4)
 | 
			
		||||
			
 | 
			
		||||
 | 
			
		||||
			#define LEDS_PORTE_MASK_SHIFT 4
 | 
			
		||||
	#endif
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -94,7 +94,7 @@
 | 
			
		|||
 | 
			
		||||
			/** LED mask for none of the board LEDs. */
 | 
			
		||||
			#define LEDS_NO_LEDS     0
 | 
			
		||||
			
 | 
			
		||||
 | 
			
		||||
		/* Inline Functions: */
 | 
			
		||||
		#if !defined(__DOXYGEN__)
 | 
			
		||||
			static inline void LEDs_Init(void)
 | 
			
		||||
| 
						 | 
				
			
			@ -106,11 +106,11 @@
 | 
			
		|||
				DDRE  |=  (LEDS_PORTE_LEDS << LEDS_PORTE_MASK_SHIFT);
 | 
			
		||||
				PORTE |=  (LEDS_PORTE_LEDS << LEDS_PORTE_MASK_SHIFT);
 | 
			
		||||
			}
 | 
			
		||||
			
 | 
			
		||||
 | 
			
		||||
			static inline void LEDs_TurnOnLEDs(const uint8_t LEDMask)
 | 
			
		||||
			{
 | 
			
		||||
				PORTD |=  (LEDMask & LEDS_LED1);
 | 
			
		||||
				PORTD &= ~(LEDMask & LEDS_LED2);			
 | 
			
		||||
				PORTD &= ~(LEDMask & LEDS_LED2);
 | 
			
		||||
				PORTE &= ~((LEDMask & LEDS_PORTE_LEDS) << LEDS_PORTE_MASK_SHIFT);
 | 
			
		||||
			}
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -128,7 +128,7 @@
 | 
			
		|||
				PORTE = ((PORTE | (LEDS_PORTE_LEDS << LEDS_PORTE_MASK_SHIFT)) &
 | 
			
		||||
				        ~((LEDMask & LEDS_PORTE_LEDS) << LEDS_PORTE_MASK_SHIFT));
 | 
			
		||||
			}
 | 
			
		||||
			
 | 
			
		||||
 | 
			
		||||
			static inline void LEDs_ChangeLEDs(const uint8_t LEDMask,
 | 
			
		||||
			                                   const uint8_t ActiveMask)
 | 
			
		||||
			{
 | 
			
		||||
| 
						 | 
				
			
			@ -137,7 +137,7 @@
 | 
			
		|||
				PORTE = ((PORTE | ((LEDMask & LEDS_PORTE_LEDS) << LEDS_PORTE_MASK_SHIFT)) &
 | 
			
		||||
				        ~((ActiveMask & LEDS_PORTE_LEDS) << LEDS_PORTE_MASK_SHIFT));
 | 
			
		||||
			}
 | 
			
		||||
			
 | 
			
		||||
 | 
			
		||||
			static inline void LEDs_ToggleLEDs(const uint8_t LEDMask)
 | 
			
		||||
			{
 | 
			
		||||
				PORTD = (PORTD ^ (LEDMask & LEDS_PORTD_LEDS));
 | 
			
		||||
| 
						 | 
				
			
			@ -156,7 +156,8 @@
 | 
			
		|||
		#if defined(__cplusplus)
 | 
			
		||||
			}
 | 
			
		||||
		#endif
 | 
			
		||||
	
 | 
			
		||||
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
/** @} */
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,7 +1,7 @@
 | 
			
		|||
/*
 | 
			
		||||
             LUFA Library
 | 
			
		||||
     Copyright (C) Dean Camera, 2010.
 | 
			
		||||
              
 | 
			
		||||
 | 
			
		||||
  dean [at] fourwalledcubicle [dot] com
 | 
			
		||||
      www.fourwalledcubicle.com
 | 
			
		||||
*/
 | 
			
		||||
| 
						 | 
				
			
			@ -9,13 +9,13 @@
 | 
			
		|||
/*
 | 
			
		||||
  Copyright 2010  Dean Camera (dean [at] fourwalledcubicle [dot] com)
 | 
			
		||||
 | 
			
		||||
  Permission to use, copy, modify, distribute, and sell this 
 | 
			
		||||
  Permission to use, copy, modify, distribute, and sell this
 | 
			
		||||
  software and its documentation for any purpose is hereby granted
 | 
			
		||||
  without fee, provided that the above copyright notice appear in 
 | 
			
		||||
  without fee, provided that the above copyright notice appear in
 | 
			
		||||
  all copies and that both that the copyright notice and this
 | 
			
		||||
  permission notice and warranty disclaimer appear in supporting 
 | 
			
		||||
  documentation, and that the name of the author not be used in 
 | 
			
		||||
  advertising or publicity pertaining to distribution of the 
 | 
			
		||||
  permission notice and warranty disclaimer appear in supporting
 | 
			
		||||
  documentation, and that the name of the author not be used in
 | 
			
		||||
  advertising or publicity pertaining to distribution of the
 | 
			
		||||
  software without specific, written prior permission.
 | 
			
		||||
 | 
			
		||||
  The author disclaim all warranties with regard to this
 | 
			
		||||
| 
						 | 
				
			
			@ -47,7 +47,7 @@
 | 
			
		|||
 *
 | 
			
		||||
 *  @{
 | 
			
		||||
 */
 | 
			
		||||
 
 | 
			
		||||
 | 
			
		||||
#ifndef __DATAFLASH_CMDS_H__
 | 
			
		||||
#define __DATAFLASH_CMDS_H__
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -56,9 +56,9 @@
 | 
			
		|||
			#define DF_STATUS_READY                         (1 << 7)
 | 
			
		||||
			#define DF_STATUS_COMPMISMATCH                  (1 << 6)
 | 
			
		||||
			#define DF_STATUS_SECTORPROTECTION_ON           (1 << 1)
 | 
			
		||||
			
 | 
			
		||||
 | 
			
		||||
			#define DF_MANUFACTURER_ATMEL                   0x1F
 | 
			
		||||
		
 | 
			
		||||
 | 
			
		||||
			#define DF_CMD_GETSTATUS                        0xD7
 | 
			
		||||
 | 
			
		||||
			#define DF_CMD_MAINMEMTOBUFF1                   0x53
 | 
			
		||||
| 
						 | 
				
			
			@ -67,12 +67,12 @@
 | 
			
		|||
			#define DF_CMD_MAINMEMTOBUFF2COMP               0x61
 | 
			
		||||
			#define DF_CMD_AUTOREWRITEBUFF1                 0x58
 | 
			
		||||
			#define DF_CMD_AUTOREWRITEBUFF2                 0x59
 | 
			
		||||
			
 | 
			
		||||
 | 
			
		||||
			#define DF_CMD_MAINMEMPAGEREAD                  0xD2
 | 
			
		||||
			#define DF_CMD_CONTARRAYREAD_LF                 0xE8
 | 
			
		||||
			#define DF_CMD_BUFF1READ_LF                     0xD4
 | 
			
		||||
			#define DF_CMD_BUFF2READ_LF                     0xD6
 | 
			
		||||
			
 | 
			
		||||
 | 
			
		||||
			#define DF_CMD_BUFF1WRITE                       0x84
 | 
			
		||||
			#define DF_CMD_BUFF2WRITE                       0x87
 | 
			
		||||
			#define DF_CMD_BUFF1TOMAINMEMWITHERASE          0x83
 | 
			
		||||
| 
						 | 
				
			
			@ -81,7 +81,7 @@
 | 
			
		|||
			#define DF_CMD_BUFF2TOMAINMEM                   0x89
 | 
			
		||||
			#define DF_CMD_MAINMEMPAGETHROUGHBUFF1          0x82
 | 
			
		||||
			#define DF_CMD_MAINMEMPAGETHROUGHBUFF2          0x85
 | 
			
		||||
			
 | 
			
		||||
 | 
			
		||||
			#define DF_CMD_PAGEERASE                        0x81
 | 
			
		||||
			#define DF_CMD_BLOCKERASE                       0x50
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -90,9 +90,10 @@
 | 
			
		|||
			#define DF_CMD_SECTORPROTECTIONOFF_BYTE2        0x2A
 | 
			
		||||
			#define DF_CMD_SECTORPROTECTIONOFF_BYTE3        0x7F
 | 
			
		||||
			#define DF_CMD_SECTORPROTECTIONOFF_BYTE4        0xCF
 | 
			
		||||
			
 | 
			
		||||
 | 
			
		||||
			#define DF_CMD_READMANUFACTURERDEVICEINFO       0x9F
 | 
			
		||||
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
/** @} */
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,7 +1,7 @@
 | 
			
		|||
/*
 | 
			
		||||
             LUFA Library
 | 
			
		||||
     Copyright (C) Dean Camera, 2010.
 | 
			
		||||
              
 | 
			
		||||
 | 
			
		||||
  dean [at] fourwalledcubicle [dot] com
 | 
			
		||||
      www.fourwalledcubicle.com
 | 
			
		||||
*/
 | 
			
		||||
| 
						 | 
				
			
			@ -9,13 +9,13 @@
 | 
			
		|||
/*
 | 
			
		||||
  Copyright 2010  Dean Camera (dean [at] fourwalledcubicle [dot] com)
 | 
			
		||||
 | 
			
		||||
  Permission to use, copy, modify, distribute, and sell this 
 | 
			
		||||
  Permission to use, copy, modify, distribute, and sell this
 | 
			
		||||
  software and its documentation for any purpose is hereby granted
 | 
			
		||||
  without fee, provided that the above copyright notice appear in 
 | 
			
		||||
  without fee, provided that the above copyright notice appear in
 | 
			
		||||
  all copies and that both that the copyright notice and this
 | 
			
		||||
  permission notice and warranty disclaimer appear in supporting 
 | 
			
		||||
  documentation, and that the name of the author not be used in 
 | 
			
		||||
  advertising or publicity pertaining to distribution of the 
 | 
			
		||||
  permission notice and warranty disclaimer appear in supporting
 | 
			
		||||
  documentation, and that the name of the author not be used in
 | 
			
		||||
  advertising or publicity pertaining to distribution of the
 | 
			
		||||
  software without specific, written prior permission.
 | 
			
		||||
 | 
			
		||||
  The author disclaim all warranties with regard to this
 | 
			
		||||
| 
						 | 
				
			
			@ -72,12 +72,12 @@
 | 
			
		|||
		#if !defined(__INCLUDE_FROM_BUTTONS_H)
 | 
			
		||||
			#error Do not include this file directly. Include LUFA/Drivers/Board/Buttons.h instead.
 | 
			
		||||
		#endif
 | 
			
		||||
		
 | 
			
		||||
 | 
			
		||||
	/* Public Interface - May be used in end-application: */
 | 
			
		||||
		/* Macros: */
 | 
			
		||||
			/** Button mask for the first button on the board. */
 | 
			
		||||
			#define BUTTONS_BUTTON1      (1 << 2)
 | 
			
		||||
	
 | 
			
		||||
 | 
			
		||||
		/* Inline Functions: */
 | 
			
		||||
		#if !defined(__DOXYGEN__)
 | 
			
		||||
			static inline void Buttons_Init(void)
 | 
			
		||||
| 
						 | 
				
			
			@ -97,7 +97,8 @@
 | 
			
		|||
		#if defined(__cplusplus)
 | 
			
		||||
			}
 | 
			
		||||
		#endif
 | 
			
		||||
			
 | 
			
		||||
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
/** @} */
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,7 +1,7 @@
 | 
			
		|||
/*
 | 
			
		||||
             LUFA Library
 | 
			
		||||
     Copyright (C) Dean Camera, 2010.
 | 
			
		||||
              
 | 
			
		||||
 | 
			
		||||
  dean [at] fourwalledcubicle [dot] com
 | 
			
		||||
      www.fourwalledcubicle.com
 | 
			
		||||
*/
 | 
			
		||||
| 
						 | 
				
			
			@ -9,13 +9,13 @@
 | 
			
		|||
/*
 | 
			
		||||
  Copyright 2010  Dean Camera (dean [at] fourwalledcubicle [dot] com)
 | 
			
		||||
 | 
			
		||||
  Permission to use, copy, modify, distribute, and sell this 
 | 
			
		||||
  Permission to use, copy, modify, distribute, and sell this
 | 
			
		||||
  software and its documentation for any purpose is hereby granted
 | 
			
		||||
  without fee, provided that the above copyright notice appear in 
 | 
			
		||||
  without fee, provided that the above copyright notice appear in
 | 
			
		||||
  all copies and that both that the copyright notice and this
 | 
			
		||||
  permission notice and warranty disclaimer appear in supporting 
 | 
			
		||||
  documentation, and that the name of the author not be used in 
 | 
			
		||||
  advertising or publicity pertaining to distribution of the 
 | 
			
		||||
  permission notice and warranty disclaimer appear in supporting
 | 
			
		||||
  documentation, and that the name of the author not be used in
 | 
			
		||||
  advertising or publicity pertaining to distribution of the
 | 
			
		||||
  software without specific, written prior permission.
 | 
			
		||||
 | 
			
		||||
  The author disclaim all warranties with regard to this
 | 
			
		||||
| 
						 | 
				
			
			@ -52,7 +52,7 @@
 | 
			
		|||
#define __DATAFLASH_STK525_H__
 | 
			
		||||
 | 
			
		||||
	/* Includes: */
 | 
			
		||||
		#include "AT45DB321C.h"		
 | 
			
		||||
		#include "AT45DB321C.h"
 | 
			
		||||
 | 
			
		||||
	/* Preprocessor Checks: */
 | 
			
		||||
		#if !defined(__INCLUDE_FROM_DATAFLASH_H)
 | 
			
		||||
| 
						 | 
				
			
			@ -77,7 +77,7 @@
 | 
			
		|||
 | 
			
		||||
			/** Mask for the first dataflash chip selected. */
 | 
			
		||||
			#define DATAFLASH_CHIP1                      0
 | 
			
		||||
			
 | 
			
		||||
 | 
			
		||||
			/** Internal main memory page size for the board's dataflash IC. */
 | 
			
		||||
			#define DATAFLASH_PAGE_SIZE                  512
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -135,20 +135,20 @@
 | 
			
		|||
			static inline void Dataflash_SelectChipFromPage(const uint16_t PageAddress)
 | 
			
		||||
			{
 | 
			
		||||
				Dataflash_DeselectChip();
 | 
			
		||||
				
 | 
			
		||||
 | 
			
		||||
				if (PageAddress >= DATAFLASH_PAGES)
 | 
			
		||||
				  return;
 | 
			
		||||
 | 
			
		||||
				Dataflash_SelectChip(DATAFLASH_CHIP1);
 | 
			
		||||
			}
 | 
			
		||||
			
 | 
			
		||||
 | 
			
		||||
			/** Toggles the select line of the currently selected dataflash IC, so that it is ready to receive
 | 
			
		||||
			 *  a new command.
 | 
			
		||||
			 */
 | 
			
		||||
			static inline void Dataflash_ToggleSelectedChipCS(void)
 | 
			
		||||
			{
 | 
			
		||||
				uint8_t SelectedChipMask = Dataflash_GetSelectedChip();
 | 
			
		||||
					
 | 
			
		||||
 | 
			
		||||
				Dataflash_DeselectChip();
 | 
			
		||||
				Dataflash_SelectChip(SelectedChipMask);
 | 
			
		||||
			}
 | 
			
		||||
| 
						 | 
				
			
			@ -161,7 +161,7 @@
 | 
			
		|||
				Dataflash_ToggleSelectedChipCS();
 | 
			
		||||
				Dataflash_SendByte(DF_CMD_GETSTATUS);
 | 
			
		||||
				while (!(Dataflash_ReceiveByte() & DF_STATUS_READY));
 | 
			
		||||
				Dataflash_ToggleSelectedChipCS();				
 | 
			
		||||
				Dataflash_ToggleSelectedChipCS();
 | 
			
		||||
			}
 | 
			
		||||
 | 
			
		||||
			/** Sends a set of page and buffer address bytes to the currently selected dataflash IC, for use with
 | 
			
		||||
| 
						 | 
				
			
			@ -172,12 +172,13 @@
 | 
			
		|||
			 */
 | 
			
		||||
			static inline void Dataflash_SendAddressBytes(uint16_t PageAddress,
 | 
			
		||||
			                                              const uint16_t BufferByte)
 | 
			
		||||
			{	
 | 
			
		||||
			{
 | 
			
		||||
				Dataflash_SendByte(PageAddress >> 6);
 | 
			
		||||
				Dataflash_SendByte((PageAddress << 2) | (BufferByte >> 8));
 | 
			
		||||
				Dataflash_SendByte(BufferByte);
 | 
			
		||||
			}
 | 
			
		||||
			
 | 
			
		||||
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
/** @} */
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,7 +1,7 @@
 | 
			
		|||
/*
 | 
			
		||||
             LUFA Library
 | 
			
		||||
     Copyright (C) Dean Camera, 2010.
 | 
			
		||||
              
 | 
			
		||||
 | 
			
		||||
  dean [at] fourwalledcubicle [dot] com
 | 
			
		||||
      www.fourwalledcubicle.com
 | 
			
		||||
*/
 | 
			
		||||
| 
						 | 
				
			
			@ -9,13 +9,13 @@
 | 
			
		|||
/*
 | 
			
		||||
  Copyright 2010  Dean Camera (dean [at] fourwalledcubicle [dot] com)
 | 
			
		||||
 | 
			
		||||
  Permission to use, copy, modify, distribute, and sell this 
 | 
			
		||||
  Permission to use, copy, modify, distribute, and sell this
 | 
			
		||||
  software and its documentation for any purpose is hereby granted
 | 
			
		||||
  without fee, provided that the above copyright notice appear in 
 | 
			
		||||
  without fee, provided that the above copyright notice appear in
 | 
			
		||||
  all copies and that both that the copyright notice and this
 | 
			
		||||
  permission notice and warranty disclaimer appear in supporting 
 | 
			
		||||
  documentation, and that the name of the author not be used in 
 | 
			
		||||
  advertising or publicity pertaining to distribution of the 
 | 
			
		||||
  permission notice and warranty disclaimer appear in supporting
 | 
			
		||||
  documentation, and that the name of the author not be used in
 | 
			
		||||
  advertising or publicity pertaining to distribution of the
 | 
			
		||||
  software without specific, written prior permission.
 | 
			
		||||
 | 
			
		||||
  The author disclaim all warranties with regard to this
 | 
			
		||||
| 
						 | 
				
			
			@ -36,7 +36,7 @@
 | 
			
		|||
 *  \note This file should not be included directly. It is automatically included as needed by the joystick driver
 | 
			
		||||
 *        dispatch header located in LUFA/Drivers/Board/Joystick.h.
 | 
			
		||||
 */
 | 
			
		||||
 
 | 
			
		||||
 | 
			
		||||
/** \ingroup Group_Joystick
 | 
			
		||||
 *  @defgroup Group_Joystick_STK525 STK525
 | 
			
		||||
 *
 | 
			
		||||
| 
						 | 
				
			
			@ -47,7 +47,7 @@
 | 
			
		|||
 *
 | 
			
		||||
 *  @{
 | 
			
		||||
 */
 | 
			
		||||
 
 | 
			
		||||
 | 
			
		||||
#ifndef __JOYSTICK_STK525_H__
 | 
			
		||||
#define __JOYSTICK_STK525_H__
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -72,7 +72,7 @@
 | 
			
		|||
			#define JOY_BMASK                 ((1 << 5) | (1 << 6) | (1 << 7))
 | 
			
		||||
			#define JOY_EMASK                 ((1 << 4) | (1 << 5))
 | 
			
		||||
	#endif
 | 
			
		||||
	
 | 
			
		||||
 | 
			
		||||
	/* Public Interface - May be used in end-application: */
 | 
			
		||||
		/* Macros: */
 | 
			
		||||
			/** Mask for the joystick being pushed in the left direction. */
 | 
			
		||||
| 
						 | 
				
			
			@ -89,7 +89,7 @@
 | 
			
		|||
 | 
			
		||||
			/** Mask for the joystick being pushed inward. */
 | 
			
		||||
			#define JOY_PRESS                 (1 << 5)
 | 
			
		||||
			
 | 
			
		||||
 | 
			
		||||
		/* Inline Functions: */
 | 
			
		||||
		#if !defined(__DOXYGEN__)
 | 
			
		||||
			static inline void Joystick_Init(void)
 | 
			
		||||
| 
						 | 
				
			
			@ -98,9 +98,9 @@
 | 
			
		|||
				DDRE  &= ~(JOY_EMASK);
 | 
			
		||||
 | 
			
		||||
				PORTB |= JOY_BMASK;
 | 
			
		||||
				PORTE |= JOY_EMASK;				
 | 
			
		||||
				PORTE |= JOY_EMASK;
 | 
			
		||||
			}
 | 
			
		||||
			
 | 
			
		||||
 | 
			
		||||
			static inline uint8_t Joystick_GetStatus(void) ATTR_WARN_UNUSED_RESULT;
 | 
			
		||||
			static inline uint8_t Joystick_GetStatus(void)
 | 
			
		||||
			{
 | 
			
		||||
| 
						 | 
				
			
			@ -112,7 +112,8 @@
 | 
			
		|||
		#if defined(__cplusplus)
 | 
			
		||||
			}
 | 
			
		||||
		#endif
 | 
			
		||||
	
 | 
			
		||||
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
/** @} */
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,7 +1,7 @@
 | 
			
		|||
/*
 | 
			
		||||
             LUFA Library
 | 
			
		||||
     Copyright (C) Dean Camera, 2010.
 | 
			
		||||
              
 | 
			
		||||
 | 
			
		||||
  dean [at] fourwalledcubicle [dot] com
 | 
			
		||||
      www.fourwalledcubicle.com
 | 
			
		||||
*/
 | 
			
		||||
| 
						 | 
				
			
			@ -9,13 +9,13 @@
 | 
			
		|||
/*
 | 
			
		||||
  Copyright 2010  Dean Camera (dean [at] fourwalledcubicle [dot] com)
 | 
			
		||||
 | 
			
		||||
  Permission to use, copy, modify, distribute, and sell this 
 | 
			
		||||
  Permission to use, copy, modify, distribute, and sell this
 | 
			
		||||
  software and its documentation for any purpose is hereby granted
 | 
			
		||||
  without fee, provided that the above copyright notice appear in 
 | 
			
		||||
  without fee, provided that the above copyright notice appear in
 | 
			
		||||
  all copies and that both that the copyright notice and this
 | 
			
		||||
  permission notice and warranty disclaimer appear in supporting 
 | 
			
		||||
  documentation, and that the name of the author not be used in 
 | 
			
		||||
  advertising or publicity pertaining to distribution of the 
 | 
			
		||||
  permission notice and warranty disclaimer appear in supporting
 | 
			
		||||
  documentation, and that the name of the author not be used in
 | 
			
		||||
  advertising or publicity pertaining to distribution of the
 | 
			
		||||
  software without specific, written prior permission.
 | 
			
		||||
 | 
			
		||||
  The author disclaim all warranties with regard to this
 | 
			
		||||
| 
						 | 
				
			
			@ -47,7 +47,7 @@
 | 
			
		|||
 *
 | 
			
		||||
 *  @{
 | 
			
		||||
 */
 | 
			
		||||
 
 | 
			
		||||
 | 
			
		||||
#ifndef __LEDS_STK525_H__
 | 
			
		||||
#define __LEDS_STK525_H__
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -60,7 +60,7 @@
 | 
			
		|||
		#if defined(__cplusplus)
 | 
			
		||||
			extern "C" {
 | 
			
		||||
		#endif
 | 
			
		||||
		
 | 
			
		||||
 | 
			
		||||
	/* Preprocessor Checks: */
 | 
			
		||||
		#if !defined(__INCLUDE_FROM_LEDS_H)
 | 
			
		||||
			#error Do not include this file directly. Include LUFA/Drivers/Board/LEDS.h instead.
 | 
			
		||||
| 
						 | 
				
			
			@ -93,7 +93,7 @@
 | 
			
		|||
				DDRD  |=  LEDS_ALL_LEDS;
 | 
			
		||||
				PORTD &= ~LEDS_ALL_LEDS;
 | 
			
		||||
			}
 | 
			
		||||
			
 | 
			
		||||
 | 
			
		||||
			static inline void LEDs_TurnOnLEDs(const uint8_t LEDMask)
 | 
			
		||||
			{
 | 
			
		||||
				PORTD |= LEDMask;
 | 
			
		||||
| 
						 | 
				
			
			@ -108,13 +108,13 @@
 | 
			
		|||
			{
 | 
			
		||||
				PORTD = ((PORTD & ~LEDS_ALL_LEDS) | LEDMask);
 | 
			
		||||
			}
 | 
			
		||||
			
 | 
			
		||||
 | 
			
		||||
			static inline void LEDs_ChangeLEDs(const uint8_t LEDMask,
 | 
			
		||||
			                                   const uint8_t ActiveMask)
 | 
			
		||||
			{
 | 
			
		||||
				PORTD = ((PORTD & ~LEDMask) | ActiveMask);
 | 
			
		||||
			}
 | 
			
		||||
			
 | 
			
		||||
 | 
			
		||||
			static inline void LEDs_ToggleLEDs(const uint8_t LEDMask)
 | 
			
		||||
			{
 | 
			
		||||
				PORTD ^= LEDMask;
 | 
			
		||||
| 
						 | 
				
			
			@ -131,7 +131,8 @@
 | 
			
		|||
		#if defined(__cplusplus)
 | 
			
		||||
			}
 | 
			
		||||
		#endif
 | 
			
		||||
	
 | 
			
		||||
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
/** @} */
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,7 +1,7 @@
 | 
			
		|||
/*
 | 
			
		||||
             LUFA Library
 | 
			
		||||
     Copyright (C) Dean Camera, 2010.
 | 
			
		||||
              
 | 
			
		||||
 | 
			
		||||
  dean [at] fourwalledcubicle [dot] com
 | 
			
		||||
      www.fourwalledcubicle.com
 | 
			
		||||
*/
 | 
			
		||||
| 
						 | 
				
			
			@ -9,13 +9,13 @@
 | 
			
		|||
/*
 | 
			
		||||
  Copyright 2010  Dean Camera (dean [at] fourwalledcubicle [dot] com)
 | 
			
		||||
 | 
			
		||||
  Permission to use, copy, modify, distribute, and sell this 
 | 
			
		||||
  Permission to use, copy, modify, distribute, and sell this
 | 
			
		||||
  software and its documentation for any purpose is hereby granted
 | 
			
		||||
  without fee, provided that the above copyright notice appear in 
 | 
			
		||||
  without fee, provided that the above copyright notice appear in
 | 
			
		||||
  all copies and that both that the copyright notice and this
 | 
			
		||||
  permission notice and warranty disclaimer appear in supporting 
 | 
			
		||||
  documentation, and that the name of the author not be used in 
 | 
			
		||||
  advertising or publicity pertaining to distribution of the 
 | 
			
		||||
  permission notice and warranty disclaimer appear in supporting
 | 
			
		||||
  documentation, and that the name of the author not be used in
 | 
			
		||||
  advertising or publicity pertaining to distribution of the
 | 
			
		||||
  software without specific, written prior permission.
 | 
			
		||||
 | 
			
		||||
  The author disclaim all warranties with regard to this
 | 
			
		||||
| 
						 | 
				
			
			@ -57,9 +57,9 @@
 | 
			
		|||
			#define DF_STATUS_COMPMISMATCH                  (1 << 6)
 | 
			
		||||
			#define DF_STATUS_SECTORPROTECTION_ON           (1 << 1)
 | 
			
		||||
			#define DF_STATUS_BINARYPAGESIZE_ON             (1 << 0)
 | 
			
		||||
			
 | 
			
		||||
 | 
			
		||||
			#define DF_MANUFACTURER_ATMEL                   0x1F
 | 
			
		||||
		
 | 
			
		||||
 | 
			
		||||
			#define DF_CMD_GETSTATUS                        0xD7
 | 
			
		||||
			#define DF_CMD_POWERDOWN                        0xB9
 | 
			
		||||
			#define DF_CMD_WAKEUP                           0xAB
 | 
			
		||||
| 
						 | 
				
			
			@ -70,12 +70,12 @@
 | 
			
		|||
			#define DF_CMD_MAINMEMTOBUFF2COMP               0x61
 | 
			
		||||
			#define DF_CMD_AUTOREWRITEBUFF1                 0x58
 | 
			
		||||
			#define DF_CMD_AUTOREWRITEBUFF2                 0x59
 | 
			
		||||
			
 | 
			
		||||
 | 
			
		||||
			#define DF_CMD_MAINMEMPAGEREAD                  0xD2
 | 
			
		||||
			#define DF_CMD_CONTARRAYREAD_LF                 0x03
 | 
			
		||||
			#define DF_CMD_BUFF1READ_LF                     0xD1
 | 
			
		||||
			#define DF_CMD_BUFF2READ_LF                     0xD3
 | 
			
		||||
			
 | 
			
		||||
 | 
			
		||||
			#define DF_CMD_BUFF1WRITE                       0x84
 | 
			
		||||
			#define DF_CMD_BUFF2WRITE                       0x87
 | 
			
		||||
			#define DF_CMD_BUFF1TOMAINMEMWITHERASE          0x83
 | 
			
		||||
| 
						 | 
				
			
			@ -84,7 +84,7 @@
 | 
			
		|||
			#define DF_CMD_BUFF2TOMAINMEM                   0x89
 | 
			
		||||
			#define DF_CMD_MAINMEMPAGETHROUGHBUFF1          0x82
 | 
			
		||||
			#define DF_CMD_MAINMEMPAGETHROUGHBUFF2          0x85
 | 
			
		||||
			
 | 
			
		||||
 | 
			
		||||
			#define DF_CMD_PAGEERASE                        0x81
 | 
			
		||||
			#define DF_CMD_BLOCKERASE                       0x50
 | 
			
		||||
			#define DF_CMD_SECTORERASE                      0x7C
 | 
			
		||||
| 
						 | 
				
			
			@ -94,15 +94,16 @@
 | 
			
		|||
			#define DF_CMD_CHIPERASE_BYTE2                  0x94
 | 
			
		||||
			#define DF_CMD_CHIPERASE_BYTE3                  0x80
 | 
			
		||||
			#define DF_CMD_CHIPERASE_BYTE4                  0x9A
 | 
			
		||||
			
 | 
			
		||||
 | 
			
		||||
			#define DF_CMD_SECTORPROTECTIONOFF              ((char[]){0x3D, 0x2A, 0x7F, 0x9A})
 | 
			
		||||
			#define DF_CMD_SECTORPROTECTIONOFF_BYTE1        0x3D
 | 
			
		||||
			#define DF_CMD_SECTORPROTECTIONOFF_BYTE2        0x2A
 | 
			
		||||
			#define DF_CMD_SECTORPROTECTIONOFF_BYTE3        0x7F
 | 
			
		||||
			#define DF_CMD_SECTORPROTECTIONOFF_BYTE4        0x9A
 | 
			
		||||
			
 | 
			
		||||
 | 
			
		||||
			#define DF_CMD_READMANUFACTURERDEVICEINFO       0x9F
 | 
			
		||||
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
/** @} */
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,7 +1,7 @@
 | 
			
		|||
/*
 | 
			
		||||
             LUFA Library
 | 
			
		||||
     Copyright (C) Dean Camera, 2010.
 | 
			
		||||
              
 | 
			
		||||
 | 
			
		||||
  dean [at] fourwalledcubicle [dot] com
 | 
			
		||||
      www.fourwalledcubicle.com
 | 
			
		||||
*/
 | 
			
		||||
| 
						 | 
				
			
			@ -9,13 +9,13 @@
 | 
			
		|||
/*
 | 
			
		||||
  Copyright 2010  Dean Camera (dean [at] fourwalledcubicle [dot] com)
 | 
			
		||||
 | 
			
		||||
  Permission to use, copy, modify, distribute, and sell this 
 | 
			
		||||
  Permission to use, copy, modify, distribute, and sell this
 | 
			
		||||
  software and its documentation for any purpose is hereby granted
 | 
			
		||||
  without fee, provided that the above copyright notice appear in 
 | 
			
		||||
  without fee, provided that the above copyright notice appear in
 | 
			
		||||
  all copies and that both that the copyright notice and this
 | 
			
		||||
  permission notice and warranty disclaimer appear in supporting 
 | 
			
		||||
  documentation, and that the name of the author not be used in 
 | 
			
		||||
  advertising or publicity pertaining to distribution of the 
 | 
			
		||||
  permission notice and warranty disclaimer appear in supporting
 | 
			
		||||
  documentation, and that the name of the author not be used in
 | 
			
		||||
  advertising or publicity pertaining to distribution of the
 | 
			
		||||
  software without specific, written prior permission.
 | 
			
		||||
 | 
			
		||||
  The author disclaim all warranties with regard to this
 | 
			
		||||
| 
						 | 
				
			
			@ -72,12 +72,12 @@
 | 
			
		|||
		#if !defined(__INCLUDE_FROM_BUTTONS_H)
 | 
			
		||||
			#error Do not include this file directly. Include LUFA/Drivers/Board/Buttons.h instead.
 | 
			
		||||
		#endif
 | 
			
		||||
		
 | 
			
		||||
 | 
			
		||||
	/* Public Interface - May be used in end-application: */
 | 
			
		||||
		/* Macros: */
 | 
			
		||||
			/** Button mask for the first button on the board. */
 | 
			
		||||
			#define BUTTONS_BUTTON1      (1 << 7)
 | 
			
		||||
	
 | 
			
		||||
 | 
			
		||||
		/* Inline Functions: */
 | 
			
		||||
		#if !defined(__DOXYGEN__)
 | 
			
		||||
			static inline void Buttons_Init(void)
 | 
			
		||||
| 
						 | 
				
			
			@ -97,7 +97,8 @@
 | 
			
		|||
		#if defined(__cplusplus)
 | 
			
		||||
			}
 | 
			
		||||
		#endif
 | 
			
		||||
			
 | 
			
		||||
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
/** @} */
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,7 +1,7 @@
 | 
			
		|||
/*
 | 
			
		||||
             LUFA Library
 | 
			
		||||
     Copyright (C) Dean Camera, 2010.
 | 
			
		||||
              
 | 
			
		||||
 | 
			
		||||
  dean [at] fourwalledcubicle [dot] com
 | 
			
		||||
      www.fourwalledcubicle.com
 | 
			
		||||
*/
 | 
			
		||||
| 
						 | 
				
			
			@ -9,13 +9,13 @@
 | 
			
		|||
/*
 | 
			
		||||
  Copyright 2010  Dean Camera (dean [at] fourwalledcubicle [dot] com)
 | 
			
		||||
 | 
			
		||||
  Permission to use, copy, modify, distribute, and sell this 
 | 
			
		||||
  Permission to use, copy, modify, distribute, and sell this
 | 
			
		||||
  software and its documentation for any purpose is hereby granted
 | 
			
		||||
  without fee, provided that the above copyright notice appear in 
 | 
			
		||||
  without fee, provided that the above copyright notice appear in
 | 
			
		||||
  all copies and that both that the copyright notice and this
 | 
			
		||||
  permission notice and warranty disclaimer appear in supporting 
 | 
			
		||||
  documentation, and that the name of the author not be used in 
 | 
			
		||||
  advertising or publicity pertaining to distribution of the 
 | 
			
		||||
  permission notice and warranty disclaimer appear in supporting
 | 
			
		||||
  documentation, and that the name of the author not be used in
 | 
			
		||||
  advertising or publicity pertaining to distribution of the
 | 
			
		||||
  software without specific, written prior permission.
 | 
			
		||||
 | 
			
		||||
  The author disclaim all warranties with regard to this
 | 
			
		||||
| 
						 | 
				
			
			@ -77,7 +77,7 @@
 | 
			
		|||
 | 
			
		||||
			/** Mask for the first dataflash chip selected. */
 | 
			
		||||
			#define DATAFLASH_CHIP1                      0
 | 
			
		||||
			
 | 
			
		||||
 | 
			
		||||
			/** Internal main memory page size for the board's dataflash IC. */
 | 
			
		||||
			#define DATAFLASH_PAGE_SIZE                  1024
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -93,7 +93,7 @@
 | 
			
		|||
				DATAFLASH_CHIPCS_DDR  |= DATAFLASH_CHIPCS_MASK;
 | 
			
		||||
				DATAFLASH_CHIPCS_PORT |= DATAFLASH_CHIPCS_MASK;
 | 
			
		||||
			}
 | 
			
		||||
			
 | 
			
		||||
 | 
			
		||||
			/** Determines the currently selected dataflash chip.
 | 
			
		||||
			 *
 | 
			
		||||
			 *  \return Mask of the currently selected Dataflash chip, either \ref DATAFLASH_NO_CHIP if no chip is selected
 | 
			
		||||
| 
						 | 
				
			
			@ -135,7 +135,7 @@
 | 
			
		|||
			static inline void Dataflash_SelectChipFromPage(const uint16_t PageAddress)
 | 
			
		||||
			{
 | 
			
		||||
				Dataflash_DeselectChip();
 | 
			
		||||
				
 | 
			
		||||
 | 
			
		||||
				if (PageAddress >= DATAFLASH_PAGES)
 | 
			
		||||
				  return;
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -148,7 +148,7 @@
 | 
			
		|||
			static inline void Dataflash_ToggleSelectedChipCS(void)
 | 
			
		||||
			{
 | 
			
		||||
				uint8_t SelectedChipMask = Dataflash_GetSelectedChip();
 | 
			
		||||
					
 | 
			
		||||
 | 
			
		||||
				Dataflash_DeselectChip();
 | 
			
		||||
				Dataflash_SelectChip(SelectedChipMask);
 | 
			
		||||
			}
 | 
			
		||||
| 
						 | 
				
			
			@ -161,7 +161,7 @@
 | 
			
		|||
				Dataflash_ToggleSelectedChipCS();
 | 
			
		||||
				Dataflash_SendByte(DF_CMD_GETSTATUS);
 | 
			
		||||
				while (!(Dataflash_ReceiveByte() & DF_STATUS_READY));
 | 
			
		||||
				Dataflash_ToggleSelectedChipCS();				
 | 
			
		||||
				Dataflash_ToggleSelectedChipCS();
 | 
			
		||||
			}
 | 
			
		||||
 | 
			
		||||
			/** Sends a set of page and buffer address bytes to the currently selected dataflash IC, for use with
 | 
			
		||||
| 
						 | 
				
			
			@ -172,12 +172,13 @@
 | 
			
		|||
			 */
 | 
			
		||||
			static inline void Dataflash_SendAddressBytes(uint16_t PageAddress,
 | 
			
		||||
			                                              const uint16_t BufferByte)
 | 
			
		||||
			{	
 | 
			
		||||
			{
 | 
			
		||||
				Dataflash_SendByte(PageAddress >> 5);
 | 
			
		||||
				Dataflash_SendByte((PageAddress << 3) | (BufferByte >> 8));
 | 
			
		||||
				Dataflash_SendByte(BufferByte);
 | 
			
		||||
			}
 | 
			
		||||
			
 | 
			
		||||
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
/** @} */
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,7 +1,7 @@
 | 
			
		|||
/*
 | 
			
		||||
             LUFA Library
 | 
			
		||||
     Copyright (C) Dean Camera, 2010.
 | 
			
		||||
              
 | 
			
		||||
 | 
			
		||||
  dean [at] fourwalledcubicle [dot] com
 | 
			
		||||
      www.fourwalledcubicle.com
 | 
			
		||||
*/
 | 
			
		||||
| 
						 | 
				
			
			@ -9,13 +9,13 @@
 | 
			
		|||
/*
 | 
			
		||||
  Copyright 2010  Dean Camera (dean [at] fourwalledcubicle [dot] com)
 | 
			
		||||
 | 
			
		||||
  Permission to use, copy, modify, distribute, and sell this 
 | 
			
		||||
  Permission to use, copy, modify, distribute, and sell this
 | 
			
		||||
  software and its documentation for any purpose is hereby granted
 | 
			
		||||
  without fee, provided that the above copyright notice appear in 
 | 
			
		||||
  without fee, provided that the above copyright notice appear in
 | 
			
		||||
  all copies and that both that the copyright notice and this
 | 
			
		||||
  permission notice and warranty disclaimer appear in supporting 
 | 
			
		||||
  documentation, and that the name of the author not be used in 
 | 
			
		||||
  advertising or publicity pertaining to distribution of the 
 | 
			
		||||
  permission notice and warranty disclaimer appear in supporting
 | 
			
		||||
  documentation, and that the name of the author not be used in
 | 
			
		||||
  advertising or publicity pertaining to distribution of the
 | 
			
		||||
  software without specific, written prior permission.
 | 
			
		||||
 | 
			
		||||
  The author disclaim all warranties with regard to this
 | 
			
		||||
| 
						 | 
				
			
			@ -47,7 +47,7 @@
 | 
			
		|||
 *
 | 
			
		||||
 *  @{
 | 
			
		||||
 */
 | 
			
		||||
 
 | 
			
		||||
 | 
			
		||||
#ifndef __JOYSTICK_STK526_H__
 | 
			
		||||
#define __JOYSTICK_STK526_H__
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -71,7 +71,7 @@
 | 
			
		|||
		/* Macros: */
 | 
			
		||||
			#define JOY_BMASK                 ((1 << 0) | (1 << 4) | (1 << 5) | (1 << 6) | (1 << 7))
 | 
			
		||||
	#endif
 | 
			
		||||
	
 | 
			
		||||
 | 
			
		||||
	/* Public Interface - May be used in end-application: */
 | 
			
		||||
		/* Macros: */
 | 
			
		||||
			/** Mask for the joystick being pushed in the left direction. */
 | 
			
		||||
| 
						 | 
				
			
			@ -88,7 +88,7 @@
 | 
			
		|||
 | 
			
		||||
			/** Mask for the joystick being pushed inward. */
 | 
			
		||||
			#define JOY_PRESS                 (1 << 0)
 | 
			
		||||
			
 | 
			
		||||
 | 
			
		||||
		/* Inline Functions: */
 | 
			
		||||
		#if !defined(__DOXYGEN__)
 | 
			
		||||
			static inline void Joystick_Init(void)
 | 
			
		||||
| 
						 | 
				
			
			@ -97,7 +97,7 @@
 | 
			
		|||
 | 
			
		||||
				PORTB |= JOY_BMASK;
 | 
			
		||||
			}
 | 
			
		||||
			
 | 
			
		||||
 | 
			
		||||
			static inline uint8_t Joystick_GetStatus(void) ATTR_WARN_UNUSED_RESULT;
 | 
			
		||||
			static inline uint8_t Joystick_GetStatus(void)
 | 
			
		||||
			{
 | 
			
		||||
| 
						 | 
				
			
			@ -109,7 +109,8 @@
 | 
			
		|||
		#if defined(__cplusplus)
 | 
			
		||||
			}
 | 
			
		||||
		#endif
 | 
			
		||||
	
 | 
			
		||||
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
/** @} */
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,7 +1,7 @@
 | 
			
		|||
/*
 | 
			
		||||
             LUFA Library
 | 
			
		||||
     Copyright (C) Dean Camera, 2010.
 | 
			
		||||
              
 | 
			
		||||
 | 
			
		||||
  dean [at] fourwalledcubicle [dot] com
 | 
			
		||||
      www.fourwalledcubicle.com
 | 
			
		||||
*/
 | 
			
		||||
| 
						 | 
				
			
			@ -9,13 +9,13 @@
 | 
			
		|||
/*
 | 
			
		||||
  Copyright 2010  Dean Camera (dean [at] fourwalledcubicle [dot] com)
 | 
			
		||||
 | 
			
		||||
  Permission to use, copy, modify, distribute, and sell this 
 | 
			
		||||
  Permission to use, copy, modify, distribute, and sell this
 | 
			
		||||
  software and its documentation for any purpose is hereby granted
 | 
			
		||||
  without fee, provided that the above copyright notice appear in 
 | 
			
		||||
  without fee, provided that the above copyright notice appear in
 | 
			
		||||
  all copies and that both that the copyright notice and this
 | 
			
		||||
  permission notice and warranty disclaimer appear in supporting 
 | 
			
		||||
  documentation, and that the name of the author not be used in 
 | 
			
		||||
  advertising or publicity pertaining to distribution of the 
 | 
			
		||||
  permission notice and warranty disclaimer appear in supporting
 | 
			
		||||
  documentation, and that the name of the author not be used in
 | 
			
		||||
  advertising or publicity pertaining to distribution of the
 | 
			
		||||
  software without specific, written prior permission.
 | 
			
		||||
 | 
			
		||||
  The author disclaim all warranties with regard to this
 | 
			
		||||
| 
						 | 
				
			
			@ -47,7 +47,7 @@
 | 
			
		|||
 *
 | 
			
		||||
 *  @{
 | 
			
		||||
 */
 | 
			
		||||
 
 | 
			
		||||
 | 
			
		||||
#ifndef __LEDS_STK526_H__
 | 
			
		||||
#define __LEDS_STK526_H__
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -93,7 +93,7 @@
 | 
			
		|||
				DDRD  |=  LEDS_ALL_LEDS;
 | 
			
		||||
				PORTD &= ~LEDS_ALL_LEDS;
 | 
			
		||||
			}
 | 
			
		||||
			
 | 
			
		||||
 | 
			
		||||
			static inline void LEDs_TurnOnLEDs(const uint8_t LEDMask)
 | 
			
		||||
			{
 | 
			
		||||
				PORTD |= LEDMask;
 | 
			
		||||
| 
						 | 
				
			
			@ -108,30 +108,31 @@
 | 
			
		|||
			{
 | 
			
		||||
				PORTD = ((PORTD & ~LEDS_ALL_LEDS) | LEDMask);
 | 
			
		||||
			}
 | 
			
		||||
			
 | 
			
		||||
 | 
			
		||||
			static inline void LEDs_ChangeLEDs(const uint8_t LEDMask,
 | 
			
		||||
			                                   const uint8_t ActiveMask)
 | 
			
		||||
			{
 | 
			
		||||
				PORTD = ((PORTD & ~LEDMask) | ActiveMask);
 | 
			
		||||
			}
 | 
			
		||||
			
 | 
			
		||||
 | 
			
		||||
			static inline void LEDs_ToggleLEDs(const uint8_t LEDMask)
 | 
			
		||||
			{
 | 
			
		||||
				PORTD ^= LEDMask;
 | 
			
		||||
			}
 | 
			
		||||
			
 | 
			
		||||
 | 
			
		||||
			static inline uint8_t LEDs_GetLEDs(void) ATTR_WARN_UNUSED_RESULT;
 | 
			
		||||
			static inline uint8_t LEDs_GetLEDs(void)
 | 
			
		||||
			{
 | 
			
		||||
				return (PORTD & LEDS_ALL_LEDS);
 | 
			
		||||
			}
 | 
			
		||||
		#endif
 | 
			
		||||
		
 | 
			
		||||
 | 
			
		||||
	/* Disable C linkage for C++ Compilers: */
 | 
			
		||||
		#if defined(__cplusplus)
 | 
			
		||||
			}
 | 
			
		||||
		#endif
 | 
			
		||||
	
 | 
			
		||||
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
/** @} */
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,7 +1,7 @@
 | 
			
		|||
/*
 | 
			
		||||
             LUFA Library
 | 
			
		||||
     Copyright (C) Dean Camera, 2010.
 | 
			
		||||
              
 | 
			
		||||
 | 
			
		||||
  dean [at] fourwalledcubicle [dot] com
 | 
			
		||||
      www.fourwalledcubicle.com
 | 
			
		||||
*/
 | 
			
		||||
| 
						 | 
				
			
			@ -9,13 +9,13 @@
 | 
			
		|||
/*
 | 
			
		||||
  Copyright 2010  Dean Camera (dean [at] fourwalledcubicle [dot] com)
 | 
			
		||||
 | 
			
		||||
  Permission to use, copy, modify, distribute, and sell this 
 | 
			
		||||
  Permission to use, copy, modify, distribute, and sell this
 | 
			
		||||
  software and its documentation for any purpose is hereby granted
 | 
			
		||||
  without fee, provided that the above copyright notice appear in 
 | 
			
		||||
  without fee, provided that the above copyright notice appear in
 | 
			
		||||
  all copies and that both that the copyright notice and this
 | 
			
		||||
  permission notice and warranty disclaimer appear in supporting 
 | 
			
		||||
  documentation, and that the name of the author not be used in 
 | 
			
		||||
  advertising or publicity pertaining to distribution of the 
 | 
			
		||||
  permission notice and warranty disclaimer appear in supporting
 | 
			
		||||
  documentation, and that the name of the author not be used in
 | 
			
		||||
  advertising or publicity pertaining to distribution of the
 | 
			
		||||
  software without specific, written prior permission.
 | 
			
		||||
 | 
			
		||||
  The author disclaim all warranties with regard to this
 | 
			
		||||
| 
						 | 
				
			
			@ -47,7 +47,7 @@
 | 
			
		|||
 *
 | 
			
		||||
 *  @{
 | 
			
		||||
 */
 | 
			
		||||
 
 | 
			
		||||
 | 
			
		||||
#ifndef __LEDS_TEENSY_H__
 | 
			
		||||
#define __LEDS_TEENSY_H__
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -76,7 +76,7 @@
 | 
			
		|||
 | 
			
		||||
			/** LED mask for none of the board LEDs. */
 | 
			
		||||
			#define LEDS_NO_LEDS     0
 | 
			
		||||
			
 | 
			
		||||
 | 
			
		||||
		/* Inline Functions: */
 | 
			
		||||
		#if !defined(__DOXYGEN__)
 | 
			
		||||
			static inline void LEDs_Init(void)
 | 
			
		||||
| 
						 | 
				
			
			@ -84,7 +84,7 @@
 | 
			
		|||
				DDRD  |= LEDS_ALL_LEDS;
 | 
			
		||||
				PORTD |= LEDS_ALL_LEDS;
 | 
			
		||||
			}
 | 
			
		||||
			
 | 
			
		||||
 | 
			
		||||
			static inline void LEDs_TurnOnLEDs(const uint8_t LEDMask)
 | 
			
		||||
			{
 | 
			
		||||
				PORTD &= ~LEDMask;
 | 
			
		||||
| 
						 | 
				
			
			@ -99,13 +99,13 @@
 | 
			
		|||
			{
 | 
			
		||||
				PORTD = ((PORTD | LEDS_ALL_LEDS) & ~LEDMask);
 | 
			
		||||
			}
 | 
			
		||||
			
 | 
			
		||||
 | 
			
		||||
			static inline void LEDs_ChangeLEDs(const uint8_t LEDMask,
 | 
			
		||||
			                                   const uint8_t ActiveMask)
 | 
			
		||||
			{
 | 
			
		||||
				PORTD = ((PORTD | LEDMask) & ~ActiveMask);
 | 
			
		||||
			}
 | 
			
		||||
			
 | 
			
		||||
 | 
			
		||||
			static inline void LEDs_ToggleLEDs(const uint8_t LEDMask)
 | 
			
		||||
			{
 | 
			
		||||
				PORTD ^= LEDMask;
 | 
			
		||||
| 
						 | 
				
			
			@ -122,7 +122,8 @@
 | 
			
		|||
		#if defined(__cplusplus)
 | 
			
		||||
			}
 | 
			
		||||
		#endif
 | 
			
		||||
	
 | 
			
		||||
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
/** @} */
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,7 +1,7 @@
 | 
			
		|||
/*
 | 
			
		||||
             LUFA Library
 | 
			
		||||
     Copyright (C) Dean Camera, 2010.
 | 
			
		||||
              
 | 
			
		||||
 | 
			
		||||
  dean [at] fourwalledcubicle [dot] com
 | 
			
		||||
      www.fourwalledcubicle.com
 | 
			
		||||
*/
 | 
			
		||||
| 
						 | 
				
			
			@ -9,13 +9,13 @@
 | 
			
		|||
/*
 | 
			
		||||
  Copyright 2010  Dean Camera (dean [at] fourwalledcubicle [dot] com)
 | 
			
		||||
 | 
			
		||||
  Permission to use, copy, modify, distribute, and sell this 
 | 
			
		||||
  Permission to use, copy, modify, distribute, and sell this
 | 
			
		||||
  software and its documentation for any purpose is hereby granted
 | 
			
		||||
  without fee, provided that the above copyright notice appear in 
 | 
			
		||||
  without fee, provided that the above copyright notice appear in
 | 
			
		||||
  all copies and that both that the copyright notice and this
 | 
			
		||||
  permission notice and warranty disclaimer appear in supporting 
 | 
			
		||||
  documentation, and that the name of the author not be used in 
 | 
			
		||||
  advertising or publicity pertaining to distribution of the 
 | 
			
		||||
  permission notice and warranty disclaimer appear in supporting
 | 
			
		||||
  documentation, and that the name of the author not be used in
 | 
			
		||||
  advertising or publicity pertaining to distribution of the
 | 
			
		||||
  software without specific, written prior permission.
 | 
			
		||||
 | 
			
		||||
  The author disclaim all warranties with regard to this
 | 
			
		||||
| 
						 | 
				
			
			@ -58,3 +58,4 @@ int8_t Temperature_GetTemperature(void)
 | 
			
		|||
 | 
			
		||||
	return TEMP_MAX_TEMP;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,7 +1,7 @@
 | 
			
		|||
/*
 | 
			
		||||
             LUFA Library
 | 
			
		||||
     Copyright (C) Dean Camera, 2010.
 | 
			
		||||
              
 | 
			
		||||
 | 
			
		||||
  dean [at] fourwalledcubicle [dot] com
 | 
			
		||||
      www.fourwalledcubicle.com
 | 
			
		||||
*/
 | 
			
		||||
| 
						 | 
				
			
			@ -9,13 +9,13 @@
 | 
			
		|||
/*
 | 
			
		||||
  Copyright 2010  Dean Camera (dean [at] fourwalledcubicle [dot] com)
 | 
			
		||||
 | 
			
		||||
  Permission to use, copy, modify, distribute, and sell this 
 | 
			
		||||
  Permission to use, copy, modify, distribute, and sell this
 | 
			
		||||
  software and its documentation for any purpose is hereby granted
 | 
			
		||||
  without fee, provided that the above copyright notice appear in 
 | 
			
		||||
  without fee, provided that the above copyright notice appear in
 | 
			
		||||
  all copies and that both that the copyright notice and this
 | 
			
		||||
  permission notice and warranty disclaimer appear in supporting 
 | 
			
		||||
  documentation, and that the name of the author not be used in 
 | 
			
		||||
  advertising or publicity pertaining to distribution of the 
 | 
			
		||||
  permission notice and warranty disclaimer appear in supporting
 | 
			
		||||
  documentation, and that the name of the author not be used in
 | 
			
		||||
  advertising or publicity pertaining to distribution of the
 | 
			
		||||
  software without specific, written prior permission.
 | 
			
		||||
 | 
			
		||||
  The author disclaim all warranties with regard to this
 | 
			
		||||
| 
						 | 
				
			
			@ -31,7 +31,7 @@
 | 
			
		|||
/** \file
 | 
			
		||||
 *  \brief Master include file for the board temperature sensor driver.
 | 
			
		||||
 *
 | 
			
		||||
 *  Master include file for the board temperature sensor driver, for the USB boards which contain a temperature sensor. 
 | 
			
		||||
 *  Master include file for the board temperature sensor driver, for the USB boards which contain a temperature sensor.
 | 
			
		||||
 */
 | 
			
		||||
 | 
			
		||||
/** \ingroup Group_BoardDrivers
 | 
			
		||||
| 
						 | 
				
			
			@ -58,7 +58,7 @@
 | 
			
		|||
 | 
			
		||||
		#include "../../Common/Common.h"
 | 
			
		||||
		#include "../Peripheral/ADC.h"
 | 
			
		||||
	
 | 
			
		||||
 | 
			
		||||
		#if (BOARD == BOARD_NONE)
 | 
			
		||||
			#error The Board Temperature Sensor driver cannot be used if the makefile BOARD option is not set.
 | 
			
		||||
		#elif ((BOARD != BOARD_USBKEY) && (BOARD != BOARD_STK525) && \
 | 
			
		||||
| 
						 | 
				
			
			@ -76,7 +76,7 @@
 | 
			
		|||
		/* Macros: */
 | 
			
		||||
			/** ADC channel number for the temperature sensor. */
 | 
			
		||||
			#define TEMP_ADC_CHANNEL       0
 | 
			
		||||
			
 | 
			
		||||
 | 
			
		||||
			/** ADC channel MUX mask for the temperature sensor. */
 | 
			
		||||
			#define TEMP_ADC_CHANNEL_MASK  ADC_CHANNEL0
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -85,7 +85,7 @@
 | 
			
		|||
 | 
			
		||||
			/** Maximum returnable temperature from the \ref Temperature_GetTemperature() function. */
 | 
			
		||||
			#define TEMP_MAX_TEMP          ((TEMP_TABLE_SIZE - 1) + TEMP_TABLE_OFFSET)
 | 
			
		||||
		
 | 
			
		||||
 | 
			
		||||
		/* Inline Functions: */
 | 
			
		||||
			/** Initialises the temperature sensor driver, including setting up the appropriate ADC channel.
 | 
			
		||||
			 *  This must be called before any other temperature sensor routines.
 | 
			
		||||
| 
						 | 
				
			
			@ -118,7 +118,8 @@
 | 
			
		|||
		#if defined(__cplusplus)
 | 
			
		||||
			}
 | 
			
		||||
		#endif
 | 
			
		||||
		
 | 
			
		||||
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
/** @} */
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,7 +1,7 @@
 | 
			
		|||
/*
 | 
			
		||||
             LUFA Library
 | 
			
		||||
     Copyright (C) Dean Camera, 2010.
 | 
			
		||||
              
 | 
			
		||||
 | 
			
		||||
  dean [at] fourwalledcubicle [dot] com
 | 
			
		||||
      www.fourwalledcubicle.com
 | 
			
		||||
*/
 | 
			
		||||
| 
						 | 
				
			
			@ -9,13 +9,13 @@
 | 
			
		|||
/*
 | 
			
		||||
  Copyright 2010  Dean Camera (dean [at] fourwalledcubicle [dot] com)
 | 
			
		||||
 | 
			
		||||
  Permission to use, copy, modify, distribute, and sell this 
 | 
			
		||||
  Permission to use, copy, modify, distribute, and sell this
 | 
			
		||||
  software and its documentation for any purpose is hereby granted
 | 
			
		||||
  without fee, provided that the above copyright notice appear in 
 | 
			
		||||
  without fee, provided that the above copyright notice appear in
 | 
			
		||||
  all copies and that both that the copyright notice and this
 | 
			
		||||
  permission notice and warranty disclaimer appear in supporting 
 | 
			
		||||
  documentation, and that the name of the author not be used in 
 | 
			
		||||
  advertising or publicity pertaining to distribution of the 
 | 
			
		||||
  permission notice and warranty disclaimer appear in supporting
 | 
			
		||||
  documentation, and that the name of the author not be used in
 | 
			
		||||
  advertising or publicity pertaining to distribution of the
 | 
			
		||||
  software without specific, written prior permission.
 | 
			
		||||
 | 
			
		||||
  The author disclaim all warranties with regard to this
 | 
			
		||||
| 
						 | 
				
			
			@ -36,7 +36,7 @@
 | 
			
		|||
 *  \note This file should not be included directly. It is automatically included as needed by the Buttons driver
 | 
			
		||||
 *        dispatch header located in LUFA/Drivers/Board/Buttons.h.
 | 
			
		||||
 */
 | 
			
		||||
 
 | 
			
		||||
 | 
			
		||||
/** \ingroup Group_Buttons
 | 
			
		||||
 *  @defgroup Group_Buttons_UDIP UDIP
 | 
			
		||||
 *
 | 
			
		||||
| 
						 | 
				
			
			@ -66,12 +66,12 @@
 | 
			
		|||
		#if !defined(__INCLUDE_FROM_BUTTONS_H)
 | 
			
		||||
			#error Do not include this file directly. Include LUFA/Drivers/Board/Buttons.h instead.
 | 
			
		||||
		#endif
 | 
			
		||||
		
 | 
			
		||||
 | 
			
		||||
	/* Public Interface - May be used in end-application: */
 | 
			
		||||
		/* Macros: */
 | 
			
		||||
			/** Button mask for the first button on the board. */
 | 
			
		||||
			#define BUTTONS_BUTTON1      (1 << 7)
 | 
			
		||||
	
 | 
			
		||||
 | 
			
		||||
		/* Inline Functions: */
 | 
			
		||||
		#if !defined(__DOXYGEN__)
 | 
			
		||||
			static inline void Buttons_Init(void)
 | 
			
		||||
| 
						 | 
				
			
			@ -91,7 +91,8 @@
 | 
			
		|||
		#if defined(__cplusplus)
 | 
			
		||||
			}
 | 
			
		||||
		#endif
 | 
			
		||||
			
 | 
			
		||||
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
/** @} */
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,7 +1,7 @@
 | 
			
		|||
/*
 | 
			
		||||
             LUFA Library
 | 
			
		||||
     Copyright (C) Dean Camera, 2010.
 | 
			
		||||
              
 | 
			
		||||
 | 
			
		||||
  dean [at] fourwalledcubicle [dot] com
 | 
			
		||||
      www.fourwalledcubicle.com
 | 
			
		||||
*/
 | 
			
		||||
| 
						 | 
				
			
			@ -9,13 +9,13 @@
 | 
			
		|||
/*
 | 
			
		||||
  Copyright 2010  Dean Camera (dean [at] fourwalledcubicle [dot] com)
 | 
			
		||||
 | 
			
		||||
  Permission to use, copy, modify, distribute, and sell this 
 | 
			
		||||
  Permission to use, copy, modify, distribute, and sell this
 | 
			
		||||
  software and its documentation for any purpose is hereby granted
 | 
			
		||||
  without fee, provided that the above copyright notice appear in 
 | 
			
		||||
  without fee, provided that the above copyright notice appear in
 | 
			
		||||
  all copies and that both that the copyright notice and this
 | 
			
		||||
  permission notice and warranty disclaimer appear in supporting 
 | 
			
		||||
  documentation, and that the name of the author not be used in 
 | 
			
		||||
  advertising or publicity pertaining to distribution of the 
 | 
			
		||||
  permission notice and warranty disclaimer appear in supporting
 | 
			
		||||
  documentation, and that the name of the author not be used in
 | 
			
		||||
  advertising or publicity pertaining to distribution of the
 | 
			
		||||
  software without specific, written prior permission.
 | 
			
		||||
 | 
			
		||||
  The author disclaim all warranties with regard to this
 | 
			
		||||
| 
						 | 
				
			
			@ -71,7 +71,7 @@
 | 
			
		|||
		/* Macros: */
 | 
			
		||||
			#define LEDS_PORTB_LEDS       (LEDS_LED1 | LEDS_LED2)
 | 
			
		||||
			#define LEDS_PORTD_LEDS       (LEDS_LED3 | LEDS_LED4)
 | 
			
		||||
			
 | 
			
		||||
 | 
			
		||||
			#define LEDS_PORTD_MASK_SHIFT 1
 | 
			
		||||
	#endif
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -102,7 +102,7 @@
 | 
			
		|||
				DDRB |= LEDS_PORTB_LEDS;
 | 
			
		||||
				DDRD |= (LEDS_PORTD_LEDS << LEDS_PORTD_MASK_SHIFT);
 | 
			
		||||
			}
 | 
			
		||||
			
 | 
			
		||||
 | 
			
		||||
			static inline void LEDs_TurnOnLEDs(const uint8_t LEDMask)
 | 
			
		||||
			{
 | 
			
		||||
				PORTB |= (LEDMask & LEDS_PORTB_LEDS);
 | 
			
		||||
| 
						 | 
				
			
			@ -121,7 +121,7 @@
 | 
			
		|||
				PORTD = (PORTD & ~(LEDS_PORTD_LEDS << LEDS_PORTD_MASK_SHIFT)) |
 | 
			
		||||
				        ((LEDMask & LEDS_PORTD_LEDS) << LEDS_PORTD_MASK_SHIFT);
 | 
			
		||||
			}
 | 
			
		||||
			
 | 
			
		||||
 | 
			
		||||
			static inline void LEDs_ChangeLEDs(const uint8_t LEDMask,
 | 
			
		||||
			                                   const uint8_t ActiveMask)
 | 
			
		||||
			{
 | 
			
		||||
| 
						 | 
				
			
			@ -129,13 +129,13 @@
 | 
			
		|||
				PORTD = (PORTD & ~((LEDMask & LEDS_PORTD_LEDS) << LEDS_PORTD_MASK_SHIFT)) |
 | 
			
		||||
				        ((ActiveMask & LEDS_PORTD_LEDS) << LEDS_PORTD_MASK_SHIFT);
 | 
			
		||||
			}
 | 
			
		||||
			
 | 
			
		||||
 | 
			
		||||
			static inline void LEDs_ToggleLEDs(const uint8_t LEDMask)
 | 
			
		||||
			{
 | 
			
		||||
				PORTB ^= (LEDMask & LEDS_PORTB_LEDS);
 | 
			
		||||
				PORTD ^= ((LEDMask & LEDS_PORTD_LEDS) << LEDS_PORTD_MASK_SHIFT);
 | 
			
		||||
			}
 | 
			
		||||
			
 | 
			
		||||
 | 
			
		||||
			static inline uint8_t LEDs_GetLEDs(void) ATTR_WARN_UNUSED_RESULT;
 | 
			
		||||
			static inline uint8_t LEDs_GetLEDs(void)
 | 
			
		||||
			{
 | 
			
		||||
| 
						 | 
				
			
			@ -147,7 +147,8 @@
 | 
			
		|||
		#if defined(__cplusplus)
 | 
			
		||||
			}
 | 
			
		||||
		#endif
 | 
			
		||||
		
 | 
			
		||||
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
/** @} */
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,7 +1,7 @@
 | 
			
		|||
/*
 | 
			
		||||
             LUFA Library
 | 
			
		||||
     Copyright (C) Dean Camera, 2010.
 | 
			
		||||
              
 | 
			
		||||
 | 
			
		||||
  dean [at] fourwalledcubicle [dot] com
 | 
			
		||||
      www.fourwalledcubicle.com
 | 
			
		||||
*/
 | 
			
		||||
| 
						 | 
				
			
			@ -9,13 +9,13 @@
 | 
			
		|||
/*
 | 
			
		||||
  Copyright 2010  Dean Camera (dean [at] fourwalledcubicle [dot] com)
 | 
			
		||||
 | 
			
		||||
  Permission to use, copy, modify, distribute, and sell this 
 | 
			
		||||
  Permission to use, copy, modify, distribute, and sell this
 | 
			
		||||
  software and its documentation for any purpose is hereby granted
 | 
			
		||||
  without fee, provided that the above copyright notice appear in 
 | 
			
		||||
  without fee, provided that the above copyright notice appear in
 | 
			
		||||
  all copies and that both that the copyright notice and this
 | 
			
		||||
  permission notice and warranty disclaimer appear in supporting 
 | 
			
		||||
  documentation, and that the name of the author not be used in 
 | 
			
		||||
  advertising or publicity pertaining to distribution of the 
 | 
			
		||||
  permission notice and warranty disclaimer appear in supporting
 | 
			
		||||
  documentation, and that the name of the author not be used in
 | 
			
		||||
  advertising or publicity pertaining to distribution of the
 | 
			
		||||
  software without specific, written prior permission.
 | 
			
		||||
 | 
			
		||||
  The author disclaim all warranties with regard to this
 | 
			
		||||
| 
						 | 
				
			
			@ -85,7 +85,7 @@
 | 
			
		|||
				DDRD  |= LEDS_ALL_LEDS;
 | 
			
		||||
				PORTD |= LEDS_ALL_LEDS;
 | 
			
		||||
			}
 | 
			
		||||
			
 | 
			
		||||
 | 
			
		||||
			static inline void LEDs_TurnOnLEDs(const uint8_t LEDMask)
 | 
			
		||||
			{
 | 
			
		||||
				PORTD &= ~LEDMask;
 | 
			
		||||
| 
						 | 
				
			
			@ -100,7 +100,7 @@
 | 
			
		|||
			{
 | 
			
		||||
				PORTD = ((PORTD | LEDS_ALL_LEDS) & ~LEDMask);
 | 
			
		||||
			}
 | 
			
		||||
			
 | 
			
		||||
 | 
			
		||||
			static inline void LEDs_ChangeLEDs(const uint8_t LEDMask,
 | 
			
		||||
			                                   const uint8_t ActiveMask)
 | 
			
		||||
			{
 | 
			
		||||
| 
						 | 
				
			
			@ -111,7 +111,7 @@
 | 
			
		|||
			{
 | 
			
		||||
				PORTD ^= LEDMask;
 | 
			
		||||
			}
 | 
			
		||||
			
 | 
			
		||||
 | 
			
		||||
			static inline uint8_t LEDs_GetLEDs(void) ATTR_WARN_UNUSED_RESULT;
 | 
			
		||||
			static inline uint8_t LEDs_GetLEDs(void)
 | 
			
		||||
			{
 | 
			
		||||
| 
						 | 
				
			
			@ -123,7 +123,8 @@
 | 
			
		|||
		#if defined(__cplusplus)
 | 
			
		||||
			}
 | 
			
		||||
		#endif
 | 
			
		||||
		
 | 
			
		||||
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
/** @} */
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,7 +1,7 @@
 | 
			
		|||
/*
 | 
			
		||||
             LUFA Library
 | 
			
		||||
     Copyright (C) Dean Camera, 2010.
 | 
			
		||||
              
 | 
			
		||||
 | 
			
		||||
  dean [at] fourwalledcubicle [dot] com
 | 
			
		||||
      www.fourwalledcubicle.com
 | 
			
		||||
*/
 | 
			
		||||
| 
						 | 
				
			
			@ -9,13 +9,13 @@
 | 
			
		|||
/*
 | 
			
		||||
  Copyright 2010  Dean Camera (dean [at] fourwalledcubicle [dot] com)
 | 
			
		||||
 | 
			
		||||
  Permission to use, copy, modify, distribute, and sell this 
 | 
			
		||||
  Permission to use, copy, modify, distribute, and sell this
 | 
			
		||||
  software and its documentation for any purpose is hereby granted
 | 
			
		||||
  without fee, provided that the above copyright notice appear in 
 | 
			
		||||
  without fee, provided that the above copyright notice appear in
 | 
			
		||||
  all copies and that both that the copyright notice and this
 | 
			
		||||
  permission notice and warranty disclaimer appear in supporting 
 | 
			
		||||
  documentation, and that the name of the author not be used in 
 | 
			
		||||
  advertising or publicity pertaining to distribution of the 
 | 
			
		||||
  permission notice and warranty disclaimer appear in supporting
 | 
			
		||||
  documentation, and that the name of the author not be used in
 | 
			
		||||
  advertising or publicity pertaining to distribution of the
 | 
			
		||||
  software without specific, written prior permission.
 | 
			
		||||
 | 
			
		||||
  The author disclaim all warranties with regard to this
 | 
			
		||||
| 
						 | 
				
			
			@ -36,7 +36,7 @@
 | 
			
		|||
 *  \note This file should not be included directly. It is automatically included as needed by the Buttons driver
 | 
			
		||||
 *        dispatch header located in LUFA/Drivers/Board/Buttons.h.
 | 
			
		||||
 */
 | 
			
		||||
 
 | 
			
		||||
 | 
			
		||||
/** \ingroup Group_Buttons
 | 
			
		||||
 *  @defgroup Group_Buttons_USBFOO USBFOO
 | 
			
		||||
 *
 | 
			
		||||
| 
						 | 
				
			
			@ -66,12 +66,12 @@
 | 
			
		|||
		#if !defined(__INCLUDE_FROM_BUTTONS_H)
 | 
			
		||||
			#error Do not include this file directly. Include LUFA/Drivers/Board/Buttons.h instead.
 | 
			
		||||
		#endif
 | 
			
		||||
		
 | 
			
		||||
 | 
			
		||||
	/* Public Interface - May be used in end-application: */
 | 
			
		||||
		/* Macros: */
 | 
			
		||||
			/** Button mask for the first button on the board. */
 | 
			
		||||
			#define BUTTONS_BUTTON1      (1 << 7)
 | 
			
		||||
	
 | 
			
		||||
 | 
			
		||||
		/* Inline Functions: */
 | 
			
		||||
		#if !defined(__DOXYGEN__)
 | 
			
		||||
			static inline void Buttons_Init(void)
 | 
			
		||||
| 
						 | 
				
			
			@ -91,7 +91,8 @@
 | 
			
		|||
		#if defined(__cplusplus)
 | 
			
		||||
			}
 | 
			
		||||
		#endif
 | 
			
		||||
			
 | 
			
		||||
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
/** @} */
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,7 +1,7 @@
 | 
			
		|||
/*
 | 
			
		||||
             LUFA Library
 | 
			
		||||
     Copyright (C) Dean Camera, 2010.
 | 
			
		||||
              
 | 
			
		||||
 | 
			
		||||
  dean [at] fourwalledcubicle [dot] com
 | 
			
		||||
      www.fourwalledcubicle.com
 | 
			
		||||
*/
 | 
			
		||||
| 
						 | 
				
			
			@ -9,13 +9,13 @@
 | 
			
		|||
/*
 | 
			
		||||
  Copyright 2010  Dean Camera (dean [at] fourwalledcubicle [dot] com)
 | 
			
		||||
 | 
			
		||||
  Permission to use, copy, modify, distribute, and sell this 
 | 
			
		||||
  Permission to use, copy, modify, distribute, and sell this
 | 
			
		||||
  software and its documentation for any purpose is hereby granted
 | 
			
		||||
  without fee, provided that the above copyright notice appear in 
 | 
			
		||||
  without fee, provided that the above copyright notice appear in
 | 
			
		||||
  all copies and that both that the copyright notice and this
 | 
			
		||||
  permission notice and warranty disclaimer appear in supporting 
 | 
			
		||||
  documentation, and that the name of the author not be used in 
 | 
			
		||||
  advertising or publicity pertaining to distribution of the 
 | 
			
		||||
  permission notice and warranty disclaimer appear in supporting
 | 
			
		||||
  documentation, and that the name of the author not be used in
 | 
			
		||||
  advertising or publicity pertaining to distribution of the
 | 
			
		||||
  software without specific, written prior permission.
 | 
			
		||||
 | 
			
		||||
  The author disclaim all warranties with regard to this
 | 
			
		||||
| 
						 | 
				
			
			@ -47,7 +47,7 @@
 | 
			
		|||
 *
 | 
			
		||||
 *  @{
 | 
			
		||||
 */
 | 
			
		||||
 
 | 
			
		||||
 | 
			
		||||
#ifndef __LEDS_USBFOO_H__
 | 
			
		||||
#define __LEDS_USBFOO_H__
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -76,7 +76,7 @@
 | 
			
		|||
 | 
			
		||||
			/** LED mask for none of the board LEDs. */
 | 
			
		||||
			#define LEDS_NO_LEDS     0
 | 
			
		||||
			
 | 
			
		||||
 | 
			
		||||
		/* Inline Functions: */
 | 
			
		||||
		#if !defined(__DOXYGEN__)
 | 
			
		||||
			static inline void LEDs_Init(void)
 | 
			
		||||
| 
						 | 
				
			
			@ -84,7 +84,7 @@
 | 
			
		|||
				DDRD  |= LEDS_ALL_LEDS;
 | 
			
		||||
				PORTD |= LEDS_ALL_LEDS;
 | 
			
		||||
			}
 | 
			
		||||
			
 | 
			
		||||
 | 
			
		||||
			static inline void LEDs_TurnOnLEDs(const uint8_t LEDMask)
 | 
			
		||||
			{
 | 
			
		||||
				PORTD &= ~LEDMask;
 | 
			
		||||
| 
						 | 
				
			
			@ -99,13 +99,13 @@
 | 
			
		|||
			{
 | 
			
		||||
				PORTD = ((PORTD | LEDS_ALL_LEDS) & ~LEDMask);
 | 
			
		||||
			}
 | 
			
		||||
			
 | 
			
		||||
 | 
			
		||||
			static inline void LEDs_ChangeLEDs(const uint8_t LEDMask,
 | 
			
		||||
			                                   const uint8_t ActiveMask)
 | 
			
		||||
			{
 | 
			
		||||
				PORTD = ((PORTD | LEDMask) & ~ActiveMask);
 | 
			
		||||
			}
 | 
			
		||||
			
 | 
			
		||||
 | 
			
		||||
			static inline void LEDs_ToggleLEDs(const uint8_t LEDMask)
 | 
			
		||||
			{
 | 
			
		||||
				PORTD ^= LEDMask;
 | 
			
		||||
| 
						 | 
				
			
			@ -122,7 +122,8 @@
 | 
			
		|||
		#if defined(__cplusplus)
 | 
			
		||||
			}
 | 
			
		||||
		#endif
 | 
			
		||||
	
 | 
			
		||||
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
/** @} */
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,7 +1,7 @@
 | 
			
		|||
/*
 | 
			
		||||
             LUFA Library
 | 
			
		||||
     Copyright (C) Dean Camera, 2010.
 | 
			
		||||
              
 | 
			
		||||
 | 
			
		||||
  dean [at] fourwalledcubicle [dot] com
 | 
			
		||||
      www.fourwalledcubicle.com
 | 
			
		||||
*/
 | 
			
		||||
| 
						 | 
				
			
			@ -9,13 +9,13 @@
 | 
			
		|||
/*
 | 
			
		||||
  Copyright 2010  Dean Camera (dean [at] fourwalledcubicle [dot] com)
 | 
			
		||||
 | 
			
		||||
  Permission to use, copy, modify, distribute, and sell this 
 | 
			
		||||
  Permission to use, copy, modify, distribute, and sell this
 | 
			
		||||
  software and its documentation for any purpose is hereby granted
 | 
			
		||||
  without fee, provided that the above copyright notice appear in 
 | 
			
		||||
  without fee, provided that the above copyright notice appear in
 | 
			
		||||
  all copies and that both that the copyright notice and this
 | 
			
		||||
  permission notice and warranty disclaimer appear in supporting 
 | 
			
		||||
  documentation, and that the name of the author not be used in 
 | 
			
		||||
  advertising or publicity pertaining to distribution of the 
 | 
			
		||||
  permission notice and warranty disclaimer appear in supporting
 | 
			
		||||
  documentation, and that the name of the author not be used in
 | 
			
		||||
  advertising or publicity pertaining to distribution of the
 | 
			
		||||
  software without specific, written prior permission.
 | 
			
		||||
 | 
			
		||||
  The author disclaim all warranties with regard to this
 | 
			
		||||
| 
						 | 
				
			
			@ -47,7 +47,7 @@
 | 
			
		|||
 *
 | 
			
		||||
 *  @{
 | 
			
		||||
 */
 | 
			
		||||
 
 | 
			
		||||
 | 
			
		||||
#ifndef __DATAFLASH_CMDS_H__
 | 
			
		||||
#define __DATAFLASH_CMDS_H__
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -57,9 +57,9 @@
 | 
			
		|||
			#define DF_STATUS_COMPMISMATCH                  (1 << 6)
 | 
			
		||||
			#define DF_STATUS_SECTORPROTECTION_ON           (1 << 1)
 | 
			
		||||
			#define DF_STATUS_BINARYPAGESIZE_ON             (1 << 0)
 | 
			
		||||
			
 | 
			
		||||
 | 
			
		||||
			#define DF_MANUFACTURER_ATMEL                   0x1F
 | 
			
		||||
		
 | 
			
		||||
 | 
			
		||||
			#define DF_CMD_GETSTATUS                        0xD7
 | 
			
		||||
			#define DF_CMD_POWERDOWN                        0xB9
 | 
			
		||||
			#define DF_CMD_WAKEUP                           0xAB
 | 
			
		||||
| 
						 | 
				
			
			@ -70,12 +70,12 @@
 | 
			
		|||
			#define DF_CMD_MAINMEMTOBUFF2COMP               0x61
 | 
			
		||||
			#define DF_CMD_AUTOREWRITEBUFF1                 0x58
 | 
			
		||||
			#define DF_CMD_AUTOREWRITEBUFF2                 0x59
 | 
			
		||||
			
 | 
			
		||||
 | 
			
		||||
			#define DF_CMD_MAINMEMPAGEREAD                  0xD2
 | 
			
		||||
			#define DF_CMD_CONTARRAYREAD_LF                 0x03
 | 
			
		||||
			#define DF_CMD_BUFF1READ_LF                     0xD1
 | 
			
		||||
			#define DF_CMD_BUFF2READ_LF                     0xD3
 | 
			
		||||
			
 | 
			
		||||
 | 
			
		||||
			#define DF_CMD_BUFF1WRITE                       0x84
 | 
			
		||||
			#define DF_CMD_BUFF2WRITE                       0x87
 | 
			
		||||
			#define DF_CMD_BUFF1TOMAINMEMWITHERASE          0x83
 | 
			
		||||
| 
						 | 
				
			
			@ -84,7 +84,7 @@
 | 
			
		|||
			#define DF_CMD_BUFF2TOMAINMEM                   0x89
 | 
			
		||||
			#define DF_CMD_MAINMEMPAGETHROUGHBUFF1          0x82
 | 
			
		||||
			#define DF_CMD_MAINMEMPAGETHROUGHBUFF2          0x85
 | 
			
		||||
			
 | 
			
		||||
 | 
			
		||||
			#define DF_CMD_PAGEERASE                        0x81
 | 
			
		||||
			#define DF_CMD_BLOCKERASE                       0x50
 | 
			
		||||
			#define DF_CMD_SECTORERASE                      0x7C
 | 
			
		||||
| 
						 | 
				
			
			@ -94,15 +94,16 @@
 | 
			
		|||
			#define DF_CMD_CHIPERASE_BYTE2                  0x94
 | 
			
		||||
			#define DF_CMD_CHIPERASE_BYTE3                  0x80
 | 
			
		||||
			#define DF_CMD_CHIPERASE_BYTE4                  0x9A
 | 
			
		||||
			
 | 
			
		||||
 | 
			
		||||
			#define DF_CMD_SECTORPROTECTIONOFF              ((char[]){0x3D, 0x2A, 0x7F, 0x9A})
 | 
			
		||||
			#define DF_CMD_SECTORPROTECTIONOFF_BYTE1        0x3D
 | 
			
		||||
			#define DF_CMD_SECTORPROTECTIONOFF_BYTE2        0x2A
 | 
			
		||||
			#define DF_CMD_SECTORPROTECTIONOFF_BYTE3        0x7F
 | 
			
		||||
			#define DF_CMD_SECTORPROTECTIONOFF_BYTE4        0x9A
 | 
			
		||||
			
 | 
			
		||||
 | 
			
		||||
			#define DF_CMD_READMANUFACTURERDEVICEINFO       0x9F
 | 
			
		||||
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
/** @} */
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,7 +1,7 @@
 | 
			
		|||
/*
 | 
			
		||||
             LUFA Library
 | 
			
		||||
     Copyright (C) Dean Camera, 2010.
 | 
			
		||||
              
 | 
			
		||||
 | 
			
		||||
  dean [at] fourwalledcubicle [dot] com
 | 
			
		||||
      www.fourwalledcubicle.com
 | 
			
		||||
*/
 | 
			
		||||
| 
						 | 
				
			
			@ -9,13 +9,13 @@
 | 
			
		|||
/*
 | 
			
		||||
  Copyright 2010  Dean Camera (dean [at] fourwalledcubicle [dot] com)
 | 
			
		||||
 | 
			
		||||
  Permission to use, copy, modify, distribute, and sell this 
 | 
			
		||||
  Permission to use, copy, modify, distribute, and sell this
 | 
			
		||||
  software and its documentation for any purpose is hereby granted
 | 
			
		||||
  without fee, provided that the above copyright notice appear in 
 | 
			
		||||
  without fee, provided that the above copyright notice appear in
 | 
			
		||||
  all copies and that both that the copyright notice and this
 | 
			
		||||
  permission notice and warranty disclaimer appear in supporting 
 | 
			
		||||
  documentation, and that the name of the author not be used in 
 | 
			
		||||
  advertising or publicity pertaining to distribution of the 
 | 
			
		||||
  permission notice and warranty disclaimer appear in supporting
 | 
			
		||||
  documentation, and that the name of the author not be used in
 | 
			
		||||
  advertising or publicity pertaining to distribution of the
 | 
			
		||||
  software without specific, written prior permission.
 | 
			
		||||
 | 
			
		||||
  The author disclaim all warranties with regard to this
 | 
			
		||||
| 
						 | 
				
			
			@ -36,7 +36,7 @@
 | 
			
		|||
 *  \note This file should not be included directly. It is automatically included as needed by the Buttons driver
 | 
			
		||||
 *        dispatch header located in LUFA/Drivers/Board/Buttons.h.
 | 
			
		||||
 */
 | 
			
		||||
 
 | 
			
		||||
 | 
			
		||||
/** \ingroup Group_Buttons
 | 
			
		||||
 *  @defgroup Group_Buttons_USBKEY USBKEY
 | 
			
		||||
 *
 | 
			
		||||
| 
						 | 
				
			
			@ -66,12 +66,12 @@
 | 
			
		|||
		#if !defined(__INCLUDE_FROM_BUTTONS_H)
 | 
			
		||||
			#error Do not include this file directly. Include LUFA/Drivers/Board/Buttons.h instead.
 | 
			
		||||
		#endif
 | 
			
		||||
		
 | 
			
		||||
 | 
			
		||||
	/* Public Interface - May be used in end-application: */
 | 
			
		||||
		/* Macros: */
 | 
			
		||||
			/** Button mask for the first button on the board. */
 | 
			
		||||
			#define BUTTONS_BUTTON1      (1 << 2)
 | 
			
		||||
	
 | 
			
		||||
 | 
			
		||||
		/* Inline Functions: */
 | 
			
		||||
		#if !defined(__DOXYGEN__)
 | 
			
		||||
			static inline void Buttons_Init(void)
 | 
			
		||||
| 
						 | 
				
			
			@ -91,7 +91,8 @@
 | 
			
		|||
		#if defined(__cplusplus)
 | 
			
		||||
			}
 | 
			
		||||
		#endif
 | 
			
		||||
			
 | 
			
		||||
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
/** @} */
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,7 +1,7 @@
 | 
			
		|||
/*
 | 
			
		||||
             LUFA Library
 | 
			
		||||
     Copyright (C) Dean Camera, 2010.
 | 
			
		||||
              
 | 
			
		||||
 | 
			
		||||
  dean [at] fourwalledcubicle [dot] com
 | 
			
		||||
      www.fourwalledcubicle.com
 | 
			
		||||
*/
 | 
			
		||||
| 
						 | 
				
			
			@ -9,13 +9,13 @@
 | 
			
		|||
/*
 | 
			
		||||
  Copyright 2010  Dean Camera (dean [at] fourwalledcubicle [dot] com)
 | 
			
		||||
 | 
			
		||||
  Permission to use, copy, modify, distribute, and sell this 
 | 
			
		||||
  Permission to use, copy, modify, distribute, and sell this
 | 
			
		||||
  software and its documentation for any purpose is hereby granted
 | 
			
		||||
  without fee, provided that the above copyright notice appear in 
 | 
			
		||||
  without fee, provided that the above copyright notice appear in
 | 
			
		||||
  all copies and that both that the copyright notice and this
 | 
			
		||||
  permission notice and warranty disclaimer appear in supporting 
 | 
			
		||||
  documentation, and that the name of the author not be used in 
 | 
			
		||||
  advertising or publicity pertaining to distribution of the 
 | 
			
		||||
  permission notice and warranty disclaimer appear in supporting
 | 
			
		||||
  documentation, and that the name of the author not be used in
 | 
			
		||||
  advertising or publicity pertaining to distribution of the
 | 
			
		||||
  software without specific, written prior permission.
 | 
			
		||||
 | 
			
		||||
  The author disclaim all warranties with regard to this
 | 
			
		||||
| 
						 | 
				
			
			@ -43,7 +43,7 @@
 | 
			
		|||
 *  Board specific Dataflash driver header for the Atmel USBKEY board.
 | 
			
		||||
 *
 | 
			
		||||
 *  \note This file should not be included directly. It is automatically included as needed by the dataflash driver
 | 
			
		||||
 *        dispatch header located in LUFA/Drivers/Board/Dataflash.h. 
 | 
			
		||||
 *        dispatch header located in LUFA/Drivers/Board/Dataflash.h.
 | 
			
		||||
 *
 | 
			
		||||
 *  @{
 | 
			
		||||
 */
 | 
			
		||||
| 
						 | 
				
			
			@ -58,7 +58,7 @@
 | 
			
		|||
		#if !defined(__INCLUDE_FROM_DATAFLASH_H)
 | 
			
		||||
			#error Do not include this file directly. Include LUFA/Drivers/Board/Dataflash.h instead.
 | 
			
		||||
		#endif
 | 
			
		||||
		
 | 
			
		||||
 | 
			
		||||
	/* Private Interface - For use in library only: */
 | 
			
		||||
	#if !defined(__DOXYGEN__)
 | 
			
		||||
		/* Macros: */
 | 
			
		||||
| 
						 | 
				
			
			@ -66,7 +66,7 @@
 | 
			
		|||
			#define DATAFLASH_CHIPCS_DDR                 DDRE
 | 
			
		||||
			#define DATAFLASH_CHIPCS_PORT                PORTE
 | 
			
		||||
	#endif
 | 
			
		||||
	
 | 
			
		||||
 | 
			
		||||
	/* Public Interface - May be used in end-application: */
 | 
			
		||||
		/* Macros: */
 | 
			
		||||
			/** Constant indicating the total number of dataflash ICs mounted on the selected board. */
 | 
			
		||||
| 
						 | 
				
			
			@ -80,13 +80,13 @@
 | 
			
		|||
 | 
			
		||||
			/** Mask for the second dataflash chip selected. */
 | 
			
		||||
			#define DATAFLASH_CHIP2                      (1 << 0)
 | 
			
		||||
			
 | 
			
		||||
 | 
			
		||||
			/** Internal main memory page size for the board's dataflash ICs. */
 | 
			
		||||
			#define DATAFLASH_PAGE_SIZE                  1024
 | 
			
		||||
 | 
			
		||||
			/** Total number of pages inside each of the board's dataflash ICs. */
 | 
			
		||||
			#define DATAFLASH_PAGES                      8192
 | 
			
		||||
			
 | 
			
		||||
 | 
			
		||||
		/* Inline Functions: */
 | 
			
		||||
			/** Initialises the dataflash driver so that commands and data may be sent to an attached dataflash IC.
 | 
			
		||||
			 *  The AVR's SPI driver MUST be initialized before any of the dataflash commands are used.
 | 
			
		||||
| 
						 | 
				
			
			@ -125,7 +125,7 @@
 | 
			
		|||
			{
 | 
			
		||||
				Dataflash_SelectChip(DATAFLASH_NO_CHIP);
 | 
			
		||||
			}
 | 
			
		||||
			
 | 
			
		||||
 | 
			
		||||
			/** Selects a dataflash IC from the given page number, which should range from 0 to
 | 
			
		||||
			 *  ((DATAFLASH_PAGES * DATAFLASH_TOTALCHIPS) - 1). For boards containing only one
 | 
			
		||||
			 *  dataflash IC, this will select DATAFLASH_CHIP1. If the given page number is outside
 | 
			
		||||
| 
						 | 
				
			
			@ -138,7 +138,7 @@
 | 
			
		|||
			static inline void Dataflash_SelectChipFromPage(const uint16_t PageAddress)
 | 
			
		||||
			{
 | 
			
		||||
				Dataflash_DeselectChip();
 | 
			
		||||
				
 | 
			
		||||
 | 
			
		||||
				if (PageAddress >= (DATAFLASH_PAGES * DATAFLASH_TOTALCHIPS))
 | 
			
		||||
				  return;
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -154,7 +154,7 @@
 | 
			
		|||
			static inline void Dataflash_ToggleSelectedChipCS(void)
 | 
			
		||||
			{
 | 
			
		||||
				uint8_t SelectedChipMask = Dataflash_GetSelectedChip();
 | 
			
		||||
					
 | 
			
		||||
 | 
			
		||||
				Dataflash_DeselectChip();
 | 
			
		||||
				Dataflash_SelectChip(SelectedChipMask);
 | 
			
		||||
			}
 | 
			
		||||
| 
						 | 
				
			
			@ -167,7 +167,7 @@
 | 
			
		|||
				Dataflash_ToggleSelectedChipCS();
 | 
			
		||||
				Dataflash_SendByte(DF_CMD_GETSTATUS);
 | 
			
		||||
				while (!(Dataflash_ReceiveByte() & DF_STATUS_READY));
 | 
			
		||||
				Dataflash_ToggleSelectedChipCS();				
 | 
			
		||||
				Dataflash_ToggleSelectedChipCS();
 | 
			
		||||
			}
 | 
			
		||||
 | 
			
		||||
			/** Sends a set of page and buffer address bytes to the currently selected dataflash IC, for use with
 | 
			
		||||
| 
						 | 
				
			
			@ -178,14 +178,15 @@
 | 
			
		|||
			 */
 | 
			
		||||
			static inline void Dataflash_SendAddressBytes(uint16_t PageAddress,
 | 
			
		||||
			                                              const uint16_t BufferByte)
 | 
			
		||||
			{	
 | 
			
		||||
			{
 | 
			
		||||
				PageAddress >>= 1;
 | 
			
		||||
				
 | 
			
		||||
 | 
			
		||||
				Dataflash_SendByte(PageAddress >> 5);
 | 
			
		||||
				Dataflash_SendByte((PageAddress << 3) | (BufferByte >> 8));
 | 
			
		||||
				Dataflash_SendByte(BufferByte);
 | 
			
		||||
			}		
 | 
			
		||||
			}
 | 
			
		||||
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
/** @} */
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,7 +1,7 @@
 | 
			
		|||
/*
 | 
			
		||||
             LUFA Library
 | 
			
		||||
     Copyright (C) Dean Camera, 2010.
 | 
			
		||||
              
 | 
			
		||||
 | 
			
		||||
  dean [at] fourwalledcubicle [dot] com
 | 
			
		||||
      www.fourwalledcubicle.com
 | 
			
		||||
*/
 | 
			
		||||
| 
						 | 
				
			
			@ -9,13 +9,13 @@
 | 
			
		|||
/*
 | 
			
		||||
  Copyright 2010  Dean Camera (dean [at] fourwalledcubicle [dot] com)
 | 
			
		||||
 | 
			
		||||
  Permission to use, copy, modify, distribute, and sell this 
 | 
			
		||||
  Permission to use, copy, modify, distribute, and sell this
 | 
			
		||||
  software and its documentation for any purpose is hereby granted
 | 
			
		||||
  without fee, provided that the above copyright notice appear in 
 | 
			
		||||
  without fee, provided that the above copyright notice appear in
 | 
			
		||||
  all copies and that both that the copyright notice and this
 | 
			
		||||
  permission notice and warranty disclaimer appear in supporting 
 | 
			
		||||
  documentation, and that the name of the author not be used in 
 | 
			
		||||
  advertising or publicity pertaining to distribution of the 
 | 
			
		||||
  permission notice and warranty disclaimer appear in supporting
 | 
			
		||||
  documentation, and that the name of the author not be used in
 | 
			
		||||
  advertising or publicity pertaining to distribution of the
 | 
			
		||||
  software without specific, written prior permission.
 | 
			
		||||
 | 
			
		||||
  The author disclaim all warranties with regard to this
 | 
			
		||||
| 
						 | 
				
			
			@ -72,7 +72,7 @@
 | 
			
		|||
			#define JOY_BMASK                 ((1 << 5) | (1 << 6) | (1 << 7))
 | 
			
		||||
			#define JOY_EMASK                 ((1 << 4) | (1 << 5))
 | 
			
		||||
	#endif
 | 
			
		||||
	
 | 
			
		||||
 | 
			
		||||
	/* Public Interface - May be used in end-application: */
 | 
			
		||||
		/* Macros: */
 | 
			
		||||
			/** Mask for the joystick being pushed in the left direction. */
 | 
			
		||||
| 
						 | 
				
			
			@ -89,7 +89,7 @@
 | 
			
		|||
 | 
			
		||||
			/** Mask for the joystick being pushed inward. */
 | 
			
		||||
			#define JOY_PRESS                 (1 << 5)
 | 
			
		||||
			
 | 
			
		||||
 | 
			
		||||
		/* Inline Functions: */
 | 
			
		||||
		#if !defined(__DOXYGEN__)
 | 
			
		||||
			static inline void Joystick_Init(void)
 | 
			
		||||
| 
						 | 
				
			
			@ -98,9 +98,9 @@
 | 
			
		|||
				DDRE  &= ~(JOY_EMASK);
 | 
			
		||||
 | 
			
		||||
				PORTB |= JOY_BMASK;
 | 
			
		||||
				PORTE |= JOY_EMASK;				
 | 
			
		||||
				PORTE |= JOY_EMASK;
 | 
			
		||||
			}
 | 
			
		||||
			
 | 
			
		||||
 | 
			
		||||
			static inline uint8_t Joystick_GetStatus(void) ATTR_WARN_UNUSED_RESULT;
 | 
			
		||||
			static inline uint8_t Joystick_GetStatus(void)
 | 
			
		||||
			{
 | 
			
		||||
| 
						 | 
				
			
			@ -116,3 +116,4 @@
 | 
			
		|||
#endif
 | 
			
		||||
 | 
			
		||||
/** @} */
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,7 +1,7 @@
 | 
			
		|||
/*
 | 
			
		||||
             LUFA Library
 | 
			
		||||
     Copyright (C) Dean Camera, 2010.
 | 
			
		||||
              
 | 
			
		||||
 | 
			
		||||
  dean [at] fourwalledcubicle [dot] com
 | 
			
		||||
      www.fourwalledcubicle.com
 | 
			
		||||
*/
 | 
			
		||||
| 
						 | 
				
			
			@ -9,13 +9,13 @@
 | 
			
		|||
/*
 | 
			
		||||
  Copyright 2010  Dean Camera (dean [at] fourwalledcubicle [dot] com)
 | 
			
		||||
 | 
			
		||||
  Permission to use, copy, modify, distribute, and sell this 
 | 
			
		||||
  Permission to use, copy, modify, distribute, and sell this
 | 
			
		||||
  software and its documentation for any purpose is hereby granted
 | 
			
		||||
  without fee, provided that the above copyright notice appear in 
 | 
			
		||||
  without fee, provided that the above copyright notice appear in
 | 
			
		||||
  all copies and that both that the copyright notice and this
 | 
			
		||||
  permission notice and warranty disclaimer appear in supporting 
 | 
			
		||||
  documentation, and that the name of the author not be used in 
 | 
			
		||||
  advertising or publicity pertaining to distribution of the 
 | 
			
		||||
  permission notice and warranty disclaimer appear in supporting
 | 
			
		||||
  documentation, and that the name of the author not be used in
 | 
			
		||||
  advertising or publicity pertaining to distribution of the
 | 
			
		||||
  software without specific, written prior permission.
 | 
			
		||||
 | 
			
		||||
  The author disclaim all warranties with regard to this
 | 
			
		||||
| 
						 | 
				
			
			@ -93,7 +93,7 @@
 | 
			
		|||
				DDRD  |=  LEDS_ALL_LEDS;
 | 
			
		||||
				PORTD &= ~LEDS_ALL_LEDS;
 | 
			
		||||
			}
 | 
			
		||||
			
 | 
			
		||||
 | 
			
		||||
			static inline void LEDs_TurnOnLEDs(const uint8_t LEDMask)
 | 
			
		||||
			{
 | 
			
		||||
				PORTD |= LEDMask;
 | 
			
		||||
| 
						 | 
				
			
			@ -108,18 +108,18 @@
 | 
			
		|||
			{
 | 
			
		||||
				PORTD = ((PORTD & ~LEDS_ALL_LEDS) | LEDMask);
 | 
			
		||||
			}
 | 
			
		||||
			
 | 
			
		||||
 | 
			
		||||
			static inline void LEDs_ChangeLEDs(const uint8_t LEDMask,
 | 
			
		||||
			                                   const uint8_t ActiveMask)
 | 
			
		||||
			{
 | 
			
		||||
				PORTD = ((PORTD & ~LEDMask) | ActiveMask);
 | 
			
		||||
			}
 | 
			
		||||
			
 | 
			
		||||
 | 
			
		||||
			static inline void LEDs_ToggleLEDs(const uint8_t LEDMask)
 | 
			
		||||
			{
 | 
			
		||||
				PORTD ^= LEDMask;
 | 
			
		||||
			}
 | 
			
		||||
			
 | 
			
		||||
 | 
			
		||||
			static inline uint8_t LEDs_GetLEDs(void) ATTR_WARN_UNUSED_RESULT;
 | 
			
		||||
			static inline uint8_t LEDs_GetLEDs(void)
 | 
			
		||||
			{
 | 
			
		||||
| 
						 | 
				
			
			@ -131,7 +131,8 @@
 | 
			
		|||
		#if defined(__cplusplus)
 | 
			
		||||
			}
 | 
			
		||||
		#endif
 | 
			
		||||
		
 | 
			
		||||
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
/** @} */
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,7 +1,7 @@
 | 
			
		|||
/*
 | 
			
		||||
             LUFA Library
 | 
			
		||||
     Copyright (C) Dean Camera, 2010.
 | 
			
		||||
              
 | 
			
		||||
 | 
			
		||||
  dean [at] fourwalledcubicle [dot] com
 | 
			
		||||
      www.fourwalledcubicle.com
 | 
			
		||||
*/
 | 
			
		||||
| 
						 | 
				
			
			@ -9,13 +9,13 @@
 | 
			
		|||
/*
 | 
			
		||||
  Copyright 2010  Dean Camera (dean [at] fourwalledcubicle [dot] com)
 | 
			
		||||
 | 
			
		||||
  Permission to use, copy, modify, distribute, and sell this 
 | 
			
		||||
  Permission to use, copy, modify, distribute, and sell this
 | 
			
		||||
  software and its documentation for any purpose is hereby granted
 | 
			
		||||
  without fee, provided that the above copyright notice appear in 
 | 
			
		||||
  without fee, provided that the above copyright notice appear in
 | 
			
		||||
  all copies and that both that the copyright notice and this
 | 
			
		||||
  permission notice and warranty disclaimer appear in supporting 
 | 
			
		||||
  documentation, and that the name of the author not be used in 
 | 
			
		||||
  advertising or publicity pertaining to distribution of the 
 | 
			
		||||
  permission notice and warranty disclaimer appear in supporting
 | 
			
		||||
  documentation, and that the name of the author not be used in
 | 
			
		||||
  advertising or publicity pertaining to distribution of the
 | 
			
		||||
  software without specific, written prior permission.
 | 
			
		||||
 | 
			
		||||
  The author disclaim all warranties with regard to this
 | 
			
		||||
| 
						 | 
				
			
			@ -66,12 +66,12 @@
 | 
			
		|||
		#if !defined(__INCLUDE_FROM_BUTTONS_H)
 | 
			
		||||
			#error Do not include this file directly. Include LUFA/Drivers/Board/Buttons.h instead.
 | 
			
		||||
		#endif
 | 
			
		||||
		
 | 
			
		||||
 | 
			
		||||
	/* Public Interface - May be used in end-application: */
 | 
			
		||||
		/* Macros: */
 | 
			
		||||
			/** Button mask for the first button on the board. */
 | 
			
		||||
			#define BUTTONS_BUTTON1      (1 << 7)
 | 
			
		||||
	
 | 
			
		||||
 | 
			
		||||
		/* Inline Functions: */
 | 
			
		||||
		#if !defined(__DOXYGEN__)
 | 
			
		||||
			static inline void Buttons_Init(void)
 | 
			
		||||
| 
						 | 
				
			
			@ -91,7 +91,8 @@
 | 
			
		|||
		#if defined(__cplusplus)
 | 
			
		||||
			}
 | 
			
		||||
		#endif
 | 
			
		||||
			
 | 
			
		||||
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
/** @} */
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,7 +1,7 @@
 | 
			
		|||
/*
 | 
			
		||||
             LUFA Library
 | 
			
		||||
     Copyright (C) Dean Camera, 2010.
 | 
			
		||||
              
 | 
			
		||||
 | 
			
		||||
  dean [at] fourwalledcubicle [dot] com
 | 
			
		||||
      www.fourwalledcubicle.com
 | 
			
		||||
*/
 | 
			
		||||
| 
						 | 
				
			
			@ -9,13 +9,13 @@
 | 
			
		|||
/*
 | 
			
		||||
  Copyright 2010  Dean Camera (dean [at] fourwalledcubicle [dot] com)
 | 
			
		||||
 | 
			
		||||
  Permission to use, copy, modify, distribute, and sell this 
 | 
			
		||||
  Permission to use, copy, modify, distribute, and sell this
 | 
			
		||||
  software and its documentation for any purpose is hereby granted
 | 
			
		||||
  without fee, provided that the above copyright notice appear in 
 | 
			
		||||
  without fee, provided that the above copyright notice appear in
 | 
			
		||||
  all copies and that both that the copyright notice and this
 | 
			
		||||
  permission notice and warranty disclaimer appear in supporting 
 | 
			
		||||
  documentation, and that the name of the author not be used in 
 | 
			
		||||
  advertising or publicity pertaining to distribution of the 
 | 
			
		||||
  permission notice and warranty disclaimer appear in supporting
 | 
			
		||||
  documentation, and that the name of the author not be used in
 | 
			
		||||
  advertising or publicity pertaining to distribution of the
 | 
			
		||||
  software without specific, written prior permission.
 | 
			
		||||
 | 
			
		||||
  The author disclaim all warranties with regard to this
 | 
			
		||||
| 
						 | 
				
			
			@ -88,7 +88,7 @@
 | 
			
		|||
				DDRB  |=  LEDS_ALL_LEDS;
 | 
			
		||||
				PORTB &= ~LEDS_ALL_LEDS;
 | 
			
		||||
			}
 | 
			
		||||
			
 | 
			
		||||
 | 
			
		||||
			static inline void LEDs_TurnOnLEDs(const uint8_t LedMask)
 | 
			
		||||
			{
 | 
			
		||||
				PORTB |= LedMask;
 | 
			
		||||
| 
						 | 
				
			
			@ -103,13 +103,13 @@
 | 
			
		|||
			{
 | 
			
		||||
				PORTB = ((PORTB & ~LEDS_ALL_LEDS) | LedMask);
 | 
			
		||||
			}
 | 
			
		||||
		
 | 
			
		||||
 | 
			
		||||
			static inline void LEDs_ChangeLEDs(const uint8_t LedMask,
 | 
			
		||||
			                                   const uint8_t ActiveMask)
 | 
			
		||||
			{
 | 
			
		||||
				PORTB = ((PORTB & ~LedMask) | ActiveMask);
 | 
			
		||||
			}
 | 
			
		||||
			
 | 
			
		||||
 | 
			
		||||
			static inline void LEDs_ToggleLEDs(const uint8_t LEDMask)
 | 
			
		||||
			{
 | 
			
		||||
				PORTB ^= LEDMask;
 | 
			
		||||
| 
						 | 
				
			
			@ -126,7 +126,8 @@
 | 
			
		|||
		#if defined(__cplusplus)
 | 
			
		||||
			}
 | 
			
		||||
		#endif
 | 
			
		||||
		
 | 
			
		||||
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
/** @} */
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,7 +1,7 @@
 | 
			
		|||
/*
 | 
			
		||||
             LUFA Library
 | 
			
		||||
     Copyright (C) Dean Camera, 2010.
 | 
			
		||||
              
 | 
			
		||||
 | 
			
		||||
  dean [at] fourwalledcubicle [dot] com
 | 
			
		||||
      www.fourwalledcubicle.com
 | 
			
		||||
*/
 | 
			
		||||
| 
						 | 
				
			
			@ -9,13 +9,13 @@
 | 
			
		|||
/*
 | 
			
		||||
  Copyright 2010  Dean Camera (dean [at] fourwalledcubicle [dot] com)
 | 
			
		||||
 | 
			
		||||
  Permission to use, copy, modify, distribute, and sell this 
 | 
			
		||||
  Permission to use, copy, modify, distribute, and sell this
 | 
			
		||||
  software and its documentation for any purpose is hereby granted
 | 
			
		||||
  without fee, provided that the above copyright notice appear in 
 | 
			
		||||
  without fee, provided that the above copyright notice appear in
 | 
			
		||||
  all copies and that both that the copyright notice and this
 | 
			
		||||
  permission notice and warranty disclaimer appear in supporting 
 | 
			
		||||
  documentation, and that the name of the author not be used in 
 | 
			
		||||
  advertising or publicity pertaining to distribution of the 
 | 
			
		||||
  permission notice and warranty disclaimer appear in supporting
 | 
			
		||||
  documentation, and that the name of the author not be used in
 | 
			
		||||
  advertising or publicity pertaining to distribution of the
 | 
			
		||||
  software without specific, written prior permission.
 | 
			
		||||
 | 
			
		||||
  The author disclaim all warranties with regard to this
 | 
			
		||||
| 
						 | 
				
			
			@ -47,7 +47,7 @@
 | 
			
		|||
 *
 | 
			
		||||
 *  @{
 | 
			
		||||
 */
 | 
			
		||||
 
 | 
			
		||||
 | 
			
		||||
#ifndef __DATAFLASH_CMDS_H__
 | 
			
		||||
#define __DATAFLASH_CMDS_H__
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -57,9 +57,9 @@
 | 
			
		|||
			#define DF_STATUS_COMPMISMATCH                  (1 << 6)
 | 
			
		||||
			#define DF_STATUS_SECTORPROTECTION_ON           (1 << 1)
 | 
			
		||||
			#define DF_STATUS_BINARYPAGESIZE_ON             (1 << 0)
 | 
			
		||||
			
 | 
			
		||||
 | 
			
		||||
			#define DF_MANUFACTURER_ATMEL                   0x1F
 | 
			
		||||
		
 | 
			
		||||
 | 
			
		||||
			#define DF_CMD_GETSTATUS                        0xD7
 | 
			
		||||
			#define DF_CMD_POWERDOWN                        0xB9
 | 
			
		||||
			#define DF_CMD_WAKEUP                           0xAB
 | 
			
		||||
| 
						 | 
				
			
			@ -70,12 +70,12 @@
 | 
			
		|||
			#define DF_CMD_MAINMEMTOBUFF2COMP               0x61
 | 
			
		||||
			#define DF_CMD_AUTOREWRITEBUFF1                 0x58
 | 
			
		||||
			#define DF_CMD_AUTOREWRITEBUFF2                 0x59
 | 
			
		||||
			
 | 
			
		||||
 | 
			
		||||
			#define DF_CMD_MAINMEMPAGEREAD                  0xD2
 | 
			
		||||
			#define DF_CMD_CONTARRAYREAD_LF                 0x03
 | 
			
		||||
			#define DF_CMD_BUFF1READ_LF                     0xD1
 | 
			
		||||
			#define DF_CMD_BUFF2READ_LF                     0xD3
 | 
			
		||||
			
 | 
			
		||||
 | 
			
		||||
			#define DF_CMD_BUFF1WRITE                       0x84
 | 
			
		||||
			#define DF_CMD_BUFF2WRITE                       0x87
 | 
			
		||||
			#define DF_CMD_BUFF1TOMAINMEMWITHERASE          0x83
 | 
			
		||||
| 
						 | 
				
			
			@ -84,7 +84,7 @@
 | 
			
		|||
			#define DF_CMD_BUFF2TOMAINMEM                   0x89
 | 
			
		||||
			#define DF_CMD_MAINMEMPAGETHROUGHBUFF1          0x82
 | 
			
		||||
			#define DF_CMD_MAINMEMPAGETHROUGHBUFF2          0x85
 | 
			
		||||
			
 | 
			
		||||
 | 
			
		||||
			#define DF_CMD_PAGEERASE                        0x81
 | 
			
		||||
			#define DF_CMD_BLOCKERASE                       0x50
 | 
			
		||||
			#define DF_CMD_SECTORERASE                      0x7C
 | 
			
		||||
| 
						 | 
				
			
			@ -94,15 +94,16 @@
 | 
			
		|||
			#define DF_CMD_CHIPERASE_BYTE2                  0x94
 | 
			
		||||
			#define DF_CMD_CHIPERASE_BYTE3                  0x80
 | 
			
		||||
			#define DF_CMD_CHIPERASE_BYTE4                  0x9A
 | 
			
		||||
			
 | 
			
		||||
 | 
			
		||||
			#define DF_CMD_SECTORPROTECTIONOFF              ((char[]){0x3D, 0x2A, 0x7F, 0x9A})
 | 
			
		||||
			#define DF_CMD_SECTORPROTECTIONOFF_BYTE1        0x3D
 | 
			
		||||
			#define DF_CMD_SECTORPROTECTIONOFF_BYTE2        0x2A
 | 
			
		||||
			#define DF_CMD_SECTORPROTECTIONOFF_BYTE3        0x7F
 | 
			
		||||
			#define DF_CMD_SECTORPROTECTIONOFF_BYTE4        0x9A
 | 
			
		||||
			
 | 
			
		||||
 | 
			
		||||
			#define DF_CMD_READMANUFACTURERDEVICEINFO       0x9F
 | 
			
		||||
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
/** @} */
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,7 +1,7 @@
 | 
			
		|||
/*
 | 
			
		||||
             LUFA Library
 | 
			
		||||
     Copyright (C) Dean Camera, 2010.
 | 
			
		||||
              
 | 
			
		||||
 | 
			
		||||
  dean [at] fourwalledcubicle [dot] com
 | 
			
		||||
      www.fourwalledcubicle.com
 | 
			
		||||
*/
 | 
			
		||||
| 
						 | 
				
			
			@ -9,13 +9,13 @@
 | 
			
		|||
/*
 | 
			
		||||
  Copyright 2010  Dean Camera (dean [at] fourwalledcubicle [dot] com)
 | 
			
		||||
 | 
			
		||||
  Permission to use, copy, modify, distribute, and sell this 
 | 
			
		||||
  Permission to use, copy, modify, distribute, and sell this
 | 
			
		||||
  software and its documentation for any purpose is hereby granted
 | 
			
		||||
  without fee, provided that the above copyright notice appear in 
 | 
			
		||||
  without fee, provided that the above copyright notice appear in
 | 
			
		||||
  all copies and that both that the copyright notice and this
 | 
			
		||||
  permission notice and warranty disclaimer appear in supporting 
 | 
			
		||||
  documentation, and that the name of the author not be used in 
 | 
			
		||||
  advertising or publicity pertaining to distribution of the 
 | 
			
		||||
  permission notice and warranty disclaimer appear in supporting
 | 
			
		||||
  documentation, and that the name of the author not be used in
 | 
			
		||||
  advertising or publicity pertaining to distribution of the
 | 
			
		||||
  software without specific, written prior permission.
 | 
			
		||||
 | 
			
		||||
  The author disclaim all warranties with regard to this
 | 
			
		||||
| 
						 | 
				
			
			@ -58,7 +58,7 @@
 | 
			
		|||
		#if !defined(__INCLUDE_FROM_DATAFLASH_H)
 | 
			
		||||
			#error Do not include this file directly. Include LUFA/Drivers/Board/Dataflash.h instead.
 | 
			
		||||
		#endif
 | 
			
		||||
		
 | 
			
		||||
 | 
			
		||||
	/* Private Interface - For use in library only: */
 | 
			
		||||
	#if !defined(__DOXYGEN__)
 | 
			
		||||
		/* Macros: */
 | 
			
		||||
| 
						 | 
				
			
			@ -66,7 +66,7 @@
 | 
			
		|||
			#define DATAFLASH_CHIPCS_DDR                 DDRB
 | 
			
		||||
			#define DATAFLASH_CHIPCS_PORT                PORTB
 | 
			
		||||
	#endif
 | 
			
		||||
	
 | 
			
		||||
 | 
			
		||||
	/* Public Interface - May be used in end-application: */
 | 
			
		||||
		/* Macros: */
 | 
			
		||||
			/** Constant indicating the total number of dataflash ICs mounted on the selected board. */
 | 
			
		||||
| 
						 | 
				
			
			@ -81,15 +81,15 @@
 | 
			
		|||
			#if (BOARD == BOARD_XPLAIN_REV1)
 | 
			
		||||
				#define DATAFLASH_PAGE_SIZE              256
 | 
			
		||||
 | 
			
		||||
				#define DATAFLASH_PAGES                  2048							
 | 
			
		||||
				#define DATAFLASH_PAGES                  2048
 | 
			
		||||
			#else
 | 
			
		||||
				/** Internal main memory page size for the board's dataflash ICs. */
 | 
			
		||||
				#define DATAFLASH_PAGE_SIZE              1024
 | 
			
		||||
 | 
			
		||||
				/** Total number of pages inside each of the board's dataflash ICs. */
 | 
			
		||||
				#define DATAFLASH_PAGES                  8192			
 | 
			
		||||
				#define DATAFLASH_PAGES                  8192
 | 
			
		||||
			#endif
 | 
			
		||||
			
 | 
			
		||||
 | 
			
		||||
		/* Inline Functions: */
 | 
			
		||||
			/** Initialises the dataflash driver so that commands and data may be sent to an attached dataflash IC.
 | 
			
		||||
			 *  The AVR's SPI driver MUST be initialized before any of the dataflash commands are used.
 | 
			
		||||
| 
						 | 
				
			
			@ -141,20 +141,20 @@
 | 
			
		|||
			static inline void Dataflash_SelectChipFromPage(const uint16_t PageAddress)
 | 
			
		||||
			{
 | 
			
		||||
				Dataflash_DeselectChip();
 | 
			
		||||
				
 | 
			
		||||
 | 
			
		||||
				if (PageAddress >= DATAFLASH_PAGES)
 | 
			
		||||
				  return;
 | 
			
		||||
 | 
			
		||||
				Dataflash_SelectChip(DATAFLASH_CHIP1);
 | 
			
		||||
			}
 | 
			
		||||
			
 | 
			
		||||
 | 
			
		||||
			/** Toggles the select line of the currently selected dataflash IC, so that it is ready to receive
 | 
			
		||||
			 *  a new command.
 | 
			
		||||
			 */
 | 
			
		||||
			static inline void Dataflash_ToggleSelectedChipCS(void)
 | 
			
		||||
			{
 | 
			
		||||
				uint8_t SelectedChipMask = Dataflash_GetSelectedChip();
 | 
			
		||||
					
 | 
			
		||||
 | 
			
		||||
				Dataflash_DeselectChip();
 | 
			
		||||
				Dataflash_SelectChip(SelectedChipMask);
 | 
			
		||||
			}
 | 
			
		||||
| 
						 | 
				
			
			@ -167,7 +167,7 @@
 | 
			
		|||
				Dataflash_ToggleSelectedChipCS();
 | 
			
		||||
				Dataflash_SendByte(DF_CMD_GETSTATUS);
 | 
			
		||||
				while (!(Dataflash_ReceiveByte() & DF_STATUS_READY));
 | 
			
		||||
				Dataflash_ToggleSelectedChipCS();				
 | 
			
		||||
				Dataflash_ToggleSelectedChipCS();
 | 
			
		||||
			}
 | 
			
		||||
 | 
			
		||||
			/** Sends a set of page and buffer address bytes to the currently selected dataflash IC, for use with
 | 
			
		||||
| 
						 | 
				
			
			@ -182,8 +182,9 @@
 | 
			
		|||
				Dataflash_SendByte(PageAddress >> 5);
 | 
			
		||||
				Dataflash_SendByte((PageAddress << 3) | (BufferByte >> 8));
 | 
			
		||||
				Dataflash_SendByte(BufferByte);
 | 
			
		||||
			}		
 | 
			
		||||
			}
 | 
			
		||||
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
/** @} */
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,7 +1,7 @@
 | 
			
		|||
/*
 | 
			
		||||
             LUFA Library
 | 
			
		||||
     Copyright (C) Dean Camera, 2010.
 | 
			
		||||
              
 | 
			
		||||
 | 
			
		||||
  dean [at] fourwalledcubicle [dot] com
 | 
			
		||||
      www.fourwalledcubicle.com
 | 
			
		||||
*/
 | 
			
		||||
| 
						 | 
				
			
			@ -9,13 +9,13 @@
 | 
			
		|||
/*
 | 
			
		||||
  Copyright 2010  Dean Camera (dean [at] fourwalledcubicle [dot] com)
 | 
			
		||||
 | 
			
		||||
  Permission to use, copy, modify, distribute, and sell this 
 | 
			
		||||
  Permission to use, copy, modify, distribute, and sell this
 | 
			
		||||
  software and its documentation for any purpose is hereby granted
 | 
			
		||||
  without fee, provided that the above copyright notice appear in 
 | 
			
		||||
  without fee, provided that the above copyright notice appear in
 | 
			
		||||
  all copies and that both that the copyright notice and this
 | 
			
		||||
  permission notice and warranty disclaimer appear in supporting 
 | 
			
		||||
  documentation, and that the name of the author not be used in 
 | 
			
		||||
  advertising or publicity pertaining to distribution of the 
 | 
			
		||||
  permission notice and warranty disclaimer appear in supporting
 | 
			
		||||
  documentation, and that the name of the author not be used in
 | 
			
		||||
  advertising or publicity pertaining to distribution of the
 | 
			
		||||
  software without specific, written prior permission.
 | 
			
		||||
 | 
			
		||||
  The author disclaim all warranties with regard to this
 | 
			
		||||
| 
						 | 
				
			
			@ -47,7 +47,7 @@
 | 
			
		|||
 *
 | 
			
		||||
 *  @{
 | 
			
		||||
 */
 | 
			
		||||
 
 | 
			
		||||
 | 
			
		||||
#ifndef __LEDS_XPLAIN_H__
 | 
			
		||||
#define __LEDS_XPLAIN_H__
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -84,7 +84,7 @@
 | 
			
		|||
				DDRB  |= LEDS_ALL_LEDS;
 | 
			
		||||
				PORTB |= LEDS_ALL_LEDS;
 | 
			
		||||
			}
 | 
			
		||||
			
 | 
			
		||||
 | 
			
		||||
			static inline void LEDs_TurnOnLEDs(const uint8_t LEDMask)
 | 
			
		||||
			{
 | 
			
		||||
				PORTB &= ~LEDMask;
 | 
			
		||||
| 
						 | 
				
			
			@ -99,30 +99,31 @@
 | 
			
		|||
			{
 | 
			
		||||
				PORTB = ((PORTB | LEDS_ALL_LEDS) & ~LEDMask);
 | 
			
		||||
			}
 | 
			
		||||
			
 | 
			
		||||
 | 
			
		||||
			static inline void LEDs_ChangeLEDs(const uint8_t LEDMask,
 | 
			
		||||
			                                   const uint8_t ActiveMask)
 | 
			
		||||
			{
 | 
			
		||||
				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)
 | 
			
		||||
			{
 | 
			
		||||
				return (~PORTB & LEDS_ALL_LEDS);
 | 
			
		||||
			}
 | 
			
		||||
		#endif
 | 
			
		||||
		
 | 
			
		||||
 | 
			
		||||
	/* Disable C linkage for C++ Compilers: */
 | 
			
		||||
		#if defined(__cplusplus)
 | 
			
		||||
			}
 | 
			
		||||
		#endif
 | 
			
		||||
	
 | 
			
		||||
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
/** @} */
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue