ButtLoadTag.h File Reference

#include <avr/io.h>
#include <avr/pgmspace.h>

Data Structures

struct  ButtLoadTagData

Defines

#define BUTTLOADTAG(id, data)
#define BUTTLOADTAG_DATA(id)   BUTTTAG_##id.TagData

Detailed Description

This file contains macros for the embedding of compile-time strings into the resultant project binary for identification purposes. It is designed to prefix "tags" with the magic string of "@(#)" so that the tags can easily be identified in the binary data.

These tags are compatible with the ButtLoad project at http://www.fourwalledcubicle.com/ButtLoad.php .


Define Documentation

#define BUTTLOADTAG ( id,
data   ) 

Value:

const struct ButtLoadTagData BUTTTAG_##id \
                                           PROGMEM __attribute__((used, externally_visible)) = \
                                           {MagicString: BT_TAGHEADER, TagData: data}
Creates a new tag in the resultant binary, containing the specified data array. The macro id parameter is only for identification purposes (so that the tag data can be referenced in code) and is not visible in the compiled binary.

#define BUTTLOADTAG_DATA ( id   )     BUTTTAG_##id.TagData

Macro for retrieving a reference to the specified tag's contents. The tag data is located in the program memory (FLASH) space, and so must be read out with the macros in avr-libc which deal with embedded data.


Generated on Thu Jul 31 09:24:15 2008 for MyUSB Library by  doxygen 1.5.5