19#ifndef UWB_DW1000_PARAMS_H
20#define UWB_DW1000_PARAMS_H
36#define DW1000_SPI_SEM &sem_spi
38#ifndef DW1000_PARAM_SPI
39#define DW1000_PARAM_SPI (SPI_DEV(1))
41#ifndef DW1000_PARAM_SPI_CLK_LOW
42#define DW1000_PARAM_SPI_CLK_LOW (SPI_CLK_1MHZ)
44#ifndef DW1000_PARAM_SPI_CLK_HIGH
45#define DW1000_PARAM_SPI_CLK_HIGH (SPI_CLK_10MHZ)
47#ifndef DW1000_SPI_MODE
48#define DW1000_SPI_MODE (SPI_MODE_0)
50#ifndef DW1000_PARAM_CS_PIN
51#define DW1000_PARAM_CS_PIN (GPIO_PIN(0, 17))
53#ifndef DW1000_PARAM_IRQ_PIN
54#define DW1000_PARAM_IRQ_PIN (GPIO_PIN(0, 19))
56#ifndef DW1000_PARAM_RESET_PIN
57#define DW1000_PARAM_RESET_PIN (GPIO_PIN(0, 24))
59#ifndef DW1000_RX_ANTENNA_DELAY
60#define DW1000_RX_ANTENNA_DELAY (0x4042)
62#ifndef DW1000_TX_ANTENNA_DELAY
63#define DW1000_TX_ANTENNA_DELAY (0x4042)
65#ifndef DW1000_EXT_CLOCK_DELAY
66#define DW1000_EXT_CLOCK_DELAY (0)
70#define DW1000_PARAMS { .spi_sem = DW1000_SPI_SEM, \
71 .spi_baudrate = DW1000_PARAM_SPI_CLK_HIGH, \
72 .spi_baudrate_low = DW1000_PARAM_SPI_CLK_LOW, \
73 .spi_num = DW1000_PARAM_SPI, \
74 .rst_pin = DW1000_PARAM_RESET_PIN, \
75 .irq_pin = DW1000_PARAM_IRQ_PIN, \
76 .ss_pin = DW1000_PARAM_CS_PIN, \
77 .rx_antenna_delay = DW1000_RX_ANTENNA_DELAY, \
78 .tx_antenna_delay = DW1000_TX_ANTENNA_DELAY, \
79 .ext_clock_delay = DW1000_EXT_CLOCK_DELAY }
uwb-core DPL (Decawave Porting Layer) semapahore wrappers
Abstraction layer for RIOT adaption.
struct dw1000_dev_cfg dw1000_params_t
Device initialization parameters.
static const dw1000_params_t dw1000_params[]
Configuration struct.