systick.h 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. //*****************************************************************************
  2. //
  3. // systick.h - Prototypes for the SysTick driver.
  4. //
  5. // Copyright (c) 2005-2009 Luminary Micro, Inc. All rights reserved.
  6. // Software License Agreement
  7. //
  8. // Luminary Micro, Inc. (LMI) is supplying this software for use solely and
  9. // exclusively on LMI's microcontroller products.
  10. //
  11. // The software is owned by LMI and/or its suppliers, and is protected under
  12. // applicable copyright laws. All rights are reserved. You may not combine
  13. // this software with "viral" open-source software in order to form a larger
  14. // program. Any use in violation of the foregoing restrictions may subject
  15. // the user to criminal sanctions under applicable laws, as well as to civil
  16. // liability for the breach of the terms and conditions of this license.
  17. //
  18. // THIS SOFTWARE IS PROVIDED "AS IS". NO WARRANTIES, WHETHER EXPRESS, IMPLIED
  19. // OR STATUTORY, INCLUDING, BUT NOT LIMITED TO, IMPLIED WARRANTIES OF
  20. // MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE APPLY TO THIS SOFTWARE.
  21. // LMI SHALL NOT, IN ANY CIRCUMSTANCES, BE LIABLE FOR SPECIAL, INCIDENTAL, OR
  22. // CONSEQUENTIAL DAMAGES, FOR ANY REASON WHATSOEVER.
  23. //
  24. // This is part of revision 4694 of the Stellaris Peripheral Driver Library.
  25. //
  26. //*****************************************************************************
  27. #ifndef __SYSTICK_H__
  28. #define __SYSTICK_H__
  29. //*****************************************************************************
  30. //
  31. // If building with a C++ compiler, make all of the definitions in this header
  32. // have a C binding.
  33. //
  34. //*****************************************************************************
  35. #ifdef __cplusplus
  36. extern "C"
  37. {
  38. #endif
  39. //*****************************************************************************
  40. //
  41. // Prototypes for the APIs.
  42. //
  43. //*****************************************************************************
  44. extern void SysTickEnable(void);
  45. extern void SysTickDisable(void);
  46. extern void SysTickIntRegister(void (*pfnHandler)(void));
  47. extern void SysTickIntUnregister(void);
  48. extern void SysTickIntEnable(void);
  49. extern void SysTickIntDisable(void);
  50. extern void SysTickPeriodSet(unsigned long ulPeriod);
  51. extern unsigned long SysTickPeriodGet(void);
  52. extern unsigned long SysTickValueGet(void);
  53. //*****************************************************************************
  54. //
  55. // Mark the end of the C bindings section for C++ compilers.
  56. //
  57. //*****************************************************************************
  58. #ifdef __cplusplus
  59. }
  60. #endif
  61. #endif // __SYSTICK_H__