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

Peripheral MCU configuration for the Firefly board revision A. More...

Detailed Description

Peripheral MCU configuration for the Firefly board revision A.

Author
Anon Mall anon..nosp@m.mall.nosp@m.@gt-a.nosp@m.rc.c.nosp@m.om

Definition in file periph_conf.h.

#include "cfg_adc_default.h"
#include "cfg_clk_default.h"
#include "cfg_i2c_default.h"
#include "cfg_timer_default.h"
#include "cfg_uart_default.h"
+ Include dependency graph for periph_conf.h:

Go to the source code of this file.

SPI configuration

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

Macro Definition Documentation

◆ SPI_NUMOF

#define SPI_NUMOF   ARRAY_SIZE(spi_config)

Definition at line 53 of file periph_conf.h.

Variable Documentation

◆ spi_config

const spi_conf_t spi_config[]
static
Initial value:
= {
{
.num = 0,
.mosi_pin = GPIO_PIN(PORT_B, 1),
.miso_pin = GPIO_PIN(PORT_B, 3),
.sck_pin = GPIO_PIN(PORT_B, 2),
.cs_pin = SPI_CS_UNDEF,
},
{
.num = 1,
.mosi_pin = GPIO_PIN(PORT_C, 5),
.miso_pin = GPIO_PIN(PORT_C, 6),
.sck_pin = GPIO_PIN(PORT_C, 4),
.cs_pin = GPIO_PIN(PORT_A, 7)
}
}
@ PORT_B
port B
Definition periph_cpu.h:48
@ PORT_C
port C
Definition periph_cpu.h:49
@ PORT_A
port A
Definition periph_cpu.h:47
#define GPIO_PIN(x, y)
Define a CPU specific GPIO pin generator macro.
Definition periph_cpu.h:46
#define SPI_CS_UNDEF
Define value for unused CS line.
Definition periph_cpu.h:363

Definition at line 36 of file periph_conf.h.