1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-26 17:55:30 +03:00

Move standard clock to 10.5mhz

This commit is contained in:
blckmn 2016-06-24 17:28:59 +10:00
parent b8263ec049
commit 134bb6f466
2 changed files with 168 additions and 170 deletions

View file

@ -265,7 +265,6 @@ bool spiTransfer(SPI_TypeDef *instance, uint8_t *out, const uint8_t *in, int len
} }
#ifdef STM32F303xC #ifdef STM32F303xC
SPI_SendData8(instance, b); SPI_SendData8(instance, b);
//SPI_I2S_SendData16(instance, b);
#else #else
SPI_I2S_SendData(instance, b); SPI_I2S_SendData(instance, b);
#endif #endif
@ -276,7 +275,6 @@ bool spiTransfer(SPI_TypeDef *instance, uint8_t *out, const uint8_t *in, int len
} }
#ifdef STM32F303xC #ifdef STM32F303xC
b = SPI_ReceiveData8(instance); b = SPI_ReceiveData8(instance);
//b = SPI_I2S_ReceiveData16(instance);
#else #else
b = SPI_I2S_ReceiveData(instance); b = SPI_I2S_ReceiveData(instance);
#endif #endif

View file

@ -40,7 +40,7 @@
#if defined(STM32F4) #if defined(STM32F4)
#define SPI_SLOW_CLOCK 128 //00.65625 MHz #define SPI_SLOW_CLOCK 128 //00.65625 MHz
#define SPI_STANDARD_CLOCK 16 //05.25000 MHz #define SPI_STANDARD_CLOCK 8 //10.50000 MHz
#define SPI_FAST_CLOCK 4 //21.00000 MHz #define SPI_FAST_CLOCK 4 //21.00000 MHz
#define SPI_ULTRAFAST_CLOCK 2 //42.00000 MHz #define SPI_ULTRAFAST_CLOCK 2 //42.00000 MHz
#else #else