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