13#ifndef APP_CONFIG_STM32_H_ 
   14#define APP_CONFIG_STM32_H_ 
   23#include "stm32_gpio_irq.h" 
   25#include "stm32_gpio.h" 
   26#include "stm32_uart.h" 
   29#include "stm32_uart_stdio.h" 
   37#define TARGET_NAME                 SDP_K1 
   40#define APP_UART_USB_HANDLE hUsbDeviceHS 
   41#define APP_UART_HANDLE     &huart5 
   42#define UART_IRQ_ID     UART5_IRQn 
   47#define SPI_DEVICE_ID   1     
   52#define LDAC_GPIO_PORT   0  
   54#define CLEAR_GPIO_PORT  6  
   57#define TRIGGER_INT_ID    LDAC_GPIO 
   62#define LDAC_PWM_CHANNEL     3  
   63#define LDAC_PWM_CLK_DIVIDER 2  
   64#define LDAC_PWM_PRESCALER   3 
   65#define LDAC_PWM_HANDLE      htim1 
   68#define LDAC_GPIO_PRIORITY 1 
   71#define MAX_SPI_CLK 11250000 
   74#define gpio_ops                    stm32_gpio_ops 
   75#define spi_ops                     stm32_spi_ops 
   76#define i2c_ops                     stm32_i2c_ops 
   77#define uart_ops                    stm32_uart_ops 
   78#define pwm_ops                     stm32_pwm_ops 
   79#define trigger_gpio_irq_ops        stm32_gpio_irq_ops 
   80#define vcom_ops                    stm32_usb_uart_ops 
   87#define MAX_SAMPLING_RATE   (uint32_t)(45823) 
   93extern I2C_HandleTypeDef 
hi2c1;
 
   94extern SPI_HandleTypeDef 
hspi1;
 
   95extern UART_HandleTypeDef 
huart5;
 
   96extern TIM_HandleTypeDef 
htim1;
 
UART_HandleTypeDef huart5
 
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_gpio_irq_init_param stm32_trigger_gpio_irq_init_params
Definition app_config_stm32.c:43
 
struct stm32_uart_init_param stm32_uart_extra_init_params
Definition app_config_stm32.c:102
 
struct stm32_spi_init_param stm32_spi_extra_init_params
Definition app_config_stm32.c:46
 
struct stm32_gpio_init_param stm32_clear_gpio_init_params
Definition app_config_stm32.c:58
 
struct stm32_gpio_init_param stm32_pwm_gpio_init_params
Definition app_config_stm32.c:69
 
struct stm32_pwm_init_param stm32_pwm_extra_init_params
Definition app_config_stm32.c:76
 
struct stm32_gpio_init_param stm32_ldac_gpio_init_params
Definition app_config_stm32.c:52
 
VCOM driver for stm32 as a no_os_uart implementation.
 
Specific initialization parameters for stm32 UART over USB.
Definition stm32_usb_uart.h:27