#ifndef _DELAY_H_
|
#define _DELAY_H_
|
#include "fm33a0xxev_cmu.h"
|
|
//µÎ´ð¶¨Ê±Æ÷ʱÖÓÔ´¶¨Òå
|
#define SYSTICK_CLOCK_SOURCE_SCLK 0xFFFFFF3F
|
#define SYSTICK_CLOCK_SOURCE_LSCLK 0xFFFFFF7F
|
#define SYSTICK_CLOCK_SOURCE_RFU 0xFFFFFFBF
|
#define SYSTICK_CLOCK_SOURCE_SYSCLK 0xFFFFFFFF
|
|
#define SYSTICK_CLOCK_SOURCE_U_SCLK 0x00000000
|
#define SYSTICK_CLOCK_SOURCE_U_LSCLK 0x00000040
|
#define SYSTICK_CLOCK_SOURCE_U_RFU 0x00000080
|
#define SYSTICK_CLOCK_SOURCE_U_SYSCLK 0x000000C0
|
|
#define SYSCLOCK_U /* 8000000 //*/ 12000000
|
|
typedef int (*ConditionHook)(void);
|
|
void delay_init(uint32_t sysclkfre);
|
void delay_ms(uint32_t ms);
|
void delay_us(uint32_t us);
|
|
|
|
|
|
|
|
|
#endif
|