forked from SZV10X_Software/SZV103_FM33A0xxEV_SiZhu

wujiazhi
2024-06-07 d0cca79a4aa7efce979c6aed275fe1bb75af4cc4
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#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