Architectures.h 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. /*
  2. LUFA Library
  3. Copyright (C) Dean Camera, 2018.
  4. dean [at] fourwalledcubicle [dot] com
  5. www.lufa-lib.org
  6. */
  7. /*
  8. Copyright 2018 Dean Camera (dean [at] fourwalledcubicle [dot] com)
  9. Permission to use, copy, modify, distribute, and sell this
  10. software and its documentation for any purpose is hereby granted
  11. without fee, provided that the above copyright notice appear in
  12. all copies and that both that the copyright notice and this
  13. permission notice and warranty disclaimer appear in supporting
  14. documentation, and that the name of the author not be used in
  15. advertising or publicity pertaining to distribution of the
  16. software without specific, written prior permission.
  17. The author disclaims all warranties with regard to this
  18. software, including all implied warranties of merchantability
  19. and fitness. In no event shall the author be liable for any
  20. special, indirect or consequential damages or any damages
  21. whatsoever resulting from loss of use, data or profits, whether
  22. in an action of contract, negligence or other tortious action,
  23. arising out of or in connection with the use or performance of
  24. this software.
  25. */
  26. /** \file
  27. * \brief Supported library architecture defines.
  28. *
  29. * \copydetails Group_Architectures
  30. *
  31. * \note Do not include this file directly, rather include the Common.h header file instead to gain this file's
  32. * functionality.
  33. */
  34. /** \ingroup Group_Common
  35. * \defgroup Group_Architectures Hardware Architectures
  36. * \brief Supported library architecture defines.
  37. *
  38. * Architecture macros for selecting the desired target microcontroller architecture. One of these values should be
  39. * defined as the value of \c ARCH in the user project makefile via the \c -D compiler switch to GCC, to select the
  40. * target architecture.
  41. *
  42. * The selected architecture should remain consistent with the makefile \c ARCH value, which is used to select the
  43. * underlying driver source files for each architecture.
  44. *
  45. * @{
  46. */
  47. #ifndef __LUFA_ARCHITECTURES_H__
  48. #define __LUFA_ARCHITECTURES_H__
  49. /* Preprocessor Checks: */
  50. #if !defined(__INCLUDE_FROM_COMMON_H)
  51. #error Do not include this file directly. Include LUFA/Common/Common.h instead to gain this functionality.
  52. #endif
  53. /* Public Interface - May be used in end-application: */
  54. /* Macros: */
  55. /** Selects the Atmel 8-bit AVR (AT90USB* and ATMEGA*U* chips) architecture. */
  56. #define ARCH_AVR8 0
  57. /** Selects the Atmel 32-bit UC3 AVR (AT32UC3* chips) architecture. */
  58. #define ARCH_UC3 1
  59. /** Selects the Atmel XMEGA AVR (ATXMEGA* chips) architecture. */
  60. #define ARCH_XMEGA 2
  61. #if !defined(__DOXYGEN__)
  62. #define ARCH_ ARCH_AVR8
  63. #if !defined(ARCH)
  64. #define ARCH ARCH_AVR8
  65. #endif
  66. #endif
  67. #endif
  68. /** @} */