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

Peripheral specific definitions for the HiFive1 RISC-V board. More...

Detailed Description

Peripheral specific definitions for the HiFive1 RISC-V board.

Author
Ken Rabold

Definition in file periph_conf.h.

#include "periph_cpu.h"
#include "clk_conf.h"
+ Include dependency graph for periph_conf.h:

Go to the source code of this file.

Timer configuration

#define TIMER_NUMOF   (1)
 

UART configuration

#define UART_NUMOF   ARRAY_SIZE(uart_config)
 
static const uart_conf_t uart_config []
 

SPI device configuration

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

PWM configuration

#define PWM_NUMOF   (3)
 

Macro Definition Documentation

◆ PWM_NUMOF

#define PWM_NUMOF   (3)

Definition at line 82 of file periph_conf.h.

◆ SPI_NUMOF

#define SPI_NUMOF   ARRAY_SIZE(spi_config)

Definition at line 74 of file periph_conf.h.

◆ TIMER_NUMOF

#define TIMER_NUMOF   (1)

Definition at line 35 of file periph_conf.h.

◆ UART_NUMOF

#define UART_NUMOF   ARRAY_SIZE(uart_config)

Definition at line 57 of file periph_conf.h.

Variable Documentation

◆ spi_config

const spi_conf_t spi_config[]
static
Initial value:
= {
{
.addr = SPI1_CTRL_ADDR,
.mosi = GPIO_PIN(0, 3),
.miso = GPIO_PIN(0, 4),
.sclk = GPIO_PIN(0, 5),
},
}
#define GPIO_PIN(x, y)
Define a CPU specific GPIO pin generator macro.
Definition periph_cpu.h:46

Definition at line 65 of file periph_conf.h.

◆ uart_config

const uart_conf_t uart_config[]
static
Initial value:
= {
{
.addr = UART0_CTRL_ADDR,
.rx = GPIO_PIN(0, 16),
.tx = GPIO_PIN(0, 17),
.isr_num = INT_UART0_BASE,
},
{
.addr = UART1_CTRL_ADDR,
.rx = GPIO_PIN(0, 18),
.tx = GPIO_PIN(0, 23),
.isr_num = INT_UART1_BASE,
},
}

Definition at line 42 of file periph_conf.h.