42 lines
809 B
TeX
42 lines
809 B
TeX
\NeedsTeXFormat{LaTeX2e}[1999/12/01]
|
|
\ProvidesPackage{avremu} [2014/10/09 v0.1 avremu]
|
|
\RequirePackage{etoolbox}
|
|
\RequirePackage{tabularx}
|
|
\RequirePackage{kvoptions}
|
|
|
|
\SetupKeyvalOptions{
|
|
family=avr,
|
|
prefix=avr@
|
|
}
|
|
\DeclareBoolOption{debug}
|
|
\ProcessKeyvalOptions*
|
|
|
|
\input{avr.numbers}
|
|
\input{avr.binary}
|
|
\input{avr.bitops}
|
|
\input{avr.memory}
|
|
\input{avr.instr}
|
|
\input{avr.io}
|
|
\input{avr.testsuite}
|
|
|
|
\ifavr@debug
|
|
\relax
|
|
\else
|
|
\def\avr@debug#1{}
|
|
\fi
|
|
|
|
\newcommand{\useavremulibrary}[1]{
|
|
\def\do##1{%
|
|
\IfFileExists{##1}{%
|
|
\csedef{avr@atcode}{\the\catcode`\@}%
|
|
\makeatletter%
|
|
\input{##1}\relax%
|
|
\catcode`\@=\csname avr@atcode\endcsname%
|
|
}{%
|
|
\errmessage{avremu: Cannot find library ##1}%
|
|
}%
|
|
}%
|
|
\edef\@tempa{#1}%
|
|
\expandafter\docsvlist\expandafter{\@tempa}%
|
|
}
|