Go to the documentation of this file.
41 #ifndef __PARAMETERS_H__
42 #define __PARAMETERS_H__
59 extern UART_HandleTypeDef
huart5;
61 #define INTC_DEVICE_ID 0
64 #define XSTR(x) STR(x)
67 #define UART_IRQ_ID UART5_IRQn
69 #define UART_DEVICE_ID 5
70 #define UART_BAUDRATE 115200
71 #define UART_EXTRA &uart_extra_ip
72 #define UART_OPS &stm32_uart_ops
75 #define SPI_DEVICE_ID 1
76 #define SPI_BAUDRATE 45000000
78 #define SPI_CS_PORT GPIO_PORT_A
79 #define SPI_OPS &stm32_spi_ops
80 #define SPI_EXTRA &spi_extra_ip
82 #define GPIO_OPS &stm32_gpio_ops
83 #define GPIO_EXTRA NULL
85 #define GPIO_CNV_PORT GPIO_PORT_A
88 #define SAMPLES_PER_CHANNEL 1000
89 #define BYTES_PER_SAMPLE 4
90 #define MAX_SIZE_BASE_ADDR (SAMPLES_PER_CHANNEL * BYTES_PER_SAMPLE)
93 #define TX_PWM_PERIOD_NS (( 8 * KILO) / ((SPI_BAUDRATE / MEGA ) - 1))
94 #define TX_PWM_DUTY_NS 1
95 #define TX_PWM_REPS (BYTES_PER_SAMPLE - 1)
98 #define CS_PWM_PERIOD_NS ((TX_PWM_PERIOD_NS * BYTES_PER_SAMPLE) + CS_PWM_DUTY_NS + 200)
99 #define CS_PWM_DUTY_NS 30
102 #define TRIGGER_PERIOD_NS (CS_PWM_PERIOD_NS + TRIGGER_DUTY_NS)
103 #define TRIGGER_DUTY_NS 20
104 #define TRIGGER_PWM_ID 1
106 #define PWM_OPS &stm32_pwm_ops
107 #define TRIGGER_PWM_EXTRA &trigger_pwm_extra_init_params
113 #define CLKGEN_INIT NULL
114 #define OFFLOAD_INIT NULL
115 #define SPI_ENGINE_INIT NULL
116 #define DCACHE_INVALIDATE NULL
Structure holding the initialization parameters for stm32 platform specific SPI parameters.
Definition: stm32_spi.h:57
Header file for the stm32 spi driver.
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.