#include <string>
Go to the source code of this file.
Classes | |
class | AvrFactory |
Produces AVR devices. More... | |
Defines | |
#define | AVR_REGISTER(name, class) |
#define AVR_REGISTER | ( | name, | |||
class | ) |
struct AVRFactoryEntryMaker_ ## name { \ public: \ static AvrDevice *create_one() { \ return new class; \ } \ AVRFactoryEntryMaker_ ## name() { \ AvrFactory::reg(#name, create_one); \ } \ }; \ AVRFactoryEntryMaker_ ## name maker_ ##name;
Macro to be used to register an AVR device with the AvrFactory. For a usage example, see atmega128.cpp.
Definition at line 69 of file avrfactory.h.