|
precision-converters-firmware
|
Header file for STM32 platform configurations. More...
#include "main.h"#include "app_config.h"#include "stm32_uart.h"#include "stm32_spi.h"#include "stm32_pwm.h"#include "stm32_gpio.h"#include "stm32_i2c.h"#include "stm32_gpio_irq.h"

Go to the source code of this file.
Macros | |
| #define | STM32_SPI_ID 1 |
| #define | SPI_CSB 15 |
| #define | STM32_SPI_CS_PORT 0 |
| #define | DCLK_PIN 7 |
| #define | ODR_PIN 12 |
| #define | DOUT0_PIN 9 |
| #define | DOUT1_PIN 11 |
| #define | PDN_PIN 0 |
| #define | DCLK_PORT 6 |
| #define | ODR_PORT 3 |
| #define | DOUT0_PORT 6 |
| #define | DOUT1_PORT 0 |
| #define | PDN_PORT 0 |
| #define | APP_UART_USB_HANDLE hUsbDeviceHS |
| #define | APP_UART_USB_IRQ OTG_HS_IRQn |
| #define | APP_UART_HANDLE huart5 |
| #define | UART_IRQ_ID UART5_IRQn |
| #define | UART_DEVICE_ID 5 |
| #define | SPI_DEVICE_ID STM32_SPI_ID |
| #define | IRQ_INT_ID ODR_PIN |
| #define | I2C_DEVICE_ID 1 |
| #define | PWM_ID 4 |
| #define | PWM_CHANNEL 1 |
| #define | PWM_CLK_DIVIDER 2 |
| #define | PWM_PRESCALER 3 |
| #define | PWM_HANDLE htim4 |
| #define | GPIO_TRIGGER_INT_PORT ODR_PORT |
| #define | INTR_GPIO_TRIGGER_HANDLE 0 |
| #define | SAMPLING_RATE (12000) |
| #define | CONV_TRIGGER_PERIOD_NSEC (((float)(1.0 / SAMPLING_RATE) * 1000000) * 1000) |
| #define | CONV_TRIGGER_DUTY_CYCLE_NSEC (CONV_TRIGGER_PERIOD_NSEC / 40) |
| #define | DOUT1_IDR (*((volatile uint32_t *)0x40020010)) |
| #define | ODR_IDR (*((volatile uint32_t *)0x40020C10)) |
| #define | DCLK_IDR (*((volatile uint32_t *)0x40021810)) |
| #define | DOUT0_IDR (*((volatile uint32_t *)0x40021810)) |
| #define | DCLK_ODR (*((volatile uint32_t *)0x40021814)) |
| #define | DCLK_PIN_MASK (uint32_t)(1 << DCLK_PIN) |
| #define | ODR_PIN_MASK (uint32_t)(1 << ODR_PIN) |
| #define | DOUT0_PIN_MASK (uint32_t)(1 << DOUT0_PIN) |
| #define | DOUT1_PIN_MASK (uint32_t)(1 << DOUT1_PIN) |
| #define | I2C_TIMING 0x00000E14 |
Functions | |
| void | ad7134_dma_rx_cplt (void *hsai) |
| SAI DMA Receive Complete Callback function. | |
| void | ad7134_dma_rx_half_cplt (void *hsai) |
| SAI DMA Receive Half Complete Callback function. | |
| void | stm32_system_init (void) |
| Initialize the STM32 system peripherals. | |
Variables | |
| struct stm32_uart_init_param | stm32_uart_extra_init_params |
| struct stm32_spi_init_param | stm32_spi_extra_init_params |
| struct stm32_tdm_init_param | stm32_tdm_extra_init_params |
| struct stm32_gpio_irq_init_param | stm32_trigger_gpio_irq_init_params |
| struct stm32_gpio_init_param | stm32_pdn_extra_init_params |
| struct stm32_i2c_init_param | stm32_i2c_extra_init_params |
| struct stm32_pwm_init_param | stm32_pwm_extra_init_params |
| struct stm32_gpio_init_param | stm32_pwm_gpio_init_params |
| struct stm32_usb_uart_init_param | stm32_vcom_extra_init_params |
| struct stm32_gpio_init_param | stm32_input_extra_init_params |
| struct stm32_gpio_init_param | stm32_output_extra_init_params |
| UART_HandleTypeDef | APP_UART_HANDLE |
| bool | data_capture_operation |
| struct iio_device_data * | ad7134_iio_dev_data |
Header file for STM32 platform configurations.
Copyright (c) 2021,2023-25 Analog Devices, Inc. All rights reserved.
This software is proprietary to Analog Devices, Inc. and its licensors. By using this software you agree to the terms of the associated Analog Devices Software License Agreement.
| #define APP_UART_HANDLE huart5 |
| #define APP_UART_USB_HANDLE hUsbDeviceHS |
| #define APP_UART_USB_IRQ OTG_HS_IRQn |
| #define CONV_TRIGGER_DUTY_CYCLE_NSEC (CONV_TRIGGER_PERIOD_NSEC / 40) |
| #define CONV_TRIGGER_PERIOD_NSEC (((float)(1.0 / SAMPLING_RATE) * 1000000) * 1000) |
| #define DCLK_IDR (*((volatile uint32_t *)0x40021810)) |
| #define DCLK_ODR (*((volatile uint32_t *)0x40021814)) |
| #define DCLK_PIN 7 |
| #define DCLK_PIN_MASK (uint32_t)(1 << DCLK_PIN) |
| #define DCLK_PORT 6 |
| #define DOUT0_IDR (*((volatile uint32_t *)0x40021810)) |
| #define DOUT0_PIN 9 |
| #define DOUT0_PIN_MASK (uint32_t)(1 << DOUT0_PIN) |
| #define DOUT0_PORT 6 |
| #define DOUT1_IDR (*((volatile uint32_t *)0x40020010)) |
| #define DOUT1_PIN 11 |
| #define DOUT1_PIN_MASK (uint32_t)(1 << DOUT1_PIN) |
| #define DOUT1_PORT 0 |
| #define GPIO_TRIGGER_INT_PORT ODR_PORT |
| #define I2C_DEVICE_ID 1 |
| #define I2C_TIMING 0x00000E14 |
| #define INTR_GPIO_TRIGGER_HANDLE 0 |
| #define IRQ_INT_ID ODR_PIN |
| #define ODR_IDR (*((volatile uint32_t *)0x40020C10)) |
| #define ODR_PIN 12 |
| #define ODR_PIN_MASK (uint32_t)(1 << ODR_PIN) |
| #define ODR_PORT 3 |
| #define PDN_PIN 0 |
| #define PDN_PORT 0 |
| #define PWM_CHANNEL 1 |
| #define PWM_CLK_DIVIDER 2 |
| #define PWM_HANDLE htim4 |
| #define PWM_ID 4 |
| #define PWM_PRESCALER 3 |
| #define SAMPLING_RATE (12000) |
| #define SPI_CSB 15 |
| #define SPI_DEVICE_ID STM32_SPI_ID |
| #define STM32_SPI_CS_PORT 0 |
| #define STM32_SPI_ID 1 |
| #define UART_DEVICE_ID 5 |
| #define UART_IRQ_ID UART5_IRQn |
| void ad7134_dma_rx_cplt | ( | void * | hsai | ) |
SAI DMA Receive Complete Callback function.
| hsai | - pointer to a SAI Handle structure |
| void ad7134_dma_rx_half_cplt | ( | void * | hsai | ) |
SAI DMA Receive Half Complete Callback function.
| hsai | - pointer to a SAI Handle |
| void stm32_system_init | ( | void | ) |
Initialize the STM32 system peripherals.
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |