summaryrefslogtreecommitdiff
path: root/nuttx/arch/arm/src/stm32
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2011-12-17 20:07:22 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2011-12-17 20:07:22 +0000
commit3154078ddbb8a28dc434f7bf42ea2523814bfe91 (patch)
treeee9a57bf65150b23194d99eecea02ee8af066e44 /nuttx/arch/arm/src/stm32
parent9a958200a692d239f9f67b27ec8ba672ce2188ef (diff)
downloadpx4-nuttx-3154078ddbb8a28dc434f7bf42ea2523814bfe91.tar.gz
px4-nuttx-3154078ddbb8a28dc434f7bf42ea2523814bfe91.tar.bz2
px4-nuttx-3154078ddbb8a28dc434f7bf42ea2523814bfe91.zip
Adds support for the STM32F103VCT6 and for the Hy-Mini STM32v board. Contributed by Laurent Latil
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4197 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/arch/arm/src/stm32')
-rw-r--r--nuttx/arch/arm/src/stm32/chip.h2
-rw-r--r--nuttx/arch/arm/src/stm32/stm32_spi.c8
2 files changed, 5 insertions, 5 deletions
diff --git a/nuttx/arch/arm/src/stm32/chip.h b/nuttx/arch/arm/src/stm32/chip.h
index 0b7b7ab8a..5a560edfe 100644
--- a/nuttx/arch/arm/src/stm32/chip.h
+++ b/nuttx/arch/arm/src/stm32/chip.h
@@ -53,6 +53,8 @@
# include "chip/stm32f103ze_pinmap.h"
# elif defined(CONFIG_ARCH_CHIP_STM32F103RET6)
# include "chip/stm32f103re_pinmap.h"
+# elif defined(CONFIG_ARCH_CHIP_STM32F103VCT6)
+# include "chip/stm32f103vc_pinmap.h"
# elif defined(CONFIG_ARCH_CHIP_STM32F107VC)
# include "chip/stm32f107vc_pinmap.h"
# else
diff --git a/nuttx/arch/arm/src/stm32/stm32_spi.c b/nuttx/arch/arm/src/stm32/stm32_spi.c
index abc641b49..efe04e391 100644
--- a/nuttx/arch/arm/src/stm32/stm32_spi.c
+++ b/nuttx/arch/arm/src/stm32/stm32_spi.c
@@ -905,7 +905,7 @@ static void spi_setmode(FAR struct spi_dev_s *dev, enum spi_mode_e mode)
spi_modifycr1(priv, setbits, clrbits);
- /* Save the mode so that subsequent re-configuratins will be faster */
+ /* Save the mode so that subsequent re-configurations will be faster */
#ifndef CONFIG_SPI_OWNBUS
priv->mode = mode;
@@ -1102,7 +1102,7 @@ static void spi_exchange(FAR struct spi_dev_s *dev, FAR const void *txbuffer,
* dev - Device-specific state data
* txbuffer - A pointer to the buffer of data to be sent
* rxbuffer - A pointer to a buffer in which to receive data
- * nwords - the length of data to be exchaned in units of words.
+ * nwords - the length of data to be exchanged in units of words.
* The wordsize is determined by the number of bits-per-word
* selected for the SPI interface. If nbits <= 8, the data is
* packed into uint8_t's; if nbits >8, the data is packed into uint16_t's
@@ -1169,7 +1169,7 @@ static void spi_sndblock(FAR struct spi_dev_s *dev, FAR const void *txbuffer, si
* Name: spi_recvblock
*
* Description:
- * Revice a block of data from SPI
+ * Receive a block of data from SPI
*
* Input Parameters:
* dev - Device-specific state data
@@ -1295,8 +1295,6 @@ FAR struct spi_dev_s *up_spiinitialize(int port)
#ifdef CONFIG_STM32_SPI1
if (port == 1)
{
- uint32_t mapr;
-
/* Select SPI1 */
priv = &g_spi1dev;