00001
00002
00003
00004
00005 #ifndef USB_MAIN_H
00006 #define USB_MAIN_H
00007
00008
00009
00010
00011
00012 #if defined C8051F320_H
00013
00014 #define USB_4X_CLOCK 0x00 // Select 4x clock multiplier,
00015
00016 #define USB_INT_OSC_DIV_2 0x10 // See Oscillators in Datasheet
00017 #define USB_EXT_OSC 0x20
00018 #define USB_EXT_OSC_DIV_2 0x30
00019 #define USB_EXT_OSC_DIV_3 0x40
00020 #define USB_EXT_OSC_DIV_4 0x50
00021
00022
00023 #define SYS_INT_OSC 0x00 // Select to use internal osc.
00024 #define SYS_EXT_OSC 0x01 // Select to use external osc.
00025 #define SYS_4X_DIV_2 0x02
00026 #endif // C8051F320_H
00027
00028 #if defined C8051F326_H
00029
00030 #define USB_4X_CLOCK 0x00 // Select 4x clock multiplier,
00031
00032 #define USB_INT_OSC_DIV_2 0x10 // See Oscillators in Datasheet
00033 #define USB_EXT_OSC 0x20
00034 #define USB_CLOCK_OFF 0x30
00035
00036
00037 #define SYS_INT_OSC 0x00 // Select to use internal osc.
00038 #define SYS_EXT_OSC 0x01 // Select to use external osc.
00039 #define SYS_4X_DIV_2 0x02
00040 #define SYS_LOW_FREQ_OSC 0x03 // Low frequency OSC
00041 #endif // C8051F326_H
00042
00043 #if defined C8051F340_H
00044
00045 #define USB_4X_CLOCK 0x00 // Select 4x clock multiplier,
00046
00047 #define USB_INT_OSC_DIV_2 0x10 // See Oscillators in Datasheet
00048 #define USB_EXT_OSC 0x20
00049 #define USB_EXT_OSC_DIV_2 0x30
00050 #define USB_EXT_OSC_DIV_3 0x40
00051 #define USB_EXT_OSC_DIV_4 0x50
00052
00053
00054 #define SYS_INT_OSC 0x00 // Select to use internal osc.
00055 #define SYS_EXT_OSC 0x01 // Select to use external osc.
00056 #define SYS_4X_DIV_2 0x02
00057 #define SYS_4X 0x03
00058 #define SYS_LOW_FREQ_OSC 0x04 // Low frequency OSC
00059 #endif // C8051F340_H
00060
00061
00062
00063
00064
00065
00066
00067
00068
00069
00070 #endif
00071
00072
00073
00074