Loading...
Searching...
No Matches

Board specific definitions for the SLSTK3701A starter kit. More...

Detailed Description

Board specific definitions for the SLSTK3701A starter kit.

Author
Hauke Petersen hauke.nosp@m..pet.nosp@m.ersen.nosp@m.@fu-.nosp@m.berli.nosp@m.n.de
Bas Stottelaar basst.nosp@m.otte.nosp@m.laar@.nosp@m.gmai.nosp@m.l.com

Definition in file board.h.

#include "cpu.h"
#include "periph_conf.h"
#include "periph/gpio.h"
#include "periph/spi.h"
+ Include dependency graph for board.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void board_init (void)
 Initialize the board (GPIO, sensors, clocks).
 

Xtimer configuration

The timer runs at 1000 kHz to increase accuracy, or at 32.768 kHz if LETIMER is used.

#define XTIMER_DEV   (TIMER_DEV(0))
 
#define XTIMER_HZ   (1000000UL)
 
#define XTIMER_WIDTH   (32)
 
#define XTIMER_CHAN   (0)
 

Board controller configuration

Define the GPIO pin to enable the BC, to allow serial communication via the USB port.

#define BC_PIN   GPIO_PIN(PE, 1)
 

Push button pin definitions

#define PB0_PIN   GPIO_PIN(PC, 8)
 
#define PB1_PIN   GPIO_PIN(PC, 9)
 

LED pin definitions

#define LED0R_PIN   GPIO_PIN(PH, 10)
 
#define LED0G_PIN   GPIO_PIN(PH, 11)
 
#define LED0B_PIN   GPIO_PIN(PH, 12)
 
#define LED1R_PIN   GPIO_PIN(PH, 13)
 
#define LED1G_PIN   GPIO_PIN(PH, 14)
 
#define LED1B_PIN   GPIO_PIN(PH, 15)
 
#define LED0_PIN   LED0R_PIN
 
#define LED1_PIN   LED1R_PIN
 

Macros for controlling the on-board LEDs

#define LED0_ON   gpio_set(LED0_PIN)
 
#define LED0_OFF   gpio_clear(LED0_PIN)
 
#define LED0_TOGGLE   gpio_toggle(LED0_PIN)
 
#define LED1_ON   gpio_set(LED1_PIN)
 
#define LED1_OFF   gpio_clear(LED1_PIN)
 
#define LED1_TOGGLE   gpio_toggle(LED1_PIN)
 

Display configuration

Connection to the on-board Sharp Memory LCD (LS013B7DH03).

#define DISP_SPI   SPI_DEV(0)
 
#define DISP_COM_PIN   GPIO_PIN(PA, 11)
 
#define DISP_CS_PIN   GPIO_PIN(PC, 14)
 
#define DISP_EN_PIN   GPIO_PIN(PA, 9)
 

Temperature sensor configuration

Connection to the on-board temperature/humidity sensor (Si7021).

#define SI7021_I2C   I2C_DEV(2)
 
#define SI7021_EN_PIN   GPIO_PIN(PB, 3)
 
#define SI70XX_PARAM_I2C_DEV   SI7021_I2C
 

Core temperature sensor configuration

Connection to the on-chip temperature sensor.

#define CORETEMP_ADC   ADC_LINE(0)
 

Macro Definition Documentation

◆ BC_PIN

#define BC_PIN   GPIO_PIN(PE, 1)

Definition at line 58 of file board.h.

◆ CORETEMP_ADC

#define CORETEMP_ADC   ADC_LINE(0)

Definition at line 125 of file board.h.

◆ DISP_COM_PIN

#define DISP_COM_PIN   GPIO_PIN(PA, 11)

Definition at line 102 of file board.h.

◆ DISP_CS_PIN

#define DISP_CS_PIN   GPIO_PIN(PC, 14)

Definition at line 103 of file board.h.

◆ DISP_EN_PIN

#define DISP_EN_PIN   GPIO_PIN(PA, 9)

Definition at line 104 of file board.h.

◆ DISP_SPI

#define DISP_SPI   SPI_DEV(0)

Definition at line 101 of file board.h.

◆ LED0_OFF

#define LED0_OFF   gpio_clear(LED0_PIN)

Definition at line 88 of file board.h.

◆ LED0_ON

#define LED0_ON   gpio_set(LED0_PIN)

Definition at line 87 of file board.h.

◆ LED0_PIN

#define LED0_PIN   LED0R_PIN

Definition at line 79 of file board.h.

◆ LED0_TOGGLE

#define LED0_TOGGLE   gpio_toggle(LED0_PIN)

Definition at line 89 of file board.h.

◆ LED0B_PIN

#define LED0B_PIN   GPIO_PIN(PH, 12)

Definition at line 75 of file board.h.

◆ LED0G_PIN

#define LED0G_PIN   GPIO_PIN(PH, 11)

Definition at line 74 of file board.h.

◆ LED0R_PIN

#define LED0R_PIN   GPIO_PIN(PH, 10)

Definition at line 73 of file board.h.

◆ LED1_OFF

#define LED1_OFF   gpio_clear(LED1_PIN)

Definition at line 91 of file board.h.

◆ LED1_ON

#define LED1_ON   gpio_set(LED1_PIN)

Definition at line 90 of file board.h.

◆ LED1_PIN

#define LED1_PIN   LED1R_PIN

Definition at line 80 of file board.h.

◆ LED1_TOGGLE

#define LED1_TOGGLE   gpio_toggle(LED1_PIN)

Definition at line 92 of file board.h.

◆ LED1B_PIN

#define LED1B_PIN   GPIO_PIN(PH, 15)

Definition at line 78 of file board.h.

◆ LED1G_PIN

#define LED1G_PIN   GPIO_PIN(PH, 14)

Definition at line 77 of file board.h.

◆ LED1R_PIN

#define LED1R_PIN   GPIO_PIN(PH, 13)

Definition at line 76 of file board.h.

◆ PB0_PIN

#define PB0_PIN   GPIO_PIN(PC, 8)

Definition at line 65 of file board.h.

◆ PB1_PIN

#define PB1_PIN   GPIO_PIN(PC, 9)

Definition at line 66 of file board.h.

◆ SI7021_EN_PIN

#define SI7021_EN_PIN   GPIO_PIN(PB, 3)

Definition at line 114 of file board.h.

◆ SI7021_I2C

#define SI7021_I2C   I2C_DEV(2)

Definition at line 113 of file board.h.

◆ SI70XX_PARAM_I2C_DEV

#define SI70XX_PARAM_I2C_DEV   SI7021_I2C

Definition at line 116 of file board.h.

◆ XTIMER_CHAN

#define XTIMER_CHAN   (0)

Definition at line 48 of file board.h.

◆ XTIMER_DEV

#define XTIMER_DEV   (TIMER_DEV(0))

Definition at line 44 of file board.h.

◆ XTIMER_HZ

#define XTIMER_HZ   (1000000UL)

Definition at line 45 of file board.h.

◆ XTIMER_WIDTH

#define XTIMER_WIDTH   (32)

Definition at line 46 of file board.h.