Small optimization.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@8253 35acf78f-673a-0410-8e92-d51de3d6d3f4master
parent
ac6f72603a
commit
0e0dc7418e
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue