fix telemetry transparent_usb for tiny1.1. Use higher clock for tiny1.1 as well if USE_USB_HIGH_PCLK is defined

This commit is contained in:
Felix Ruess
2011-10-19 19:34:02 +02:00
parent 8e94f27b1a
commit e5238af5dd
+7
View File
@@ -10,9 +10,16 @@
/* CPU clock freq. */ /* CPU clock freq. */
#define CCLK (FOSC * PLL_MUL) #define CCLK (FOSC * PLL_MUL)
#ifdef USE_USB_HIGH_PCLK
/* Peripheral bus speed mask 0x00-> 4, 0x01-> 1, 0x02-> 2 */
/* change both PBSD_BITS/VAL 15MHz, 60MHz, 30MHz */
#define PBSD_BITS 0x02
#define PBSD_VAL 2
#else
/* Peripheral bus speed mask 0x00->4, 0x01-> 1, 0x02 -> 2 */ /* Peripheral bus speed mask 0x00->4, 0x01-> 1, 0x02 -> 2 */
#define PBSD_BITS 0x00 #define PBSD_BITS 0x00
#define PBSD_VAL 4 #define PBSD_VAL 4
#endif
/* Peripheral bus clock freq. */ /* Peripheral bus clock freq. */
#define PCLK (CCLK / PBSD_VAL) #define PCLK (CCLK / PBSD_VAL)