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"
29#include "stm32_usb_uart.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
72#define RDY_GPIO_PRIORITY 1
80#define SAMPLING_RATE (62000)
81#define CONV_TRIGGER_PERIOD_NSEC (((float)(1.0 / SAMPLING_RATE) * 1000000) * 1000)
82#define CONV_TRIGGER_DUTY_CYCLE_NSEC (CONV_TRIGGER_PERIOD_NSEC / 2)
88extern UART_HandleTypeDef
huart5;
UART_HandleTypeDef huart5
void stm32_system_init(void)
Initialize the STM32 system peripherals.
Definition app_config_stm32.c:174
struct stm32_usb_uart_init_param stm32_vcom_extra_init_params
Definition app_config_stm32.c:38
struct stm32_gpio_irq_init_param stm32_trigger_gpio_irq_init_params
Definition app_config_stm32.c:43
struct stm32_gpio_init_param stm32_pwm_gpio_extra_init_params
Definition app_config_stm32.c:110
struct stm32_uart_init_param stm32_uart_extra_init_params
Definition app_config_stm32.c:51
struct stm32_spi_init_param stm32_spi_extra_init_params
Definition app_config_stm32.c:61
struct stm32_i2c_init_param stm32_i2c_extra_init_params
Definition app_config_stm32.c:99
struct stm32_gpio_init_param stm32_trigger_gpio_extra_init_params
Definition app_config_stm32.c:55
struct stm32_pwm_init_param stm32_pwm_extra_init_params
Definition app_config_stm32.c:80
#define APP_UART_USB_HANDLE
Definition app_config_stm32.h:44