OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [freertos-6.1.1/] [Demo/] [CORTEX_STM32F103_Keil/] [STM32F10xFWLib/] [inc/] [stm32f10x_systick.h] - Blame information for rev 587

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 582 jeremybenn
/******************** (C) COPYRIGHT 2007 STMicroelectronics ********************
2
* File Name          : stm32f10x_systick.h
3
* Author             : MCD Application Team
4
* Date First Issued  : 09/29/2006
5
* Description        : This file contains all the functions prototypes for the
6
*                      SysTick firmware library.
7
********************************************************************************
8
* History:
9
* 04/02/2007: V0.2
10
* 02/05/2007: V0.1
11
* 09/29/2006: V0.01
12
********************************************************************************
13
* THE PRESENT SOFTWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS
14
* WITH CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE TIME.
15
* AS A RESULT, STMICROELECTRONICS SHALL NOT BE HELD LIABLE FOR ANY DIRECT,
16
* INDIRECT OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING FROM THE
17
* CONTENT OF SUCH SOFTWARE AND/OR THE USE MADE BY CUSTOMERS OF THE CODING
18
* INFORMATION CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS.
19
*******************************************************************************/
20
 
21
/* Define to prevent recursive inclusion -------------------------------------*/
22
#ifndef __STM32F10x_SYSTICK_H
23
#define __STM32F10x_SYSTICK_H
24
 
25
/* Includes ------------------------------------------------------------------*/
26
#include "stm32f10x_map.h"
27
 
28
/* Exported types ------------------------------------------------------------*/
29
/* Exported constants --------------------------------------------------------*/
30
/* SysTick clock source */
31
#define SysTick_CLKSource_HCLK_Div8    ((u32)0xFFFFFFFB)
32
#define SysTick_CLKSource_HCLK         ((u32)0x00000004)
33
 
34
#define IS_SYSTICK_CLK_SOURCE(SOURCE) ((SOURCE == SysTick_CLKSource_HCLK) || \
35
                                       (SOURCE == SysTick_CLKSource_HCLK_Div8))
36
 
37
/* SysTick counter state */
38
#define SysTick_Counter_Disable        ((u32)0xFFFFFFFE)
39
#define SysTick_Counter_Enable         ((u32)0x00000001)
40
#define SysTick_Counter_Clear          ((u32)0x00000000)
41
 
42
#define IS_SYSTICK_COUNTER(COUNTER) ((COUNTER == SysTick_Counter_Disable) || \
43
                                     (COUNTER == SysTick_Counter_Enable)  || \
44
                                     (COUNTER == SysTick_Counter_Clear))
45
 
46
/* SysTick Flag */
47
#define SysTick_FLAG_COUNT             ((u8)0x30)
48
#define SysTick_FLAG_SKEW              ((u8)0x5E)
49
#define SysTick_FLAG_NOREF             ((u8)0x5F)
50
 
51
#define IS_SYSTICK_FLAG(FLAG) ((FLAG == SysTick_FLAG_COUNT) || \
52
                               (FLAG == SysTick_FLAG_SKEW)  || \
53
                               (FLAG == SysTick_FLAG_NOREF))
54
 
55
#define IS_SYSTICK_RELOAD(RELOAD) ((RELOAD > 0) || (RELOAD <= 0xFFFFFF))
56
 
57
/* Exported macro ------------------------------------------------------------*/
58
/* Exported functions ------------------------------------------------------- */
59
void SysTick_CLKSourceConfig(u32 SysTick_CLKSource);
60
void SysTick_SetReload(u32 Reload);
61
void SysTick_CounterCmd(u32 SysTick_Counter);
62
void SysTick_ITConfig(FunctionalState NewState);
63
u32 SysTick_GetCounter(void);
64
FlagStatus SysTick_GetFlagStatus(u8 SysTick_FLAG);
65
 
66
#endif /* __STM32F10x_SYSTICK_H */
67
 
68
/******************* (C) COPYRIGHT 2007 STMicroelectronics *****END OF FILE****/

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.