no-OS
Loading...
Searching...
No Matches
parameters.h
Go to the documentation of this file.
1/***************************************************************************/
34
35#ifndef __PARAMETERS_H__
36#define __PARAMETERS_H__
37
38#include "stm32_hal.h"
39#include "stm32_irq.h"
40#include "stm32_gpio_irq.h"
41#include "stm32_spi.h"
42#include "stm32_gpio.h"
43#include "stm32_uart.h"
44#include "stm32_uart_stdio.h"
45
46extern UART_HandleTypeDef huart5;
47
48#define UART_DEVICE_ID 5
49#define UART_BAUDRATE 115200
50#define UART_EXTRA &adis1650x_uart_extra_ip
51#define UART_OPS &stm32_uart_ops
52#define UART_IRQ_ID UART5_IRQn
53
54#define SPI_DEVICE_ID 1
55#define SPI_BAUDRATE 1000000
56#define SPI_CS 15
57#define SPI_CS_PORT 0
58#define SPI_OPS &stm32_spi_ops
59#define SPI_EXTRA &adis1650x_spi_extra_ip
60
63
64#define GPIO_RESET_PIN_NUM 4
65#define GPIO_RESET_PORT_NUM 0
66#define GPIO_OPS &stm32_gpio_ops
67#define GPIO_EXTRA &adis1650x_gpio_reset_extra_ip
69
70#define GPIO_DRDY_PIN_NUM 2
71#define GPIO_DRDY_PORT_NUM 0
72
74/* Setting for PortA Pin2 used for DATA_READY.
75 Has to be adapted accordingly if another pin is used.
76 */
77#define ADIS1650X_GPIO_TRIG_IRQ_ID 0 /* Not used in stm32 platform */
78#define ADIS1650X_GPIO_CB_HANDLE NULL /* Not used in stm32 platform */
79
80#define GPIO_IRQ_ID 2 /* Pin 2 */
81#define GPIO_IRQ_OPS &stm32_gpio_irq_ops
82#define GPIO_IRQ_EXTRA &adis1650x_gpio_irq_extra_ip
83
84#endif /* __PARAMETERS_H__ */
UART_HandleTypeDef huart5
struct max_uart_init_param adis1650x_uart_extra_ip
Definition parameters.c:36
struct max_spi_init_param adis1650x_spi_extra_ip
Definition parameters.c:44
struct stm32_gpio_init_param adis1650x_gpio_reset_extra_ip
Definition parameters.c:45
struct stm32_gpio_irq_init_param adis1650x_gpio_irq_extra_ip
Definition parameters.c:50
Header file for stm32 gpio specifics.
Header file for stm32 gpio irq specifics.
Header file for stm32 irq specifics.
Header file for the stm32 spi driver.
Header file of UART driver for STM32.
Header file of stm32 UART driver stdout/stdin redirection.
Structure holding the initialization parameters for stm32 platform.
Definition stm32_gpio.h:44
Structure holding the initialization parameters for stm32 platform specific GPIO IRQ parameters.
Definition stm32_gpio_irq.h:44
Structure holding the initialization parameters for stm32 platform specific SPI parameters.
Definition stm32_spi.h:51
Specific initialization parameters for stm32 UART.
Definition stm32_uart.h:46