no-OS
parameters.h
Go to the documentation of this file.
1 /***************************************************************************/
35 #ifndef __PARAMETERS_H__
36 #define __PARAMETERS_H__
37 
38 /******************************************************************************/
39 /***************************** Include Files **********************************/
40 /******************************************************************************/
41 
42 #include "common_data.h"
43 #include "no_os_util.h"
44 #include "pico_uart.h"
45 #include "pico_spi.h"
46 #include "pico_gpio.h"
47 #include "pico_gpio_irq.h"
48 #include "pico_irq.h"
49 #include "pico_timer.h"
50 
51 /******************************************************************************/
52 /********************** Macros and Constants Definitions **********************/
53 /******************************************************************************/
54 
55 #define UART_DEVICE_ID 0
56 #define UART_BAUDRATE 115200
57 #define UART_IRQ_ID 20
58 #define UART_EXTRA &adis1657x_uart_extra_ip
59 #define UART_OPS &pico_uart_ops
60 
61 #define UART_TX_PIN UART0_TX_GP0
62 #define UART_RX_PIN UART0_RX_GP1
63 
64 #define SPI_DEVICE_ID 0
65 #define SPI_BAUDRATE 1000000
66 #define SPI_CS SPI0_CS_GP17
67 #define SPI_OPS &pico_spi_ops
68 #define SPI_EXTRA &adis1657x_spi_extra_ip
69 
72 
73 #define GPIO_RESET_PIN_NUM 20
74 #define GPIO_RESET_PORT_NUM 0
75 #define GPIO_OPS &pico_gpio_ops
76 #define GPIO_EXTRA NULL /* Not used for pico platform */
77 
78 #ifdef IIO_TRIGGER_EXAMPLE
79 #define GPIO_DRDY_PIN_NUM 21
80 #define GPIO_DRDY_PORT_NUM 0 /* Not used for pico platform */
81 
82 #define ADIS1657X_GPIO_TRIG_IRQ_ID GPIO_DRDY_PIN_NUM
83 #define ADIS1657X_GPIO_CB_HANDLE NULL /* Not used in pico platform */
84 
85 #define GPIO_IRQ_ID GPIO_DRDY_PIN_NUM
86 #define GPIO_IRQ_OPS &pico_gpio_irq_ops
87 #define GPIO_IRQ_EXTRA NULL /* Not used for pico platform */
88 #endif
89 
90 #endif /* __PARAMETERS_H__ */
pico_uart.h
Header file of UART driver for pico.
pico_spi.h
Header file for the pico spi driver.
adis1657x_uart_extra_ip
struct max_uart_init_param adis1657x_uart_extra_ip
Definition: parameters.c:44
pico_spi_init_param
Additional SPI config parameters.
Definition: pico_spi.h:119
adis1657x_spi_extra_ip
struct max_spi_init_param adis1657x_spi_extra_ip
Definition: parameters.c:52
pico_timer.h
Header file for the pico timer driver.
pico_gpio_irq.h
Header file for pico gpio irq specifics.
pico_irq.h
Header file for pico irq specifics.
pico_gpio.h
Header file for pico gpio specifics.
no_os_util.h
Header file of utility functions.
pico_uart_init_param
Additional UART config parameters.
Definition: pico_uart.h:90