precision-converters-firmware
|
Application configurations module for STM32 platform. More...
#include "app_config_stm32.h"
#include "no_os_error.h"
#include "no_os_util.h"
#include "no_os_pwm.h"
#include "ad7091r_iio.h"
Macros | |
#define | TIM_CCMR_CCS_OUTPUT 0 |
#define | TIM_CR2_MMS_COMPARE_PULSE 3 |
#define | TIM_SMCR_SMS_TRIGGER 6 |
#define | TIM_ITR_SOURCE 0 |
Functions | |
void | stm32_system_init (void) |
Initialize the STM32 system peripherals. More... | |
void | tim2_config (void) |
Configure CS timer. More... | |
void | tim8_config (void) |
Configure Tx Trigger timer. More... | |
void | stm32_timer_enable (void) |
Starts the timer signal generation for PWM and OC channels all at once. More... | |
void | stm32_timer_stop (void) |
Stop generating timer signals. More... | |
void | stm32_abort_dma_transfer (void) |
Abort DMA Transfers. More... | |
void | stm32_cs_output_gpio_config (bool is_gpio) |
Configures the chip select pin as output mode. More... | |
void | receivecomplete_callback (DMA_HandleTypeDef *hdma) |
Callback function to flag the capture of number of requested samples. More... | |
void | halfcmplt_callback (DMA_HandleTypeDef *hdma) |
Callback function to flag the capture of Half the number of requested samples. More... | |
void | update_buff (uint32_t *local_buf, uint32_t *buf_start_addr) |
Update buffer index. More... | |
void | ad7091r8_pulse_convst_stm (void) |
Pull the CONVST line down then up. More... | |
int | ad7091r8_read_one_stm (uint8_t channel, uint16_t *read_val) |
Read one sample. More... | |
void | configure_intr_priority (void) |
Prioritizes the UART1 interrupt over the other peripheral interrupts. More... | |
Variables | |
struct stm32_uart_init_param | stm32_uart_init_params |
struct stm32_usb_uart_init_param | stm32_vcom_extra_init_params |
struct stm32_gpio_irq_init_param | stm32_trigger_gpio_irq_init_params |
struct stm32_spi_init_param | stm32_spi_init_params |
struct stm32_i2c_init_param | stm32_i2c_init_params |
struct stm32_gpio_init_param | stm32_gpio_cnv_init_params |
struct stm32_gpio_init_param | stm32_pwm_cnv_gpio_init_params |
struct stm32_gpio_init_param | stm32_gpio_reset_init_params |
struct stm32_gpio_init_param | stm32_gpio_gp0_extra_init_params |
struct stm32_pwm_init_param | stm32_cnv_pwm_init_params |
struct stm32_pwm_init_param | stm32_cs_extra_init_params |
struct stm32_pwm_init_param | stm32_tx_trigger_extra_init_params |
struct stm32_dma_channel | txdma_channel |
struct stm32_dma_channel | rxdma_channel |
struct stm32_gpio_init_param | stm32_cs_pwm_gpio_extra_init_params |
struct stm32_gpio_init_param | stm32_cs_gpio_extra_init_params |
volatile struct stm32_spi_desc * | sdesc |
uint32_t | rxdma_ndtr |
uint32_t | dma_cycle_count = 0 |
uint8_t * | iio_buf_start_idx |
uint8_t * | dma_buf_start_idx |
uint8_t * | iio_buf_current_idx |
uint8_t * | dma_buf_current_idx |
Application configurations module for STM32 platform.
Copyright (c) 2024 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 TIM_CCMR_CCS_OUTPUT 0 |
#define TIM_CR2_MMS_COMPARE_PULSE 3 |
#define TIM_ITR_SOURCE 0 |
#define TIM_SMCR_SMS_TRIGGER 6 |
void ad7091r8_pulse_convst_stm | ( | void | ) |
Pull the CONVST line down then up.
int ad7091r8_read_one_stm | ( | uint8_t | channel, |
uint16_t * | read_val | ||
) |
Read one sample.
channel[in] | - Channel. |
read_val[out] | - Value. |
void configure_intr_priority | ( | void | ) |
Prioritizes the UART1 interrupt over the other peripheral interrupts.
void halfcmplt_callback | ( | DMA_HandleTypeDef * | hdma | ) |
Callback function to flag the capture of Half the number of requested samples.
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 capture of number of requested samples.
hdma | - DMA Handler (Unused) |
void stm32_abort_dma_transfer | ( | void | ) |
Abort DMA Transfers.
Abort ongoing SPI RX DMA transfer.
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_timer_enable | ( | void | ) |
Starts the timer signal generation for PWM and OC channels all at once.
void stm32_timer_stop | ( | void | ) |
Stop generating timer signals.
Stops generating timer signals.
void tim2_config | ( | void | ) |
Configure CS timer.
void tim8_config | ( | void | ) |
Configure Tx Trigger timer.
void update_buff | ( | uint32_t * | local_buf, |
uint32_t * | buf_start_addr | ||
) |
Update buffer index.
local_buf[out] | - Local Buffer |
buf_start_addr[out] | - Buffer start addr |
uint8_t* dma_buf_current_idx |
uint8_t* dma_buf_start_idx |
uint32_t dma_cycle_count = 0 |
uint8_t* iio_buf_current_idx |
uint8_t* iio_buf_start_idx |
struct stm32_dma_channel rxdma_channel |
uint32_t rxdma_ndtr |
volatile struct stm32_spi_desc* sdesc |
struct stm32_pwm_init_param stm32_cnv_pwm_init_params |
struct stm32_pwm_init_param stm32_cs_extra_init_params |
struct stm32_gpio_init_param stm32_cs_gpio_extra_init_params |
struct stm32_gpio_init_param stm32_cs_pwm_gpio_extra_init_params |
struct stm32_gpio_init_param stm32_gpio_cnv_init_params |
struct stm32_gpio_init_param stm32_gpio_gp0_extra_init_params |
struct stm32_gpio_init_param stm32_gpio_reset_init_params |
struct stm32_i2c_init_param stm32_i2c_init_params |
struct stm32_gpio_init_param stm32_pwm_cnv_gpio_init_params |
struct stm32_spi_init_param stm32_spi_init_params |
struct stm32_gpio_irq_init_param stm32_trigger_gpio_irq_init_params |
struct stm32_pwm_init_param stm32_tx_trigger_extra_init_params |
struct stm32_uart_init_param stm32_uart_init_params |
struct stm32_usb_uart_init_param stm32_vcom_extra_init_params |
struct stm32_dma_channel txdma_channel |