My Marlin configs for Fabrikator Mini and CTC i3 Pro B
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

lpc17xx_libcfg_default.h 5.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181
  1. /**********************************************************************
  2. * $Id$ lpc17xx_libcfg_default.h 2010-05-21
  3. *//**
  4. * @file lpc17xx_libcfg_default.h
  5. * @brief Default Library configuration header file
  6. * @version 2.0
  7. * @date 21. May. 2010
  8. * @author NXP MCU SW Application Team
  9. *
  10. * Copyright(C) 2010, NXP Semiconductor
  11. * All rights reserved.
  12. *
  13. ***********************************************************************
  14. * Software that is described herein is for illustrative purposes only
  15. * which provides customers with programming information regarding the
  16. * products. This software is supplied "AS IS" without any warranties.
  17. * NXP Semiconductors assumes no responsibility or liability for the
  18. * use of the software, conveys no license or title under any patent,
  19. * copyright, or mask work right to the product. NXP Semiconductors
  20. * reserves the right to make changes in the software without
  21. * notification. NXP Semiconductors also make no representation or
  22. * warranty that such application will be suitable for the specified
  23. * use without further testing or modification.
  24. * Permission to use, copy, modify, and distribute this software and its
  25. * documentation is hereby granted, under NXP Semiconductors'
  26. * relevant copyright in the software, without fee, provided that it
  27. * is used in conjunction with NXP Semiconductors microcontrollers. This
  28. * copyright, permission, and disclaimer notice must appear in all copies of
  29. * this code.
  30. **********************************************************************/
  31. /* Library Configuration group ----------------------------------------------------------- */
  32. /** @defgroup LIBCFG_DEFAULT LIBCFG_DEFAULT (Default Library Configuration)
  33. * @ingroup LPC1700CMSIS_FwLib_Drivers
  34. * @{
  35. */
  36. #ifndef LPC17XX_LIBCFG_DEFAULT_H_
  37. #define LPC17XX_LIBCFG_DEFAULT_H_
  38. /* Includes ------------------------------------------------------------------- */
  39. #include "lpc_types.h"
  40. /* Public Macros -------------------------------------------------------------- */
  41. /** @defgroup LIBCFG_DEFAULT_Public_Macros LIBCFG_DEFAULT Public Macros
  42. * @{
  43. */
  44. /************************** DEBUG MODE DEFINITIONS *********************************/
  45. /* Un-comment the line below to compile the library in DEBUG mode, this will expanse
  46. the "CHECK_PARAM" macro in the FW library code */
  47. //#define DEBUG
  48. /******************* PERIPHERAL FW LIBRARY CONFIGURATION DEFINITIONS ***********************/
  49. /* Comment the line below to disable the specific peripheral inclusion */
  50. /* DEBUG_FRAMWORK ------------------------------ */
  51. #define _DBGFWK
  52. /* GPIO ------------------------------- */
  53. #define _GPIO
  54. /* EXTI ------------------------------- */
  55. #define _EXTI
  56. /* UART ------------------------------- */
  57. #define _UART
  58. #define _UART0
  59. #define _UART1
  60. #define _UART2
  61. #define _UART3
  62. /* SPI ------------------------------- */
  63. #define _SPI
  64. /* SYSTICK --------------------------- */
  65. #define _SYSTICK
  66. /* SSP ------------------------------- */
  67. #define _SSP
  68. #define _SSP0
  69. #define _SSP1
  70. /* I2C ------------------------------- */
  71. #define _I2C
  72. #define _I2C0
  73. #define _I2C1
  74. #define _I2C2
  75. /* TIMER ------------------------------- */
  76. #define _TIM
  77. /* WDT ------------------------------- */
  78. #define _WDT
  79. /* GPDMA ------------------------------- */
  80. #define _GPDMA
  81. /* DAC ------------------------------- */
  82. #define _DAC
  83. /* DAC ------------------------------- */
  84. #define _ADC
  85. /* PWM ------------------------------- */
  86. #define _PWM
  87. #define _PWM1
  88. /* RTC ------------------------------- */
  89. #define _RTC
  90. /* I2S ------------------------------- */
  91. #define _I2S
  92. /* USB device ------------------------------- */
  93. #define _USBDEV
  94. #define _USB_DMA
  95. /* QEI ------------------------------- */
  96. #define _QEI
  97. /* MCPWM ------------------------------- */
  98. #define _MCPWM
  99. /* CAN--------------------------------*/
  100. #define _CAN
  101. /* RIT ------------------------------- */
  102. #define _RIT
  103. /* EMAC ------------------------------ */
  104. #define _EMAC
  105. /************************** GLOBAL/PUBLIC MACRO DEFINITIONS *********************************/
  106. #ifdef DEBUG
  107. /*******************************************************************************
  108. * @brief The CHECK_PARAM macro is used for function's parameters check.
  109. * It is used only if the library is compiled in DEBUG mode.
  110. * @param[in] expr - If expr is false, it calls check_failed() function
  111. * which reports the name of the source file and the source
  112. * line number of the call that failed.
  113. * - If expr is true, it returns no value.
  114. * @return None
  115. *******************************************************************************/
  116. #define CHECK_PARAM(expr) ((expr) ? (void)0 : check_failed((uint8_t *)__FILE__, __LINE__))
  117. #else
  118. #define CHECK_PARAM(expr)
  119. #endif /* DEBUG */
  120. /**
  121. * @}
  122. */
  123. /* Public Functions ----------------------------------------------------------- */
  124. /** @defgroup LIBCFG_DEFAULT_Public_Functions LIBCFG_DEFAULT Public Functions
  125. * @{
  126. */
  127. #ifdef DEBUG
  128. void check_failed(uint8_t *file, uint32_t line);
  129. #endif
  130. /**
  131. * @}
  132. */
  133. #endif /* LPC17XX_LIBCFG_DEFAULT_H_ */
  134. /**
  135. * @}
  136. */
  137. /* --------------------------------- End Of File ------------------------------ */