Go to the documentation of this file.
35 #ifndef __PARAMETERS_H__
36 #define __PARAMETERS_H__
53 extern UART_HandleTypeDef
huart5;
55 #define INTC_DEVICE_ID 0
58 #define XSTR(x) STR(x)
61 #define UART_IRQ_ID UART5_IRQn
63 #define UART_DEVICE_ID 5
64 #define UART_BAUDRATE 115200
65 #define UART_EXTRA &uart_extra_ip
66 #define UART_OPS &stm32_uart_ops
69 #define SPI_DEVICE_ID 1
70 #define SPI_BAUDRATE 45000000
72 #define SPI_CS_PORT GPIO_PORT_A
73 #define SPI_OPS &stm32_spi_ops
74 #define SPI_EXTRA &spi_extra_ip
76 #define GPIO_OPS &stm32_gpio_ops
77 #define GPIO_EXTRA NULL
79 #define GPIO_CNV_PORT GPIO_PORT_A
82 #define SAMPLES_PER_CHANNEL 1000
83 #define BYTES_PER_SAMPLE 4
84 #define MAX_SIZE_BASE_ADDR (SAMPLES_PER_CHANNEL * BYTES_PER_SAMPLE)
87 #define TX_PWM_PERIOD_NS (( 8 * KILO) / ((SPI_BAUDRATE / MEGA ) - 1))
88 #define TX_PWM_DUTY_NS 1
89 #define TX_PWM_REPS (BYTES_PER_SAMPLE - 1)
92 #define CS_PWM_PERIOD_NS ((TX_PWM_PERIOD_NS * BYTES_PER_SAMPLE) + CS_PWM_DUTY_NS + 200)
93 #define CS_PWM_DUTY_NS 30
96 #define TRIGGER_PERIOD_NS (CS_PWM_PERIOD_NS + TRIGGER_DUTY_NS)
97 #define TRIGGER_DUTY_NS 20
98 #define TRIGGER_PWM_ID 1
100 #define PWM_OPS &stm32_pwm_ops
101 #define TRIGGER_PWM_EXTRA &trigger_pwm_extra_init_params
107 #define CLKGEN_INIT NULL
108 #define OFFLOAD_INIT NULL
109 #define SPI_ENGINE_INIT NULL
110 #define DCACHE_INVALIDATE NULL
Structure holding the initialization parameters for stm32 platform specific SPI parameters.
Definition: stm32_spi.h:51
Header file for the stm32 spi driver.
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.