13#ifndef APP_CONFIG_STM32_H_ 
   14#define APP_CONFIG_STM32_H_ 
   21#include "stm32_uart.h" 
   23#include "stm32_gpio.h" 
   27#if defined (TARGET_SDP_K1) 
   32#include "stm32_xspi.h" 
   39#if defined (TARGET_SDP_K1) 
   41#define HW_CARRIER_NAME     SDP_K1 
   45#define SPI_DEVICE_ID           1    
   48#define SPI_DCS_CSB_PORT        0    
   50#define SPI_CFG_SPEED           11250000 
   51#define SPI_DATA_SPEED          11250000 
   55#define I2C_DEVICE_ID           1    
   60#define UART_DEVICE_ID          5 
   61#define APP_UART_HANDLE         huart5 
   62#define UART_IRQ_ID             UART5_IRQn 
   63#define APP_UART_USB_HANDLE     hUsbDeviceHS 
   69#define GPIO_AFE_CTRL_PORT      1 
   70#define GPIO_AFE_CTRL           15   
   73#define GPIO_GP1_PORT           6 
   77#define GPIO_GP2_PORT           0 
   81#define GPIO_XTAL_OSC_EN_PORT   6 
   82#define GPIO_XTAL_OSC_EN        9    
   85#define GPIO_GP3_PORT           3 
   89#define GPIO_OSC_EN_40M_PORT    6 
   90#define GPIO_OSC_EN_40M         7    
   91#define GPIO_OSC_EN_20M_PORT    0 
   92#define GPIO_OSC_EN_20M         0    
   93#define GPIO_OSC_EN_10M_PORT    0 
   94#define GPIO_OSC_EN_10M         1    
   98#define HW_CARRIER_NAME     NUCLEO_H563ZI 
  102#define SPI_DEVICE_ID           1    
  105#define SPI_DCS_CSB_PORT        3    
  106#define SPI_DCS_CSB             14   
  107#define SPI_CFG_SPEED           15625000 
  108#define SPI_DATA_SPEED          15625000 
  112#define QSPI_DEVICE_ID      1 
  113#define QSPI_SPEED          15625000 
  114#define QSPI_DMA_HANDLE     handle_GPDMA1_Channel0 
  115#define QSPI_DMA_CH         GPDMA1_Channel0 
  116#define QSPI_DMA_IRQ        GPDMA1_Channel0_IRQn 
  117#define QSPI_DMA_NUM_CH     1 
  121#define I2C_DEVICE_ID           1    
  126#define I2C_TIMING              0x00000E14 
  130#define UART_DEVICE_ID          3 
  131#define APP_UART_HANDLE         huart3 
  132#define UART_IRQ_ID             USART3_IRQn 
  139#define GPIO_AFE_CTRL_PORT      3 
  140#define GPIO_AFE_CTRL           15   
  143#define GPIO_GP1_PORT           6 
  147#define GPIO_GP2_PORT           6 
  151#define GPIO_XTAL_OSC_EN_PORT   4 
  152#define GPIO_XTAL_OSC_EN        14   
  155#define GPIO_GP3_PORT           4 
  159#define GPIO_OSC_EN_40M_PORT    6 
  160#define GPIO_OSC_EN_40M         14   
  161#define GPIO_OSC_EN_20M_PORT    1 
  162#define GPIO_OSC_EN_20M         6    
  163#define GPIO_OSC_EN_10M_PORT    1 
  164#define GPIO_OSC_EN_10M         7    
  173#if defined (TARGET_SDP_K1) 
  182#if defined (TARGET_SDP_K1) 
  200#if defined (TARGET_SDP_K1) 
void stm32_system_init(void)
Initialize the STM32 system peripherals.
Definition app_config_stm32.c:176
 
struct stm32_usb_uart_init_param stm32_vcom_extra_init_params
Definition app_config_stm32.c:38
 
#define APP_UART_USB_HANDLE
Definition app_config_stm32.h:44
 
struct stm32_i2c_init_param stm32_i2c_extra_init_params
Definition app_config_stm32.c:152
 
struct stm32_uart_init_param stm32_uart_extra_init_params
Definition app_config_stm32.c:102
 
struct stm32_gpio_init_param stm32_gpio_10m_osc_init_params
Definition app_config_stm32.c:140
 
#define APP_UART_HANDLE
Definition app_config_stm32.h:131
 
#define QSPI_DMA_HANDLE
Definition app_config_stm32.h:114
 
struct stm32_gpio_init_param stm32_gpio_20m_osc_init_params
Definition app_config_stm32.c:134
 
struct stm32_spi_init_param stm32_config_spi_extra_init_params
Definition app_config_stm32.c:33
 
struct stm32_gpio_init_param stm32_gpio_gp2_init_params
Definition app_config_stm32.c:116
 
struct stm32_spi_init_param stm32_data_spi_extra_init_params
Definition app_config_stm32.c:39
 
struct stm32_gpio_init_param stm32_gpio_xtal_osc_en_init_params
Definition app_config_stm32.c:104
 
struct stm32_gpio_init_param stm32_gpio_gp3_init_params
Definition app_config_stm32.c:122
 
struct stm32_xspi_init_param stm32_data_qspi_extra_init_params
 
struct stm32_gpio_init_param stm32_gpio_afe_ctrl_init_params
Definition app_config_stm32.c:146
 
struct stm32_gpio_init_param stm32_gpio_40m_osc_init_params
Definition app_config_stm32.c:128
 
struct stm32_gpio_init_param stm32_gpio_gp1_init_params
Definition app_config_stm32.c:110
 
void MX_USB_DEVICE_Init(void)
 
VCOM driver for stm32 as a no_os_uart implementation.
 
Specific initialization parameters for stm32 UART over USB.
Definition stm32_usb_uart.h:27