Loading...
Searching...
No Matches
SiFive HiFive1b RISC-V board

Support for the SiFive HiFive1b RISC-V board. More...

Detailed Description

Support for the SiFive HiFive1b RISC-V board.

Files

file  arduino_iomap.h
 Mapping from MCU pins to Arduino pins for the SiFive HiFive1b board.
 
file  board.h
 Board specific definitions for the SiFive HiFive1b RISC-V board.
 
file  periph_conf.h
 Peripheral specific definitions for the HiFive1b RISC-V board.
 

Functions

void board_init_clock (void)
 Initialize the board clock to use PLL and faster SPI access.
 

Xtimer configuration

#define XTIMER_HZ   (32768UL)
 

Macros for controlling the on-board LEDs

#define LED0_PIN   GPIO_PIN(0, 22) /* Red */
 
#define LED1_PIN   GPIO_PIN(0, 19) /* Green */
 
#define LED2_PIN   GPIO_PIN(0, 21) /* Blue */
 
#define LED0_ON   gpio_clear(LED0_PIN)
 
#define LED0_OFF   gpio_set(LED0_PIN)
 
#define LED0_TOGGLE   gpio_toggle(LED0_PIN)
 
#define LED1_ON   gpio_clear(LED1_PIN)
 
#define LED1_OFF   gpio_set(LED1_PIN)
 
#define LED1_TOGGLE   gpio_toggle(LED1_PIN)
 
#define LED2_ON   gpio_clear(LED2_PIN)
 
#define LED2_OFF   gpio_set(LED2_PIN)
 
#define LED2_TOGGLE   gpio_toggle(LED2_PIN)
 

Macro Definition Documentation

◆ LED0_OFF

#define LED0_OFF   gpio_set(LED0_PIN)

Definition at line 47 of file board.h.

◆ LED0_ON

#define LED0_ON   gpio_clear(LED0_PIN)

Definition at line 46 of file board.h.

◆ LED0_PIN

#define LED0_PIN   GPIO_PIN(0, 22) /* Red */

Definition at line 42 of file board.h.

◆ LED0_TOGGLE

#define LED0_TOGGLE   gpio_toggle(LED0_PIN)

Definition at line 48 of file board.h.

◆ LED1_OFF

#define LED1_OFF   gpio_set(LED1_PIN)

Definition at line 51 of file board.h.

◆ LED1_ON

#define LED1_ON   gpio_clear(LED1_PIN)

Definition at line 50 of file board.h.

◆ LED1_PIN

#define LED1_PIN   GPIO_PIN(0, 19) /* Green */

Definition at line 43 of file board.h.

◆ LED1_TOGGLE

#define LED1_TOGGLE   gpio_toggle(LED1_PIN)

Definition at line 52 of file board.h.

◆ LED2_OFF

#define LED2_OFF   gpio_set(LED2_PIN)

Definition at line 55 of file board.h.

◆ LED2_ON

#define LED2_ON   gpio_clear(LED2_PIN)

Definition at line 54 of file board.h.

◆ LED2_PIN

#define LED2_PIN   GPIO_PIN(0, 21) /* Blue */

Definition at line 44 of file board.h.

◆ LED2_TOGGLE

#define LED2_TOGGLE   gpio_toggle(LED2_PIN)

Definition at line 56 of file board.h.

◆ XTIMER_HZ

#define XTIMER_HZ   (32768UL)

Definition at line 35 of file board.h.