Small optimization.

git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@8253 35acf78f-673a-0410-8e92-d51de3d6d3f4
master
Giovanni Di Sirio 2015-08-28 14:06:07 +00:00
parent ac6f72603a
commit 0e0dc7418e
1 changed files with 1 additions and 3 deletions

View File

@ -116,7 +116,7 @@ SPIDriver SPID6;
/* Driver local variables and types. */
/*===========================================================================*/
static uint16_t dummytx;
static const uint16_t dummytx = 0xFFFFU;
static uint16_t dummyrx;
/*===========================================================================*/
@ -184,8 +184,6 @@ static void spi_lld_serve_tx_interrupt(SPIDriver *spip, uint32_t flags) {
*/
void spi_lld_init(void) {
dummytx = 0xFFFF;
#if STM32_SPI_USE_SPI1
spiObjectInit(&SPID1);
SPID1.spi = SPI1;