mirror of
https://github.com/paparazzi/paparazzi.git
synced 2026-06-05 23:49:00 +08:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user