system.h 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. /**************************************************************************//**
  2. * @file system_LPC8xx.h
  3. * @brief CMSIS Device System Header File for
  4. * NXP LPC845
  5. * @version V1.10
  6. * @date 19. August 2014
  7. *
  8. * @note
  9. * Copyright (C) 2014 ARM Limited. All rights reserved.
  10. *
  11. * @par
  12. * ARM Limited (ARM) is supplying this software for use with Cortex-M
  13. * processor based microcontrollers. This file can be freely distributed
  14. * within development tools that are supporting such ARM based processors.
  15. *
  16. * @par
  17. * THIS SOFTWARE IS PROVIDED "AS IS". NO WARRANTIES, WHETHER EXPRESS, IMPLIED
  18. * OR STATUTORY, INCLUDING, BUT NOT LIMITED TO, IMPLIED WARRANTIES OF
  19. * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE APPLY TO THIS SOFTWARE.
  20. * ARM SHALL NOT, IN ANY CIRCUMSTANCES, BE LIABLE FOR SPECIAL, INCIDENTAL, OR
  21. * CONSEQUENTIAL DAMAGES, FOR ANY REASON WHATSOEVER.
  22. *
  23. ******************************************************************************/
  24. #ifndef __SYSTEM_LPC8xx_H
  25. #define __SYSTEM_LPC8xx_H
  26. #ifdef __cplusplus
  27. extern "C" {
  28. #endif
  29. #include <stdint.h>
  30. extern uint32_t main_clk;
  31. extern uint32_t wdt_osc_clk;
  32. extern uint32_t sys_pll0_clk;
  33. extern uint32_t fro_clk;
  34. extern uint32_t fro_div_clk;
  35. extern uint32_t system_ahb_clk;
  36. /**
  37. * Initialize the system
  38. *
  39. * @param none
  40. * @return none
  41. *
  42. * @brief Setup the microcontroller system.
  43. * Initialize the System and update the SystemCoreClock variable.
  44. */
  45. extern void SystemInit (void);
  46. /**
  47. * Update SystemCoreClock variable
  48. *
  49. * @param none
  50. * @return none
  51. *
  52. * @brief Updates the SystemCoreClock with current core Clock
  53. * retrieved from cpu registers.
  54. */
  55. extern void SystemCoreClockUpdate (void);
  56. #ifdef __cplusplus
  57. }
  58. #endif
  59. #endif /* __SYSTEM_LPC8xx_H */