diff options
Diffstat (limited to 'lib/chibios-contrib/demos/LPC/LPC_11U35_USBDFU/cfg/mcuconf.h')
-rw-r--r-- | lib/chibios-contrib/demos/LPC/LPC_11U35_USBDFU/cfg/mcuconf.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/lib/chibios-contrib/demos/LPC/LPC_11U35_USBDFU/cfg/mcuconf.h b/lib/chibios-contrib/demos/LPC/LPC_11U35_USBDFU/cfg/mcuconf.h new file mode 100644 index 000000000..e8649cbe5 --- /dev/null +++ b/lib/chibios-contrib/demos/LPC/LPC_11U35_USBDFU/cfg/mcuconf.h | |||
@@ -0,0 +1,17 @@ | |||
1 | #ifndef MCUCONF_H | ||
2 | #define MCUCONF_H | ||
3 | |||
4 | #define LPC11U35_MCUCONF | ||
5 | |||
6 | #define LPC_USE_SYSOSC TRUE | ||
7 | #define LPC_SYSOSC_FREQUENCY 12000000UL // 12MHz | ||
8 | #define LPC_SYSPLLCLKSEL SYSCON_SYSPLLCLKSEL_SYSOSC | ||
9 | #define LPC_MAINCLKSEL SYSCON_MAINCLKSEL_PLLOUT | ||
10 | #define LPC_SYSPLL_MULT 4 // MVALUE 4 -> bits 0b00011 | ||
11 | #define LPC_SYSPLL_PDIV 4 // PSEL 2 -> bits 0b01 | ||
12 | #define LPC_SYS_DIV 1 // NO SYS DIV | ||
13 | |||
14 | #define LPC_USB_USE_USB1 TRUE | ||
15 | #define LPC_USB_USB1_IRQ_PRIORITY 3 | ||
16 | |||
17 | #endif | ||