/****************************************************************************
|
* 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
|