Skip to content

Commit

Permalink
arch/arm/stm32: add stm32g4 spi.
Browse files Browse the repository at this point in the history
Add the stm32g4 series macros to the
arch/arm/src/stm32/ stm32_spic.c file.

Signed-off-by: jerryslhao <[email protected]>
  • Loading branch information
JerrySlhao committed Jan 9, 2025
1 parent 4e7d0ad commit c7a20cb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion arch/arm/src/stm32/stm32_spi.c
Original file line number Diff line number Diff line change
Expand Up @@ -1517,7 +1517,8 @@ static void spi_setbits(struct spi_dev_s *dev, int nbits)

if (nbits != priv->nbits)
{
#if defined(CONFIG_STM32_STM32F30XX) || defined(CONFIG_STM32_STM32F37XX) || defined(CONFIG_STM32_STM32G4XXX)
#if defined(CONFIG_STM32_STM32F30XX) || defined(CONFIG_STM32_STM32F37XX) || \
defined(CONFIG_STM32_STM32G4XXX)
/* Yes... Set CR2 appropriately */

/* Set the number of bits (valid range 4-16) */
Expand Down

0 comments on commit c7a20cb

Please sign in to comment.