From fe64ed54b96ea574de487f7bb763ca2a33dcea6b Mon Sep 17 00:00:00 2001 From: Alin Jerpelea Date: Sun, 21 Mar 2021 22:16:40 +0100 Subject: [PATCH] boards: arm: stm32: fix Mixed case identifier Mixed case identifier fix to pass CI Signed-off-by: Alin Jerpelea --- boards/arm/stm32/olimexino-stm32/src/olimexino-stm32.h | 6 +++--- boards/arm/stm32/olimexino-stm32/src/stm32_spi.c | 8 ++++---- boards/arm/stm32/olimexino-stm32/src/stm32_usbdev.c | 4 ++-- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/boards/arm/stm32/olimexino-stm32/src/olimexino-stm32.h b/boards/arm/stm32/olimexino-stm32/src/olimexino-stm32.h index 1fa4d01c20..30d4ebb3d0 100644 --- a/boards/arm/stm32/olimexino-stm32/src/olimexino-stm32.h +++ b/boards/arm/stm32/olimexino-stm32/src/olimexino-stm32.h @@ -99,7 +99,7 @@ */ #define GPIO_USB_VBUS (GPIO_INPUT | GPIO_CNF_INFLOAT | GPIO_PORTC | GPIO_PIN11) -#define GPIO_USB_PULLUPn (GPIO_OUTPUT | GPIO_CNF_OUTPP | GPIO_MODE_50MHz | \ +#define GPIO_USB_PULLUPN (GPIO_OUTPUT | GPIO_CNF_OUTPP | GPIO_MODE_50MHz | \ GPIO_PORTC | GPIO_PIN12 | GPIO_OUTPUT_SET) /* SPI ********************************************************************** @@ -114,11 +114,11 @@ #define GPIO_SPI1_SSn (GPIO_OUTPUT | GPIO_CNF_OUTPP | GPIO_MODE_50MHz | \ GPIO_PORTC | GPIO_PIN9 | GPIO_OUTPUT_SET) -#define USER_CSn GPIO_SPI1_SSn +#define USER_CSN GPIO_SPI1_SSn #define GPIO_SPI2_SSn (GPIO_OUTPUT | GPIO_CNF_OUTPP | GPIO_MODE_50MHz | \ GPIO_PORTD | GPIO_PIN2 | GPIO_OUTPUT_SET) -#define MMCSD_CSn GPIO_SPI2_SSn +#define MMCSD_CSN GPIO_SPI2_SSn /**************************************************************************** * Public Types diff --git a/boards/arm/stm32/olimexino-stm32/src/stm32_spi.c b/boards/arm/stm32/olimexino-stm32/src/stm32_spi.c index f171a8e2be..fba745b2d0 100644 --- a/boards/arm/stm32/olimexino-stm32/src/stm32_spi.c +++ b/boards/arm/stm32/olimexino-stm32/src/stm32_spi.c @@ -56,11 +56,11 @@ void weak_function stm32_spidev_initialize(void) /* Setup CS */ #ifdef CONFIG_STM32_SPI1 - stm32_configgpio(USER_CSn); + stm32_configgpio(USER_CSN); #endif #ifdef CONFIG_STM32_SPI2 - stm32_configgpio(MMCSD_CSn); + stm32_configgpio(MMCSD_CSN); #endif } @@ -98,7 +98,7 @@ void stm32_spi1select(FAR struct spi_dev_s *dev, (int)devid, selected ? "assert" : "de-assert"); if (devid == SPIDEV_USER(0)) { - stm32_gpiowrite(USER_CSn, !selected); + stm32_gpiowrite(USER_CSN, !selected); } } @@ -117,7 +117,7 @@ void stm32_spi2select(FAR struct spi_dev_s *dev, #if defined(CONFIG_MMCSD) if (devid == SPIDEV_MMCSD(0)) { - stm32_gpiowrite(MMCSD_CSn, !selected); + stm32_gpiowrite(MMCSD_CSN, !selected); } #endif } diff --git a/boards/arm/stm32/olimexino-stm32/src/stm32_usbdev.c b/boards/arm/stm32/olimexino-stm32/src/stm32_usbdev.c index 570de4df2c..9d922b6681 100644 --- a/boards/arm/stm32/olimexino-stm32/src/stm32_usbdev.c +++ b/boards/arm/stm32/olimexino-stm32/src/stm32_usbdev.c @@ -79,7 +79,7 @@ void stm32_usbinitialize(void) /* USB Soft Connect Pullup */ - stm32_configgpio(GPIO_USB_PULLUPn); + stm32_configgpio(GPIO_USB_PULLUPN); } /**************************************************************************** @@ -98,7 +98,7 @@ void stm32_usbinitialize(void) int stm32_usbpullup(FAR struct usbdev_s *dev, bool enable) { usbtrace(TRACE_DEVPULLUP, (uint16_t)enable); - stm32_gpiowrite(GPIO_USB_PULLUPn, !enable); + stm32_gpiowrite(GPIO_USB_PULLUPN, !enable); return OK; }