| LUFA Library 140302 |

All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
The HID build module

The HID programming utility LUFA build system module, providing targets to reprogram an Atmel processor's FLASH memory with a project's compiled binary output file. This module requires a HID class bootloader to be running in the target, using a protocol compatible with the PJRC "HalfKay" protocol (http://www.pjrc.com/teensy/halfkay_protocol.html).

To use this module in your application makefile, add the following code:

include $(LUFA_PATH)/Build/lufa_hid.mk

# Requirements

This module requires either the `hid_bootloader_cli` utility from the included LUFA HID class bootloader API subdirectory, or the `teensy_loader_cli` utility from PJRC (http://www.pjrc.com/teensy/loader_cli.html) to be available in your system's PATH variable.

# Targets

`hid` | Program the device FLASH memory with the application's executable data using `hid_bootloader_cli`.
`hid-ee` | Program the device EEPROM memory with the application's EEPROM data using `hid_bootloader_cli` and a temporary AVR application programmed into the target's FLASH. Note This will erase the currently loaded application in the target.
`teensy` | Program the device FLASH memory with the application's executable data using `teensy_loader_cli`.
`teensy-ee` | Program the device EEPROM memory with the application's EEPROM data using `teensy_loader_cli` and a temporary AVR application programmed into the target's FLASH. Note This will erase the currently loaded application in the target.

# Mandatory Parameters

`MCU` | Name of the Atmel processor model (e.g. `at90usb1287`).
`TARGET` | Name of the application output file prefix (e.g. `TestApplication`).

# Optional Parameters

None

# Module Provided Variables

None

# Module Provided Macros

None