system_LPC122x.h 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. /******************************************************************************
  2. * @file: system_LPC122x.h
  3. * @purpose: CMSIS Cortex-M0 Device Peripheral Access Layer Header File
  4. * for the NXP LPC122x Device Series
  5. * @version: V1.0
  6. * @date: 25. Nov. 2008
  7. *----------------------------------------------------------------------------
  8. *
  9. * Copyright (C) 2008 ARM Limited. All rights reserved.
  10. *
  11. * ARM Limited (ARM) is supplying this software for use with Cortex-M0
  12. * processor based microcontrollers. This file can be freely distributed
  13. * within development tools that are supporting such ARM based processors.
  14. *
  15. * THIS SOFTWARE IS PROVIDED "AS IS". NO WARRANTIES, WHETHER EXPRESS, IMPLIED
  16. * OR STATUTORY, INCLUDING, BUT NOT LIMITED TO, IMPLIED WARRANTIES OF
  17. * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE APPLY TO THIS SOFTWARE.
  18. * ARM SHALL NOT, IN ANY CIRCUMSTANCES, BE LIABLE FOR SPECIAL, INCIDENTAL, OR
  19. * CONSEQUENTIAL DAMAGES, FOR ANY REASON WHATSOEVER.
  20. *
  21. ******************************************************************************/
  22. #ifndef __SYSTEM_LPC122x_H
  23. #define __SYSTEM_LPC122x_H
  24. /* Vector Table Base ---------------------------------------------------------*/
  25. #define NVIC_VectTab_RAM (0x10000000)
  26. #define NVIC_VectTab_FLASH (0x00000000)
  27. extern uint32_t ClockSource;
  28. extern uint32_t SystemFrequency; /*!< System Clock Frequency (Core Clock) */
  29. extern uint32_t SystemAHBFrequency;
  30. /**
  31. * Initialize the system
  32. *
  33. * @param none
  34. * @return none
  35. *
  36. * @brief Setup the microcontroller system.
  37. * Initialize the System and update the SystemFrequency variable.
  38. */
  39. extern void SystemInit (void);
  40. #endif