Loading...
Searching...
No Matches
periph_conf.h File Reference

Peripheral configuration for the SeeedStudio SenseCAP T1000-E. More...

Detailed Description

Peripheral configuration for the SeeedStudio SenseCAP T1000-E.

Author
Baptiste Le Duc bapti.nosp@m.ste..nosp@m.leduc.nosp@m.@eti.nosp@m.k.com

Definition in file periph_conf.h.

#include "periph_cpu.h"
#include "cfg_clock_32_1.h"
#include "cfg_rtt_default.h"
#include "cfg_timer_default.h"
+ Include dependency graph for periph_conf.h:

Go to the source code of this file.

UART configuration

UART_DEV(0): GNSS module (AG3335) UART_DEV(1): spare / debug

#define UART_0_ISR   (isr_uart0)
 
#define UART_1_ISR   (isr_uarte1)
 
#define UART_NUMOF   ARRAY_SIZE(uart_config)
 
static const uart_conf_t uart_config []
 

SPI configuration

SPI_DEV(0): LR1110 LoRa transceiver

#define SPI_NUMOF   ARRAY_SIZE(spi_config)
 
static const spi_conf_t spi_config []
 

I2C configuration

I2C_DEV(0): QMA6100P accelerometer

#define I2C_NUMOF   ARRAY_SIZE(i2c_config)
 
static const i2c_conf_t i2c_config []
 

PWM configuration

PWM_DEV(0) CH0: buzzer (P0.25)

Note
Unused channels must be set to GPIO_UNDEF.
#define PWM_NUMOF   ARRAY_SIZE(pwm_config)
 
static const pwm_conf_t pwm_config []
 

Macro Definition Documentation

◆ I2C_NUMOF

#define I2C_NUMOF   ARRAY_SIZE(i2c_config)

Definition at line 96 of file periph_conf.h.

◆ PWM_NUMOF

#define PWM_NUMOF   ARRAY_SIZE(pwm_config)

Definition at line 119 of file periph_conf.h.

◆ SPI_NUMOF

#define SPI_NUMOF   ARRAY_SIZE(spi_config)

Definition at line 78 of file periph_conf.h.

◆ UART_0_ISR

#define UART_0_ISR   (isr_uart0)

Definition at line 57 of file periph_conf.h.

◆ UART_1_ISR

#define UART_1_ISR   (isr_uarte1)

Definition at line 58 of file periph_conf.h.

◆ UART_NUMOF

#define UART_NUMOF   ARRAY_SIZE(uart_config)

Definition at line 60 of file periph_conf.h.

Variable Documentation

◆ i2c_config

const i2c_conf_t i2c_config[]
static
Initial value:
= {
{
.dev = NRF_TWIM0,
.scl = GPIO_PIN(0, 27),
.sda = GPIO_PIN(0, 26),
.speed = I2C_SPEED_FAST,
},
}
#define GPIO_PIN(x, y)
Define a CPU specific GPIO pin generator macro.
Definition periph_cpu.h:42
@ I2C_SPEED_FAST
fast mode: ~400 kbit/s
Definition periph_cpu.h:275

Definition at line 87 of file periph_conf.h.

◆ pwm_config

const pwm_conf_t pwm_config[]
static
Initial value:
= {
{
.dev = NRF_PWM0,
.pin = {
GPIO_PIN(0, 25),
},
},
}
#define GPIO_UNDEF
Definition of a fitting UNDEF value.

Definition at line 107 of file periph_conf.h.

◆ spi_config

const spi_conf_t spi_config[]
static
Initial value:
= {
{
.dev = NRF_SPIM2,
.sclk = GPIO_PIN(0, 11),
.mosi = GPIO_PIN(1, 9),
.miso = GPIO_PIN(1, 8),
},
}

Definition at line 69 of file periph_conf.h.

◆ uart_config

const uart_conf_t uart_config[]
static
Initial value:
= {
{
.dev = NRF_UARTE0,
.rx_pin = GPIO_PIN(0, 14),
.tx_pin = GPIO_PIN(0, 13),
.irqn = UARTE0_UART0_IRQn,
},
{
.dev = NRF_UARTE1,
.rx_pin = GPIO_PIN(0, 17),
.tx_pin = GPIO_PIN(0, 16),
.irqn = UARTE1_IRQn,
},
}

Definition at line 34 of file periph_conf.h.