Peripheral specific definitions for the HiFive1 RISC-V board.
More...
Peripheral specific definitions for the HiFive1 RISC-V board.
- Author
- Ken Rabold
Definition in file periph_conf.h.
#include "periph_cpu.h"
Go to the source code of this file.
|
#define | CONFIG_USE_CLOCK_HFXOSC_PLL 1 /* Use PLL clocked by HFXOSC by default */ |
|
#define | CONFIG_USE_CLOCK_HFXOSC 0 |
|
#define | CONFIG_USE_CLOCK_HFROSC_PLL 0 |
|
#define | CONFIG_USE_CLOCK_HFROSC 0 |
|
#define | CONFIG_CLOCK_PLL_R (1) /* Divide input clock by 2, mandatory with HFXOSC */ |
|
#define | CONFIG_CLOCK_PLL_F (39) /* Multiply REFR by 80, e.g 2 * (39 + 1) */ |
|
#define | CONFIG_CLOCK_PLL_Q (1) /* Divide VCO by 2, e.g 2^1 */ |
|
#define | CLOCK_PLL_INPUT_CLOCK MHZ(16) |
|
#define | CLOCK_PLL_REFR (CLOCK_PLL_INPUT_CLOCK / (CONFIG_CLOCK_PLL_R + 1)) |
|
#define | CLOCK_PLL_VCO (CLOCK_PLL_REFR * (2 * (CONFIG_CLOCK_PLL_F + 1))) |
|
#define | CLOCK_PLL_OUT (CLOCK_PLL_VCO / (1 << CONFIG_CLOCK_PLL_Q)) |
|
#define | CLOCK_CORECLOCK (CLOCK_PLL_OUT) /* 320000000Hz with the values used above */ |
|
#define | CONFIG_CLOCK_DESIRED_FREQUENCY MHZ(320) |
|
#define | CONFIG_CLOCK_HFROSC_TRIM (6) /* ~72000000Hz input freq */ |
|
#define | CONFIG_CLOCK_HFROSC_DIV (1) /* Divide by 2 */ |
|
◆ spi_config
Initial value:= {
{
.addr = SPI1_CTRL_ADDR,
},
}
Definition at line 155 of file periph_conf.h.
◆ uart_config
Initial value:= {
{
.addr = UART0_CTRL_ADDR,
.isr_num = INT_UART0_BASE,
},
{
.addr = UART1_CTRL_ADDR,
.isr_num = INT_UART1_BASE,
},
}
Definition at line 132 of file periph_conf.h.