From 0e0dc7418ea9f11fa61a9288a3ce10b5cfe7bc6f Mon Sep 17 00:00:00 2001 From: Giovanni Di Sirio Date: Fri, 28 Aug 2015 14:06:07 +0000 Subject: Small optimization. git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@8253 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- os/hal/ports/STM32/LLD/SPIv2/spi_lld.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'os') diff --git a/os/hal/ports/STM32/LLD/SPIv2/spi_lld.c b/os/hal/ports/STM32/LLD/SPIv2/spi_lld.c index a31563ef4..ca869c551 100644 --- a/os/hal/ports/STM32/LLD/SPIv2/spi_lld.c +++ b/os/hal/ports/STM32/LLD/SPIv2/spi_lld.c @@ -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; -- cgit v1.2.3