diff --git a/sw/airborne/boards/tiny_1.1.h b/sw/airborne/boards/tiny_1.1.h index 9f0d40070e..bec08225e0 100644 --- a/sw/airborne/boards/tiny_1.1.h +++ b/sw/airborne/boards/tiny_1.1.h @@ -10,9 +10,16 @@ /* CPU clock freq. */ #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 */ #define PBSD_BITS 0x00 #define PBSD_VAL 4 +#endif /* Peripheral bus clock freq. */ #define PCLK (CCLK / PBSD_VAL)