![]() |
no-OS
|
Definitions specific to STM32 platform used by eval-ad738x project. More...
#include "stm32_hal.h"#include "stm32_irq.h"#include "stm32_gpio_irq.h"#include "stm32_spi.h"#include "stm32_gpio.h"#include "stm32_uart.h"#include "stm32_uart_stdio.h"#include "no_os_units.h"Variables | |
| UART_HandleTypeDef | huart5 |
| TIM_HandleTypeDef | htim1 |
| TIM_HandleTypeDef | htim2 |
| TIM_HandleTypeDef | htim8 |
| struct stm32_uart_init_param | uart_extra_ip |
| struct stm32_spi_init_param | spi_extra_ip |
| struct stm32_pwm_init_param | trigger_pwm_extra_init_params |
Definitions specific to STM32 platform used by eval-ad738x project.
Copyright 2024-2026(c) Analog Devices, Inc. Copyright 2024(c) BayLibre, SAS.
SPDX-License-Identifier: BSD-3-Clause
| #define BYTES_PER_SAMPLE 4 /* one sample contains all channels */ |
| #define CLKGEN_INIT NULL |
| #define CS_PWM_DUTY_NS 30 /* quiet time, from datasheet */ |
| #define CS_PWM_PERIOD_NS ((TX_PWM_PERIOD_NS * BYTES_PER_SAMPLE) + CS_PWM_DUTY_NS + 200) |
| #define DCACHE_INVALIDATE NULL |
| #define GPIO_CNV 10 |
| #define GPIO_CNV_PORT GPIO_PORT_A |
| #define GPIO_EXTRA NULL |
| #define GPIO_OPS &stm32_gpio_ops |
| #define GPIO_PORT_A 0 |
| #define MAX_SIZE_BASE_ADDR (SAMPLES_PER_CHANNEL * BYTES_PER_SAMPLE) |
| #define OFFLOAD_INIT NULL |
| #define PWM_OPS &stm32_pwm_ops |
| #define SAMPLES_PER_CHANNEL 1000 |
| #define SPI_BAUDRATE 45000000 /* multiples of sysclk */ |
| #define SPI_CS 15 |
| #define SPI_CS_PORT GPIO_PORT_A |
| #define SPI_DEVICE_ID 1 |
| #define SPI_ENGINE_INIT NULL |
| #define SPI_EXTRA &spi_extra_ip |
| #define SPI_OPS &stm32_spi_ops |
| #define STR | ( | x | ) |
| #define TRIGGER_DUTY_NS 20 |
| #define TRIGGER_PERIOD_NS (CS_PWM_PERIOD_NS + TRIGGER_DUTY_NS) |
| #define TRIGGER_PWM_EXTRA &trigger_pwm_extra_init_params |
| #define TRIGGER_PWM_ID 1 |
| #define TX_PWM_DUTY_NS 1 /* dont care */ |
| #define TX_PWM_PERIOD_NS (( 8 * KILO) / ((SPI_BAUDRATE / MEGA ) - 1)) |
| #define TX_PWM_REPS (BYTES_PER_SAMPLE - 1) |
| #define UART_ASYNC_RX true |
| #define UART_BAUDRATE 115200 |
| #define UART_DEVICE_ID 5 |
| #define UART_EXTRA &uart_extra_ip |
| #define UART_IRQ_ID UART5_IRQn |
| #define UART_OPS &stm32_uart_ops |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |