13#ifndef APP_CONFIG_STM32_H_ 
   14#define APP_CONFIG_STM32_H_ 
   20#include "stm32_uart.h" 
   23#include "stm32_gpio.h" 
   25#include "stm32_gpio_irq.h" 
   28#include "stm32_uart_stdio.h" 
   38#define HW_CARRIER_NAME     SDP-K1 
   41#define SPI_DEVICE_ID 1  
   46#define APP_UART_HANDLE     &huart5 
   47#define APP_UART_USB_HANDLE  hUsbDeviceHS 
   50#define UART_IRQ_ID     UART5_IRQn 
   57#define I2C_DEVICE_ID  1  
   61#define TRIGGER_INT_ID 12 
   62#define TRIGGER_GPIO_PORT 3 
   63#define TRIGGER_GPIO_PIN  12 
   68#define PWM_CLK_DIVIDER 2  
   69#define PWM_PRESCALER   3 
   70#define PWM_HANDLE      htim4 
   73#define RDY_GPIO_PRIORITY 1 
   81#define SAMPLING_RATE                   (62000) 
   82#define CONV_TRIGGER_PERIOD_NSEC        (((float)(1.0 / SAMPLING_RATE) * 1000000) * 1000) 
   83#define CONV_TRIGGER_DUTY_CYCLE_NSEC    (CONV_TRIGGER_PERIOD_NSEC / 2) 
   89extern UART_HandleTypeDef 
huart5;
 
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_i2c_init_param stm32_i2c_extra_init_params
Definition app_config_stm32.c:152
 
struct stm32_gpio_init_param stm32_pwm_gpio_extra_init_params
Definition app_config_stm32.c:180
 
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_trigger_gpio_extra_init_params
Definition app_config_stm32.c:58
 
struct stm32_pwm_init_param stm32_pwm_extra_init_params
Definition app_config_stm32.c:76
 
#define PWM_HANDLE
Definition app_config_stm32.h:99
 
VCOM driver for stm32 as a no_os_uart implementation.
 
Specific initialization parameters for stm32 UART over USB.
Definition stm32_usb_uart.h:27