systick.h 2.3 KB

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