cmsis.h 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. /*
  2. * @brief LPC5410x selective CMSIS inclusion file
  3. *
  4. * Copyright(C) NXP Semiconductors, 2014
  5. * All rights reserved.
  6. *
  7. * Software that is described herein is for illustrative purposes only
  8. * which provides customers with programming information regarding the
  9. * LPC products. This software is supplied "AS IS" without any warranties of
  10. * any kind, and NXP Semiconductors and its licensor disclaim any and
  11. * all warranties, express or implied, including all implied warranties of
  12. * merchantability, fitness for a particular purpose and non-infringement of
  13. * intellectual property rights. NXP Semiconductors assumes no responsibility
  14. * or liability for the use of the software, conveys no license or rights under any
  15. * patent, copyright, mask work right, or any other intellectual property rights in
  16. * or to any products. NXP Semiconductors reserves the right to make changes
  17. * in the software without notification. NXP Semiconductors also makes no
  18. * representation or warranty that such application will be suitable for the
  19. * specified use without further testing or modification.
  20. *
  21. * Permission to use, copy, modify, and distribute this software and its
  22. * documentation is hereby granted, under NXP Semiconductors' and its
  23. * licensor's relevant copyrights in the software, without fee, provided that it
  24. * is used in conjunction with NXP Semiconductors microcontrollers. This
  25. * copyright, permission, and disclaimer notice must appear in all copies of
  26. * this code.
  27. */
  28. #ifndef __CMSIS_H_
  29. #define __CMSIS_H_
  30. #include "lpc_types.h"
  31. #include "sys_config.h"
  32. #ifdef __cplusplus
  33. extern "C" {
  34. #endif
  35. /* Select correct CMSIS include file based on CORE_* definition */
  36. #if defined(CORE_M4)
  37. #include "cmsis_5410x.h"
  38. typedef LPC5410X_IRQn_Type IRQn_Type;
  39. #include "core_cm4.h" /*!< Cortex-M4 processor and core peripherals */
  40. #elif defined(CORE_M0PLUS)
  41. #include "cmsis_5410x_m0.h"
  42. typedef LPC5410X_M0_IRQn_Type IRQn_Type;
  43. #include "core_cm0plus.h" /*!< Cortex-M0 Plus processor and core peripherals */
  44. #else
  45. #error "No CORE_* definition is defined"
  46. #endif
  47. #ifdef __cplusplus
  48. }
  49. #endif
  50. #endif /* __CMSIS_H_ */