<!--
             LUFA Library
     Copyright (C) Dean Camera, 2013.

  dean [at] fourwalledcubicle [dot] com
           www.lufa-lib.org
-->

<!-- Atmel Studio framework integration file -->

<lufa>
	<asf>
		<module type="driver" id="lufa.drivers.board.leds" caption="LUFA Board LED Driver">
			<device-support-alias value="lufa_avr8"/>
			<device-support-alias value="lufa_xmega"/>
			<device-support-alias value="lufa_uc3"/>

			<build type="doxygen-entry-point" value="Group_LEDs"/>

			<require idref="lufa.common"/>

			<build type="include-path" value=".."/>
			<build type="header-file"  subtype="api" value="Drivers/Board/LEDs.h"/>
		</module>

		<module type="driver" id="lufa.drivers.board.buttons" caption="LUFA Board Buttons Driver">
			<device-support-alias value="lufa_avr8"/>
			<device-support-alias value="lufa_xmega"/>
			<device-support-alias value="lufa_uc3"/>

			<build type="doxygen-entry-point" value="Group_Buttons"/>

			<require idref="lufa.common"/>

			<build type="include-path" value=".."/>
			<build type="header-file"  subtype="api" value="Drivers/Board/Buttons.h"/>
		</module>

		<module type="driver" id="lufa.drivers.board.dataflash" caption="LUFA Board Dataflash Driver">
			<device-support-alias value="lufa_avr8"/>
			<device-support-alias value="lufa_xmega"/>
			<device-support-alias value="lufa_uc3"/>

			<build type="doxygen-entry-point" value="Group_Dataflash"/>

			<require idref="lufa.common"/>

			<build type="include-path" value=".."/>
			<build type="header-file"  subtype="api" value="Drivers/Board/Dataflash.h"/>
		</module>

		<module type="driver" id="lufa.drivers.board.joystick" caption="LUFA Board Joystick Driver">
			<device-support-alias value="lufa_avr8"/>
			<device-support-alias value="lufa_xmega"/>
			<device-support-alias value="lufa_uc3"/>

			<build type="doxygen-entry-point" value="Group_Joystick"/>

			<require idref="lufa.common"/>

			<build type="include-path" value=".."/>
			<build type="header-file"  subtype="api" value="Drivers/Board/Joystick.h"/>
		</module>

		<module type="driver" id="lufa.drivers.board.temperature" caption="LUFA Board Temperature Sensor Driver">
			<device-support-alias value="lufa_avr8"/>
			<device-support-alias value="lufa_xmega"/>
			<device-support-alias value="lufa_uc3"/>

			<build type="doxygen-entry-point" value="Group_Temperature"/>

			<require idref="lufa.common"/>

			<build type="c-source"     value="Drivers/Board/Temperature.c"/>
			<build type="include-path" value=".."/>
			<build type="header-file"  subtype="api" value="Drivers/Board/Temperature.h"/>
		</module>

		<select-by-config id="lufa.drivers.board" name="lufa.drivers.board.name" default="none" caption="LUFA Board Support">
			<module type="driver" id="lufa.drivers.board#none" caption="None">
				<device-support value="avr"/>

				<build type="define" name="BOARD" value="BOARD_NONE"/>
			</module>

			<module type="driver" id="lufa.drivers.board#usbkey" caption="USBKEY">
				<device-support value="at90usb1287"/>

				<require idref="lufa.drivers.misc.at45db642d"/>

				<build type="header-file" value="Drivers/Board/AVR8/USBKEY/Buttons.h"/>
				<build type="header-file" value="Drivers/Board/AVR8/USBKEY/Dataflash.h"/>
				<build type="header-file" value="Drivers/Board/AVR8/USBKEY/Joystick.h"/>
				<build type="header-file" value="Drivers/Board/AVR8/USBKEY/LEDs.h"/>

				<build type="define" name="BOARD" value="BOARD_USBKEY"/>
			</module>

			<module type="driver" id="lufa.drivers.board#xplain_rev1" caption="XPLAIN (HW Rev 1)">
				<device-support value="at90usb1287"/>

				<require idref="lufa.drivers.misc.at45db642d"/>

				<build type="header-file" value="Drivers/Board/AVR8/XPLAIN/Dataflash.h"/>
				<build type="header-file" value="Drivers/Board/AVR8/XPLAIN/LEDs.h"/>

				<build type="define" name="BOARD" value="BOARD_XPLAIN_REV1"/>
			</module>

			<module type="driver" id="lufa.drivers.board#xplain" caption="XPLAIN (HW Rev 2+)">
				<device-support value="at90usb1287"/>

				<require idref="lufa.drivers.misc.at45db642d"/>

				<build type="header-file" value="Drivers/Board/AVR8/XPLAIN/Dataflash.h"/>
				<build type="header-file" value="Drivers/Board/AVR8/XPLAIN/LEDs.h"/>

				<build type="define" name="BOARD" value="BOARD_XPLAIN"/>
			</module>
		</select-by-config>
	</asf>
</lufa>