STM32 V5 source code
guowenxue
2018-02-04 785deec23b4cb1e7c4c4d81eb808f195adb1d98a
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
/****************************************************************************
*   Copyright: (C)2014 Î人ÁèÔÆÇ¶ÈëʽʵÑéÊÒ www.emblinux.com
*      Author: GuoWenxue<guowenxue@gmail.com> QQ: 281143292
* Description: ·Ü¶·STM32v5¿ª·¢°åsystickºÍÑÓʱÏà¹Øº¯Êý£»
*   ChangeLog:
*        °æ±¾ºÅ     ÈÕÆÚ       ×÷Õß      ËµÃ÷
*        V1.0.0  2014.08.25  GuoWenxue   ·¢²¼¸Ã°æ±¾
****************************************************************************/
 
#ifndef __STM32V5_SYSTICK_H
#define __STM32V5_SYSTICK_H
#include "stm32f10x.h"
 
#define MSECOND_OF_CLOCKS   1000      /* Ê±ÖÓ½ÚÅÄÖжÏΪ1msÒ»´Î */
#define USECOND_OF_CLOCKS   1000000   /* Ê±ÖÓ½ÚÅÄÖжÏΪ1usÒ»´Î */
#define CLOCK_CONF_SECOND   MSECOND_OF_CLOCKS
#define SECOND         1000    /* 1second = 1000ms */
 
extern void sysclock_init(void);
extern void sysclock_decrement(void);
extern void msleep(__IO uint32_t ms);
 
#endif