precision-converters-firmware
|
Source file for STM32 platform configurations. More...
#include <stdbool.h>
#include "app_config.h"
#include "app_config_stm32.h"
#include "ad469x_iio.h"
#include "ad469x.h"
#include "no_os_pwm.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 | receivecomplete_callback (DMA_HandleTypeDef *hdma) |
Callback function to flag the capture of number of requested samples. More... | |
void | stm32_system_init (void) |
Initialize the STM32 system peripherals. 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) |
Disable PWM 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 | stm32_cnv_output_gpio_config (bool is_gpio) |
Configures the conversion pin as output mode. More... | |
void | tim1_config (void) |
Configure CNV timer. More... | |
void | tim8_config (void) |
Configure Tx Trigger timer. More... | |
Variables | |
volatile bool | ad469x_conversion_flag |
struct stm32_uart_init_param | stm32_uart_extra_init_params |
struct stm32_spi_init_param | stm32_spi_extra_init_params |
struct stm32_gpio_init_param | stm32_gpio_cnv_extra_init_params |
struct stm32_gpio_init_param | stm32_gpio_gp0_extra_init_params |
struct stm32_gpio_init_param | stm32_gpio_gp1_extra_init_params |
struct stm32_gpio_init_param | stm32_gpio_reset_extra_init_params |
struct stm32_gpio_irq_init_param | stm32_gpio_irq_extra_init_params |
struct stm32_gpio_init_param | stm32_pwm_gpio_extra_init_params |
struct stm32_pwm_init_param | stm32_pwm_cnv_extra_init_params |
Source file for STM32 platform configurations.
Copyright (c) 2023-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 receivecomplete_callback | ( | DMA_HandleTypeDef * | hdma | ) |
Callback function to flag the capture of number of requested samples.
void stm32_abort_dma_transfer | ( | void | ) |
Abort DMA Transfers.
Abort ongoing SPI RX DMA transfer.
void stm32_cnv_output_gpio_config | ( | bool | is_gpio | ) |
Configures the conversion pin as output mode.
is_gpio[in] | Mode of the Pin |
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 | ) |
Disable PWM signals.
Stops generating timer signals.
void tim1_config | ( | void | ) |
Configure CNV timer.
void tim8_config | ( | void | ) |
Configure Tx Trigger timer.
|
extern |
struct stm32_gpio_init_param stm32_gpio_cnv_extra_init_params |
struct stm32_gpio_init_param stm32_gpio_gp0_extra_init_params |
struct stm32_gpio_init_param stm32_gpio_gp1_extra_init_params |
struct stm32_gpio_irq_init_param stm32_gpio_irq_extra_init_params |
struct stm32_gpio_init_param stm32_gpio_reset_extra_init_params |
struct stm32_pwm_init_param stm32_pwm_cnv_extra_init_params |
struct stm32_gpio_init_param stm32_pwm_gpio_extra_init_params |
struct stm32_spi_init_param stm32_spi_extra_init_params |