aboutsummaryrefslogtreecommitdiffstats
path: root/demos
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2010-12-05 12:18:15 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2010-12-05 12:18:15 +0000
commitd8edc8d012500fa4b97d7f8f9dc1aa15bfd9014e (patch)
tree51c82a4c8032944953990c76f26ad9ae0e2fa226 /demos
parentf650ce36c1566f76604a7483bce91ca0d508456f (diff)
downloadChibiOS-d8edc8d012500fa4b97d7f8f9dc1aa15bfd9014e.tar.gz
ChibiOS-d8edc8d012500fa4b97d7f8f9dc1aa15bfd9014e.tar.bz2
ChibiOS-d8edc8d012500fa4b97d7f8f9dc1aa15bfd9014e.zip
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@2460 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'demos')
-rw-r--r--demos/ARMCM3-LPC1343-GCC/mcuconf.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/demos/ARMCM3-LPC1343-GCC/mcuconf.h b/demos/ARMCM3-LPC1343-GCC/mcuconf.h
index 5eb8abe4a..f5d119449 100644
--- a/demos/ARMCM3-LPC1343-GCC/mcuconf.h
+++ b/demos/ARMCM3-LPC1343-GCC/mcuconf.h
@@ -31,6 +31,11 @@
/*
* HAL driver system settings.
*/
+#define LPC13xx_PLLCLK_SOURCE SYSPLLCLKSEL_SYSOSC
+#define LPC13xx_SYSPLL_MUL 6
+#define LPC13xx_SYSPLL_DIV 4
+#define LPC13xx_MAINCLK_SOURCE SYSMAINCLKSEL_PLLOUT
+#define LPC13xx_SYSABHCLK_DIV 1
/*
* ADC driver system settings.
@@ -47,7 +52,16 @@
/*
* SERIAL driver system settings.
*/
+#define LPC13xx_SERIAL_USE_UART0 TRUE
+#define LPC13xx_SERIAL_FIFO_PRELOAD 16
+#define LPC13xx_SERIAL_UART0CLKDIV 1
+#define LPC13xx_SERIAL_UART0_IRQ_PRIORITY 3
/*
* SPI driver system settings.
*/
+#define LPC13xx_SPI_USE_SSP0 TRUE
+#define LPC13xx_SPI_SSP0CLKDIV 1
+#define LPC13xx_SPI_SSP0_IRQ_PRIORITY 5
+#define LPC13xx_SPI_SSP_ERROR_HOOK(spip) chSysHalt()
+#define LPC13xx_SPI_SCK0_SELECTOR SCK0_IS_PIO2_11