From 356e0f5fff2a9f1f633df8eb63c17f65fc280163 Mon Sep 17 00:00:00 2001 From: Giovanni Di Sirio Date: Fri, 13 Apr 2018 09:02:27 +0000 Subject: Fixed bug #937. git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@11919 110e8d01-0319-4d1e-a829-52ad28d1bb01 --- os/hal/include/hal_spi.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'os/hal/include') diff --git a/os/hal/include/hal_spi.h b/os/hal/include/hal_spi.h index 3649c7508..a94f5dee7 100644 --- a/os/hal/include/hal_spi.h +++ b/os/hal/include/hal_spi.h @@ -157,34 +157,34 @@ do { \ #elif SPI_SELECT_MODE == SPI_SELECT_MODE_LINE #define spiSelectI(spip) \ do { \ - palClearLine(spip->config->ssline); \ + palClearLine((spip)->config->ssline); \ } while (false) #define spiUnselectI(spip) \ do { \ - palSetLine(spip->config->ssline); \ + palSetLine((spip)->config->ssline); \ } while (false) #elif SPI_SELECT_MODE == SPI_SELECT_MODE_PORT #define spiSelectI(spip) \ do { \ - palClearPort(spip->config->ssport, spip->config->ssmask); \ + palClearPort((spip)->config->ssport, (spip)->config->ssmask); \ } while (false) #define spiUnselectI(spip) \ do { \ - palSetPort(spip->config->ssport, spip->config->ssmask); \ + palSetPort((spip)->config->ssport, (spip)->config->ssmask); \ } while (false) #elif SPI_SELECT_MODE == SPI_SELECT_MODE_PAD #define spiSelectI(spip) \ do { \ - palClearPad(spip->config->ssport, spip->config->sspad); \ + palClearPad((spip)->config->ssport, (spip)->config->sspad); \ } while (false) #define spiUnselectI(spip) \ do { \ - palSetPad(spip->config->ssport, spip->config->sspad); \ + palSetPad((spip)->config->ssport, (spip)->config->sspad); \ } while (false) #elif SPI_SELECT_MODE == SPI_SELECT_MODE_NONE -- cgit v1.2.3