SPI test at maximum speed.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@13333 27425a3e-05d8-49a3-a47f-9c15f0e5edd8
This commit is contained in:
parent
0bbb79d995
commit
d4bb13cec9
|
@ -91,7 +91,7 @@
|
||||||
#define STM32_PLL1_DIVN_VALUE 480
|
#define STM32_PLL1_DIVN_VALUE 480
|
||||||
#define STM32_PLL1_FRACN_VALUE 0
|
#define STM32_PLL1_FRACN_VALUE 0
|
||||||
#define STM32_PLL1_DIVP_VALUE 2
|
#define STM32_PLL1_DIVP_VALUE 2
|
||||||
#define STM32_PLL1_DIVQ_VALUE 20
|
#define STM32_PLL1_DIVQ_VALUE 4
|
||||||
#define STM32_PLL1_DIVR_VALUE 8
|
#define STM32_PLL1_DIVR_VALUE 8
|
||||||
#define STM32_PLL2_ENABLED TRUE
|
#define STM32_PLL2_ENABLED TRUE
|
||||||
#define STM32_PLL2_P_ENABLED TRUE
|
#define STM32_PLL2_P_ENABLED TRUE
|
||||||
|
|
|
@ -37,7 +37,7 @@
|
||||||
void spi_circular_cb(SPIDriver *spip);
|
void spi_circular_cb(SPIDriver *spip);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Circular SPI configuration (25MHz, CPHA=0, CPOL=0, MSb first).
|
* Circular SPI configuration (30MHz, CPHA=0, CPOL=0, MSb first).
|
||||||
*/
|
*/
|
||||||
const SPIConfig c_spicfg = {
|
const SPIConfig c_spicfg = {
|
||||||
true,
|
true,
|
||||||
|
@ -49,19 +49,19 @@ const SPIConfig c_spicfg = {
|
||||||
};
|
};
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Maximum speed SPI configuration (25MHz, CPHA=0, CPOL=0, MSb first).
|
* Maximum speed SPI configuration (120MHz, CPHA=0, CPOL=0, MSb first).
|
||||||
*/
|
*/
|
||||||
const SPIConfig hs_spicfg = {
|
const SPIConfig hs_spicfg = {
|
||||||
false,
|
false,
|
||||||
NULL,
|
NULL,
|
||||||
GPIOD,
|
GPIOD,
|
||||||
14,
|
14,
|
||||||
SPI_CFG1_MBR_DIV8 | SPI_CFG1_DSIZE_VALUE(7),
|
SPI_CFG1_MBR_DIV2 | SPI_CFG1_DSIZE_VALUE(7),
|
||||||
0
|
0
|
||||||
};
|
};
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Low speed SPI configuration (1.5625MHz, CPHA=0, CPOL=0, MSb first).
|
* Low speed SPI configuration (1,875MHz, CPHA=0, CPOL=0, MSb first).
|
||||||
*/
|
*/
|
||||||
const SPIConfig ls_spicfg = {
|
const SPIConfig ls_spicfg = {
|
||||||
false,
|
false,
|
||||||
|
|
Loading…
Reference in New Issue