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