forked from rikka0w0/CH55x_USB_CompositeDevice
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ch554_conf.h
46 lines (39 loc) · 785 Bytes
/
ch554_conf.h
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#ifndef __CH554_CONF_H__
#define __CH554_CONF_H__
#define UART0_BUAD 57600
//#define CLOCK_FREQ_32
//#define CLOCK_FREQ_24
#define CLOCK_FREQ_16
//#define CLOCK_FREQ_12
//#define CLOCK_FREQ_6
//#define CLOCK_FREQ_3
//#define CLOCK_FREQ_P750
//#define CLOCK_FREQ_P1875
#ifdef CLOCK_FREQ_32
#define FREQ_SYS 32000000
#endif
#ifdef CLOCK_FREQ_24
#define FREQ_SYS 24000000
#endif
#ifdef CLOCK_FREQ_16
#define FREQ_SYS 16000000
#endif
#ifdef CLOCK_FREQ_12
#define FREQ_SYS 12000000
#endif
#ifdef CLOCK_FREQ_6
#define FREQ_SYS 6000000
#endif
#ifdef CLOCK_FREQ_3
#define FREQ_SYS 3000000
#endif
#ifdef CLOCK_FREQ_P750
#define FREQ_SYS 750000
#endif
#ifdef CLOCK_FREQ_P1875
#define FREQ_SYS 187500
#endif
void CH554_Init(void);
// Interrupt Handlers
void USBInterrupt(void);
#endif