Add new ARCH option to the makefiles to (eventually) specify the target device archit...
[pub/USBasp.git] / LUFA / Common / Architectures.h
1 /*
2 LUFA Library
3 Copyright (C) Dean Camera, 2011.
4
5 dean [at] fourwalledcubicle [dot] com
6 www.lufa-lib.org
7 */
8
9 /*
10 Copyright 2011 Dean Camera (dean [at] fourwalledcubicle [dot] com)
11
12 Permission to use, copy, modify, distribute, and sell this
13 software and its documentation for any purpose is hereby granted
14 without fee, provided that the above copyright notice appear in
15 all copies and that both that the copyright notice and this
16 permission notice and warranty disclaimer appear in supporting
17 documentation, and that the name of the author not be used in
18 advertising or publicity pertaining to distribution of the
19 software without specific, written prior permission.
20
21 The author disclaim all warranties with regard to this
22 software, including all implied warranties of merchantability
23 and fitness. In no event shall the author be liable for any
24 special, indirect or consequential damages or any damages
25 whatsoever resulting from loss of use, data or profits, whether
26 in an action of contract, negligence or other tortious action,
27 arising out of or in connection with the use or performance of
28 this software.
29 */
30
31 /** \file
32 * \brief Supported architecture defines.
33 *
34 * This file contains constants which can be passed to the compiler (via setting the macro ARCH) in the
35 * user project makefile using the -D option to configure the library drivers.
36 *
37 * \note Do not include this file directly, rather include the Common.h header file instead to gain this file's
38 * functionality.
39 */
40
41 /** \ingroup Group_Common
42 * \defgroup Group_Architectures Hardware Architectures
43 *
44 * Macros for indicating the chosen hardware architecture to the library. These macros should be used when
45 * defining the ARCH token to the chosen hardware via the -D switch in the project makefile.
46 *
47 * @{
48 */
49
50 #ifndef __LUFA_ARCHITECTURES_H__
51 #define __LUFA_ARCHITECTURES_H__
52
53 /* Preprocessor Checks: */
54 #if !defined(__INCLUDE_FROM_COMMON_H)
55 #error Do not include this file directly. Include LUFA/Common/Common.h instead to gain this functionality.
56 #endif
57
58 /* Public Interface - May be used in end-application: */
59 /* Macros: */
60 /** Selects the Atmel 8-bit AVR (AT90USB* and ATMEGA*U* chips) architecture. */
61 #define ARCH_AVR8 1
62
63 #if !defined(__DOXYGEN__)
64 #define ARCH_ ARCH_AVR8
65
66 #if !defined(ARCH)
67 #define ARCH ARCH_AVR8
68 #endif
69 #endif
70
71 #endif
72
73 /** @} */
74