boards: arm: stm32: fix Mixed case identifier
Mixed case identifier fix to pass CI Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
This commit is contained in:
parent
881cfe4b70
commit
fe64ed54b9
|
@ -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
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue