no-OS
Variables
common_data.c File Reference
#include "common_data.h"
Include dependency graph for common_data.c:

Variables

struct no_os_uart_init_param uip
 
struct no_os_spi_init_param sip
 
struct adxl313_init_param adxl313_user_init
 

Variable Documentation

◆ adxl313_user_init

struct adxl313_init_param adxl313_user_init
Initial value:
= {
.dev_type = ID_ADXL313,
.comm_type = ADXL313_SPI_COMM,
}

◆ sip

Initial value:
= {
.device_id = SPI_DEVICE_ID,
.max_speed_hz = SPI_MAX_HZ,
.extra = &xsip,
.platform_ops = SPI_OPS,
.chip_select = SPI_CS,
}

◆ uip

Initial value:
= {
.device_id = UART_DEVICE_ID,
.irq_id = UART_IRQ_ID,
.asynchronous_rx = true,
.baud_rate = UART_BAUDRATE,
.size = NO_OS_UART_CS_8,
.parity = NO_OS_UART_PAR_NO,
.extra = &xuip,
.platform_ops = UART_OPS,
}
xsip
struct max_spi_init_param xsip
Definition: parameters.c:46
ADXL313_SPI_COMM
@ ADXL313_SPI_COMM
Definition: adxl313.h:255
NO_OS_UART_STOP_1_BIT
@ NO_OS_UART_STOP_1_BIT
Definition: no_os_uart.h:94
SPI_MAX_HZ
#define SPI_MAX_HZ
Definition: common_data.h:53
NO_OS_SPI_MODE_3
@ NO_OS_SPI_MODE_3
Definition: no_os_spi.h:67
UART_OPS
#define UART_OPS
Definition: parameters.h:55
ID_ADXL313
@ ID_ADXL313
Definition: adxl313.h:246
UART_IRQ_ID
#define UART_IRQ_ID
Definition: parameters.h:50
UART_BAUDRATE
#define UART_BAUDRATE
Definition: parameters.h:53
SPI_OPS
#define SPI_OPS
Definition: parameters.h:74
SPI_CS
#define SPI_CS
Definition: parameters.h:70
NO_OS_SPI_BIT_ORDER_MSB_FIRST
@ NO_OS_SPI_BIT_ORDER_MSB_FIRST
Definition: no_os_spi.h:76
SPI_DEVICE_ID
#define SPI_DEVICE_ID
Definition: parameters.h:69
NO_OS_UART_PAR_NO
@ NO_OS_UART_PAR_NO
Definition: no_os_uart.h:77
UART_DEVICE_ID
#define UART_DEVICE_ID
Definition: parameters.h:52
NO_OS_UART_CS_8
@ NO_OS_UART_CS_8
Definition: no_os_uart.h:66
xuip
struct max_uart_init_param xuip
Definition: parameters.c:42