Go to the documentation of this file.
40 #ifndef __PARAMETERS_H__
41 #define __PARAMETERS_H__
58 extern UART_HandleTypeDef
huart5;
59 #define SAMPLES_PER_CHANNEL_PLATFORM 2000
60 #define MAX_SIZE_BASE_ADDR (SAMPLES_PER_CHANNEL_PLATFORM * 2 * sizeof(uint32_t))
63 #define INTC_DEVICE_ID 0
66 #define UART_IRQ_ID UART5_IRQn
68 #define UART_DEVICE_ID 5
69 #define UART_BAUDRATE 115200
70 #define UART_EXTRA &ad463x_uart_extra_ip
71 #define UART_OPS &stm32_uart_ops
73 #define SPI_DEVICE_ID 1
74 #define SPI_BAUDRATE 20000000
76 #define SPI_CS_PORT GPIO_PORT_A
77 #define SPI_OPS &stm32_spi_ops
78 #define SPI_EXTRA &ad463x_spi_extra_ip
80 #define GPIO_OPS &stm32_gpio_ops
81 #define GPIO_EXTRA NULL
83 #define GPIO_RESETN_1 11
84 #define GPIO_RESETN_PORT GPIO_PORT_A
88 #define GPIO_CNV_PORT GPIO_PORT_A
90 #define DCACHE_INVALIDATE NULL
100 #define BYTES_PER_SAMPLE 6
103 #define TX_PWM_PERIOD_NS (((( 8 * KILO) / (SPI_BAUDRATE / MEGA ))) + 50)
104 #define TX_PWM_DUTY_NS 1
105 #define TX_PWM_REPS (BYTES_PER_SAMPLE - 1)
108 #define CS_PWM_PERIOD_NS ((TX_PWM_PERIOD_NS * BYTES_PER_SAMPLE) + CS_PWM_DUTY_NS)
109 #define CS_PWM_DUTY_NS 300
114 #define MAX_SAMPLE_RATE_PERIOD_NS (CS_PWM_PERIOD_NS + TRIGGER_DUTY_NS)
115 #define TRIGGER_PERIOD_NS MAX_SAMPLE_RATE_PERIOD_NS
116 #define TRIGGER_DUTY_NS 100
118 #define PWM_OPS &stm32_pwm_ops
119 #define PWM_EXTRA &cnv_pwm_extra_init_params
120 #define PWM_GPIO_EXTRA &cnv_pwm_gpio_extra_init_params
121 #define NO_OS_PWM_ID 1
Structure holding the initialization parameters for stm32 platform specific SPI parameters.
Definition: stm32_spi.h:57
Header file for the stm32 spi driver.
Structure holding the initialization parameters for stm32 platform.
Definition: stm32_gpio.h:50
Specific initialization parameters for stm32 UART.
Definition: stm32_uart.h:52
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:88
Header file for stm32 gpio irq specifics.