Go to the documentation of this file.
34 #ifndef __PARAMETERS_H__
35 #define __PARAMETERS_H__
52 extern UART_HandleTypeDef
huart5;
53 #define SAMPLES_PER_CHANNEL_PLATFORM 2000
54 #define MAX_SIZE_BASE_ADDR (SAMPLES_PER_CHANNEL_PLATFORM * 2 * sizeof(uint32_t))
57 #define INTC_DEVICE_ID 0
60 #define UART_IRQ_ID UART5_IRQn
62 #define UART_DEVICE_ID 5
63 #define UART_BAUDRATE 115200
64 #define UART_EXTRA &ad463x_uart_extra_ip
65 #define UART_OPS &stm32_uart_ops
67 #define SPI_DEVICE_ID 1
68 #define SPI_BAUDRATE 20000000
70 #define SPI_CS_PORT GPIO_PORT_A
71 #define SPI_OPS &stm32_spi_ops
72 #define SPI_EXTRA &ad463x_spi_extra_ip
74 #define GPIO_OPS &stm32_gpio_ops
75 #define GPIO_EXTRA NULL
77 #define GPIO_RESETN_1 11
78 #define GPIO_RESETN_PORT GPIO_PORT_A
82 #define GPIO_CNV_PORT GPIO_PORT_A
84 #define DCACHE_INVALIDATE NULL
94 #define BYTES_PER_SAMPLE 6
97 #define TX_PWM_PERIOD_NS (((( 8 * KILO) / (SPI_BAUDRATE / MEGA ))) + 50)
98 #define TX_PWM_DUTY_NS 1
99 #define TX_PWM_REPS (BYTES_PER_SAMPLE - 1)
102 #define CS_PWM_PERIOD_NS ((TX_PWM_PERIOD_NS * BYTES_PER_SAMPLE) + CS_PWM_DUTY_NS)
103 #define CS_PWM_DUTY_NS 300
108 #define MAX_SAMPLE_RATE_PERIOD_NS (CS_PWM_PERIOD_NS + TRIGGER_DUTY_NS)
109 #define TRIGGER_PERIOD_NS MAX_SAMPLE_RATE_PERIOD_NS
110 #define TRIGGER_DUTY_NS 100
112 #define PWM_OPS &stm32_pwm_ops
113 #define PWM_EXTRA &cnv_pwm_extra_init_params
114 #define PWM_GPIO_EXTRA &cnv_pwm_gpio_extra_init_params
115 #define NO_OS_PWM_ID 1
Structure holding the initialization parameters for stm32 platform specific SPI parameters.
Definition: stm32_spi.h:51
Header file for the stm32 spi driver.
Structure holding the initialization parameters for stm32 platform.
Definition: stm32_gpio.h:44
Specific initialization parameters for stm32 UART.
Definition: stm32_uart.h:46
Header file of UART driver for STM32.
Header file of stm32 UART driver stdout/stdin redirection.
Header file for stm32 irq specifics.
Header file for stm32 gpio specifics.
Structure holding the STM32 PWM parameters.
Definition: stm32_pwm.h:82
Header file for stm32 gpio irq specifics.