diff options
-rw-r--r-- | demos/ARMCM3-LPC1343-GCC/mcuconf.h | 14 | ||||
-rw-r--r-- | os/hal/platforms/LPC11xx/spi_lld.h | 3 | ||||
-rw-r--r-- | os/hal/platforms/LPC13xx/hal_lld.h | 10 | ||||
-rw-r--r-- | os/hal/platforms/LPC13xx/spi_lld.h | 3 |
4 files changed, 21 insertions, 9 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
diff --git a/os/hal/platforms/LPC11xx/spi_lld.h b/os/hal/platforms/LPC11xx/spi_lld.h index 64f87c679..7b6374172 100644 --- a/os/hal/platforms/LPC11xx/spi_lld.h +++ b/os/hal/platforms/LPC11xx/spi_lld.h @@ -37,7 +37,7 @@ /**
* @brief Hardware FIFO depth. */
-#define LPC11xx_SSP_FIFO_DEPTH 8
+#define LPC11xx_SSP_FIFO_DEPTH 8
#define CR0_DSSMASK 0x0F
#define CR0_DSS4BIT 3
@@ -89,7 +89,6 @@ #define ICR_ROR 1
#define ICR_RT 2
-
/**
* @brief SCK0 signal assigned to pin PIO0_10.
*/
diff --git a/os/hal/platforms/LPC13xx/hal_lld.h b/os/hal/platforms/LPC13xx/hal_lld.h index da44b5012..386ec44a6 100644 --- a/os/hal/platforms/LPC13xx/hal_lld.h +++ b/os/hal/platforms/LPC13xx/hal_lld.h @@ -61,7 +61,7 @@ * @brief System PLL clock source.
*/
#if !defined(LPC13xx_PLLCLK_SOURCE) || defined(__DOXYGEN__)
-#define LPC13xx_PLLCLK_SOURCE SYSPLLCLKSEL_SYSOSC
+#define LPC13xx_PLLCLK_SOURCE SYSPLLCLKSEL_SYSOSC
#endif
/**
@@ -70,7 +70,7 @@ * must not exceed the CCO ratings.
*/
#if !defined(LPC13xx_SYSPLL_MUL) || defined(__DOXYGEN__)
-#define LPC13xx_SYSPLL_MUL 6
+#define LPC13xx_SYSPLL_MUL 6
#endif
/**
@@ -78,14 +78,14 @@ * @note The value must be chosen between (2, 4, 8, 16).
*/
#if !defined(LPC13xx_SYSPLL_DIV) || defined(__DOXYGEN__)
-#define LPC13xx_SYSPLL_DIV 4
+#define LPC13xx_SYSPLL_DIV 4
#endif
/**
* @brief System main clock source.
*/
#if !defined(LPC13xx_MAINCLK_SOURCE) || defined(__DOXYGEN__)
-#define LPC13xx_MAINCLK_SOURCE SYSMAINCLKSEL_PLLOUT
+#define LPC13xx_MAINCLK_SOURCE SYSMAINCLKSEL_PLLOUT
#endif
/**
@@ -93,7 +93,7 @@ * @note The value must be chosen between (1...255).
*/
#if !defined(LPC13xx_SYSCLK_DIV) || defined(__DOXYGEN__)
-#define LPC13xx_SYSABHCLK_DIV 1
+#define LPC13xx_SYSABHCLK_DIV 1
#endif
/*===========================================================================*/
diff --git a/os/hal/platforms/LPC13xx/spi_lld.h b/os/hal/platforms/LPC13xx/spi_lld.h index 5d4dcb334..037627291 100644 --- a/os/hal/platforms/LPC13xx/spi_lld.h +++ b/os/hal/platforms/LPC13xx/spi_lld.h @@ -37,7 +37,7 @@ /**
* @brief Hardware FIFO depth. */
-#define LPC13xx_SSP_FIFO_DEPTH 8
+#define LPC13xx_SSP_FIFO_DEPTH 8
#define CR0_DSSMASK 0x0F
#define CR0_DSS4BIT 3
@@ -89,7 +89,6 @@ #define ICR_ROR 1
#define ICR_RT 2
-
/**
* @brief SCK0 signal assigned to pin PIO0_10.
*/
|