Skip to content
Permalink
Browse files

soc: stm32wb: Enable SPI on stm32wb

enable spi on stm32wb

Signed-off-by: Rick Conrey <rick.conrey@witiproducts.com>
  • Loading branch information...
Rick Conrey authored and galak committed Jul 8, 2019
1 parent bcd5f32 commit 9d371d835db547d9e01641e991c757a392ce1f9a
Showing with 18 additions and 0 deletions.
  1. +14 −0 soc/arm/st_stm32/stm32wb/dts_fixup.h
  2. +4 −0 soc/arm/st_stm32/stm32wb/soc.h
@@ -110,4 +110,18 @@
#define DT_I2C_3_CLOCK_BITS DT_ST_STM32_I2C_V2_40005C00_CLOCK_BITS
#define DT_I2C_3_CLOCK_BUS DT_ST_STM32_I2C_V2_40005C00_CLOCK_BUS

#define DT_SPI_1_BASE_ADDRESS DT_ST_STM32_SPI_FIFO_40013000_BASE_ADDRESS
#define DT_SPI_1_IRQ_PRI DT_ST_STM32_SPI_FIFO_40013000_IRQ_0_PRIORITY
#define DT_SPI_1_NAME DT_ST_STM32_SPI_FIFO_40013000_LABEL
#define DT_SPI_1_IRQ DT_ST_STM32_SPI_FIFO_40013000_IRQ_0
#define DT_SPI_1_CLOCK_BITS DT_ST_STM32_SPI_FIFO_40013000_CLOCK_BITS
#define DT_SPI_1_CLOCK_BUS DT_ST_STM32_SPI_FIFO_40013000_CLOCK_BUS

#define DT_SPI_2_BASE_ADDRESS DT_ST_STM32_SPI_FIFO_40003800_BASE_ADDRESS
#define DT_SPI_2_IRQ_PRI DT_ST_STM32_SPI_FIFO_40003800_IRQ_0_PRIORITY
#define DT_SPI_2_NAME DT_ST_STM32_SPI_FIFO_40003800_LABEL
#define DT_SPI_2_IRQ DT_ST_STM32_SPI_FIFO_40003800_IRQ_0
#define DT_SPI_2_CLOCK_BITS DT_ST_STM32_SPI_FIFO_40003800_CLOCK_BITS
#define DT_SPI_2_CLOCK_BUS DT_ST_STM32_SPI_FIFO_40003800_CLOCK_BUS

/* End of SoC Level DTS fixup file */
@@ -57,6 +57,10 @@
#include <stm32wbxx_ll_i2c.h>
#endif

#ifdef CONFIG_SPI_STM32
#include <stm32wbxx_ll_spi.h>
#endif /* CONFIG_SPI_STM32 */

#endif /* !_ASMLANGUAGE */

#endif /* _STM32WBX_SOC_H_ */

0 comments on commit 9d371d8

Please sign in to comment.
You can’t perform that action at this time.