diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2013-02-01 15:32:39 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2013-02-01 15:32:39 +0000 |
commit | 7dba70eeaf6654f9837902db9ac290fd5b4cfed4 (patch) | |
tree | 2e02176b8ca78da4db5ac2181c8bdb95ab8cd2d2 /nuttx/arch/arm/src/stm32/chip | |
parent | 43c642c61857ceefe07ce0fb929c569b52a545a5 (diff) | |
download | px4-nuttx-7dba70eeaf6654f9837902db9ac290fd5b4cfed4.tar.gz px4-nuttx-7dba70eeaf6654f9837902db9ac290fd5b4cfed4.tar.bz2 px4-nuttx-7dba70eeaf6654f9837902db9ac290fd5b4cfed4.zip |
Additional patches from Petteri Aimonen for FAT, STM32 SPI, and AT25
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5593 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/arch/arm/src/stm32/chip')
-rw-r--r-- | nuttx/arch/arm/src/stm32/chip/stm32_spi.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/nuttx/arch/arm/src/stm32/chip/stm32_spi.h b/nuttx/arch/arm/src/stm32/chip/stm32_spi.h index d80c447bb..7731d03b0 100644 --- a/nuttx/arch/arm/src/stm32/chip/stm32_spi.h +++ b/nuttx/arch/arm/src/stm32/chip/stm32_spi.h @@ -47,7 +47,13 @@ * Pre-processor Definitions ************************************************************************************/ -#define STM32_SPI_CLK_MAX 18000000UL /* Maximum allowed speed as per specifications for all SPIs */ +/* Maximum allowed speed as per specifications for all SPIs */ + +#if defined(CONFIG_STM32_STM32F40XX) +# define STM32_SPI_CLK_MAX 37500000UL +#else +# define STM32_SPI_CLK_MAX 18000000UL +#endif /* Register Offsets *****************************************************************/ |