summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/avremu/avremu.sty
blob: 31c80b4632f94c843556d6bccbf8f7b7d38e5c68 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
%% Copyright (C) 2014 Christian Dietrich <stettberger@dokucode.de>
%% -------------------------------------------------------
%% 
%% This package may be distributed and/or modified under the conditions
%% of the LaTeX Project Public License, either version 1.3c of this
%% license or (at your option) any later version.  The latest version of
%% this license is in
%% 
%%    http://www.latex-project.org/lppl.txt
%% 
%% and version 1.3c or later is part of all distributions of LaTeX
%% version 2008/05/04 or later.

\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}%
}