precision-converters-firmware
|
Header file for STM32 platform configurations. More...
#include <stdint.h>
#include "stm32_hal.h"
#include "stm32_i2c.h"
#include "stm32_irq.h"
#include "stm32_gpio_irq.h"
#include "stm32_gpio.h"
#include "stm32_uart.h"
#include "stm32_dma.h"
#include "stm32_pwm.h"
Go to the source code of this file.
Functions | |
void | stm32_system_init (void) |
Initialize the STM32 system peripherals. | |
void | stm32_system_init_post_verification (void) |
Initialize the STM32 system peripherals after the device has been verified. | |
void | stm32_timer_enable (void) |
Starts the timer signal generation for PWM. | |
void | stm32_timer_stop (void) |
Stop generating timer signals. | |
void | stm32_cs_output_gpio_config (bool is_gpio) |
Configures the chip select pin as output mode. | |
void | stm32_config_spi_data_frame_format (bool is_16_bit) |
void | stm32_config_cnv_prescalar (void) |
Configures the prescalar according to the operating mode. | |
int | stm32_abort_dma_transfer (void) |
Abort DMA Transfers. | |
void | update_buff (uint8_t *local_buf, uint8_t *buf_start_addr) |
Update buffer index. | |
void | halfcmplt_callback (DMA_HandleTypeDef *hdma) |
Callback function to flag the capture of Half the number of requested samples. | |
void | receivecomplete_callback (DMA_HandleTypeDef *hdma) |
Callback function to flag the transfer of number of requested samples. | |
__weak unsigned int | ux_device_stack_tasks_run (void) |
Dummy function for USBx middleware used in STM32H563. | |
Header file for STM32 platform configurations.
Copyright (c) 2023-2025 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 AD405x_DMA_NUM_CHANNELS 2 |
#define cnv_extra_init_params stm32_gpio_cnv_extra_init_params |
#define CONV_TRIGGER_DUTY_CYCLE_NSEC | ( | x | ) | (x / 10) |
#define cs_extra_init_params stm32_cs_extra_init_params |
#define dma_extra_init_params stm32_dma_extra_init_params |
#define dma_ops STM32_DMA_OPS |
#define gp0_extra_init_params stm32_gpio_gp0_extra_init_params |
#define gp1_extra_init_params stm32_gpio_gp1_extra_init_params |
#define gpio_ops stm32_gpio_ops |
#define i2c_extra_init_params stm32_i2c_extra_init_params |
#define i2c_ops stm32_i2c_ops |
#define MAX_SPI_SCLK 22500000 |
#define MAX_SPI_SCLK_45MHz 45000000 |
#define pwm_extra_init_params stm32_pwm_cnv_extra_init_params |
#define pwm_gpio_extra_init_params stm32_pwm_gpio_extra_init_params |
#define pwm_ops stm32_pwm_ops |
#define SAMPLING_RATE_I3C_DMA (140000) |
#define SAMPLING_RATE_I3C_INTR (30000) |
#define SAMPLING_RATE_SPI_DMA (1000000) |
#define SAMPLING_RATE_SPI_INTR 62500 |
#define TIMER_CHANNEL | ( | x | ) | x |
#define TIMER_ID | ( | x | ) | x |
#define trigger_gpio_irq_extra_params stm32_gpio_irq_extra_init_params |
#define trigger_gpio_irq_ops stm32_gpio_irq_ops |
#define tx_trigger_extra_init_params stm32_tx_trigger_extra_init_params |
#define uart_extra_init_params stm32_uart_extra_init_params |
#define uart_ops stm32_uart_ops |
#define vcom_extra_init_params stm32_vcom_extra_init_params |
#define vcom_ops stm32_usb_uart_ops |
void halfcmplt_callback | ( | DMA_HandleTypeDef * | hdma | ) |
Callback function to flag the capture of Half the number of requested samples.
hdma | - DMA Handler (Unused) |
void receivecomplete_callback | ( | DMA_HandleTypeDef * | hdma | ) |
Callback function to flag the transfer of number of requested samples.
Callback function to flag the capture of number of requested samples.
hdma[in] | - DMA Handler (Unused) |
hdma | - DMA handler (Unused) |
Callback function to flag the transfer of number of requested samples.
hdma | - DMA handler (Unused) |
Callback function to flag the transfer of number of requested samples.
hdma | - DMA Handler (Unused) |
int stm32_abort_dma_transfer | ( | void | ) |
Abort DMA Transfers.
void stm32_config_cnv_prescalar | ( | void | ) |
Configures the prescalar according to the operating mode.
void stm32_config_spi_data_frame_format | ( | bool | is_16_bit | ) |
void stm32_cs_output_gpio_config | ( | bool | is_gpio | ) |
Configures the chip select pin as output mode.
is_gpio[in] | Mode of the Pin |
void stm32_system_init | ( | void | ) |
Initialize the STM32 system peripherals.
void stm32_system_init_post_verification | ( | void | ) |
Initialize the STM32 system peripherals after the device has been verified.
void stm32_timer_enable | ( | void | ) |
Starts the timer signal generation for PWM.
Starts the timer signal generation for PWM.
void stm32_timer_stop | ( | void | ) |
Stop generating timer signals.
Stop generating timer signals.
void update_buff | ( | uint8_t * | local_buf, |
uint8_t * | buf_start_addr | ||
) |
Update buffer index.
local_buf[out] | - Local Buffer |
buf_start_addr[out] | - Buffer start addr |
__weak unsigned int ux_device_stack_tasks_run | ( | void | ) |
Dummy function for USBx middleware used in STM32H563.
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |