Loading...
Searching...
No Matches

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

Detailed Description

Board specific definitions for the SLSTK3301A 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/adc.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.

ztimer configuration

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

#define CONFIG_ZTIMER_USEC_DEV   (TIMER_DEV(0))
 Timer peripheral for ztimer.
 
#define CONFIG_ZTIMER_USEC_BASE_FREQ   (250000UL)
 Running at 250 kHz.
 
#define CONFIG_ZTIMER_USEC_WIDTH   (16)
 Running on a 16-bit timer.
 
#define CONFIG_ZTIMER_USEC_ADJUST_SET   (24)
 Overhead for ztimer_set.
 
#define CONFIG_ZTIMER_USEC_ADJUST_SLEEP   (28)
 Overhead for ztimer_sleep.
 

Board controller configuration

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

#define BC_PIN   GPIO_PIN(PA, 8)
 Pin to enable the board controller.
 

Push button pin definitions

#define PB0_PIN   GPIO_PIN(PD, 5)
 Pin definition for push button 0.
 
#define PB1_PIN   GPIO_PIN(PC, 9)
 Pin definition for push button 1.
 

LED pin definitions

#define LED0_PIN   GPIO_PIN(PD, 2)
 Pin definition for LED 0.
 
#define LED1_PIN   GPIO_PIN(PC, 2)
 Pin definition for LED 1.
 

Macros for controlling the on-board LEDs

#define LED0_ON   gpio_set(LED0_PIN)
 Turn LED 0 on.
 
#define LED0_OFF   gpio_clear(LED0_PIN)
 Turn LED 0 off.
 
#define LED0_TOGGLE   gpio_toggle(LED0_PIN)
 Toggle LED 0.
 
#define LED1_ON   gpio_set(LED1_PIN)
 Turn LED 1 on.
 
#define LED1_OFF   gpio_clear(LED1_PIN)
 Turn LED 1 off.
 
#define LED1_TOGGLE   gpio_toggle(LED1_PIN)
 Toggle LED 1.
 

Core temperature sensor configuration

Connection to the on-chip temperature sensor.

#define CORETEMP_ADC   ADC_LINE(0)
 ADC line for the internal temperature.
 

Temperature sensor configuration

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

#define SI7021_I2C   I2C_DEV(0)
 I2C device for the Si7021.
 
#define SI7021_EN_PIN   GPIO_PIN(PC, 12)
 GPIO pin to enable the Si7021.
 
#define SI70XX_PARAM_I2C_DEV   SI7021_I2C
 

Hall-effect sensor configuration

Connection to the on-board hall-effect sensor (Si7210).

#define SI7210_I2C   I2C_DEV(0)
 I2C device for the Si7210.
 
#define SI7210_EN_PIN   GPIO_PIN(PC, 12)
 GPIO pin to enable the Si7210.
 

Macro Definition Documentation

◆ BC_PIN

#define BC_PIN   GPIO_PIN(PA, 8)

Pin to enable the board controller.

Definition at line 58 of file board.h.

◆ CONFIG_ZTIMER_USEC_ADJUST_SET

#define CONFIG_ZTIMER_USEC_ADJUST_SET   (24)

Overhead for ztimer_set.

Definition at line 46 of file board.h.

◆ CONFIG_ZTIMER_USEC_ADJUST_SLEEP

#define CONFIG_ZTIMER_USEC_ADJUST_SLEEP   (28)

Overhead for ztimer_sleep.

Definition at line 47 of file board.h.

◆ CONFIG_ZTIMER_USEC_BASE_FREQ

#define CONFIG_ZTIMER_USEC_BASE_FREQ   (250000UL)

Running at 250 kHz.

Definition at line 44 of file board.h.

◆ CONFIG_ZTIMER_USEC_DEV

#define CONFIG_ZTIMER_USEC_DEV   (TIMER_DEV(0))

Timer peripheral for ztimer.

Definition at line 43 of file board.h.

◆ CONFIG_ZTIMER_USEC_WIDTH

#define CONFIG_ZTIMER_USEC_WIDTH   (16)

Running on a 16-bit timer.

Definition at line 45 of file board.h.

◆ CORETEMP_ADC

#define CORETEMP_ADC   ADC_LINE(0)

ADC line for the internal temperature.

Definition at line 95 of file board.h.

◆ LED0_OFF

#define LED0_OFF   gpio_clear(LED0_PIN)

Turn LED 0 off.

Definition at line 82 of file board.h.

◆ LED0_ON

#define LED0_ON   gpio_set(LED0_PIN)

Turn LED 0 on.

Definition at line 81 of file board.h.

◆ LED0_PIN

#define LED0_PIN   GPIO_PIN(PD, 2)

Pin definition for LED 0.

Definition at line 73 of file board.h.

◆ LED0_TOGGLE

#define LED0_TOGGLE   gpio_toggle(LED0_PIN)

Toggle LED 0.

Definition at line 83 of file board.h.

◆ LED1_OFF

#define LED1_OFF   gpio_clear(LED1_PIN)

Turn LED 1 off.

Definition at line 85 of file board.h.

◆ LED1_ON

#define LED1_ON   gpio_set(LED1_PIN)

Turn LED 1 on.

Definition at line 84 of file board.h.

◆ LED1_PIN

#define LED1_PIN   GPIO_PIN(PC, 2)

Pin definition for LED 1.

Definition at line 74 of file board.h.

◆ LED1_TOGGLE

#define LED1_TOGGLE   gpio_toggle(LED1_PIN)

Toggle LED 1.

Definition at line 86 of file board.h.

◆ PB0_PIN

#define PB0_PIN   GPIO_PIN(PD, 5)

Pin definition for push button 0.

Definition at line 65 of file board.h.

◆ PB1_PIN

#define PB1_PIN   GPIO_PIN(PC, 9)

Pin definition for push button 1.

Definition at line 66 of file board.h.

◆ SI7021_EN_PIN

#define SI7021_EN_PIN   GPIO_PIN(PC, 12)

GPIO pin to enable the Si7021.

Definition at line 105 of file board.h.

◆ SI7021_I2C

#define SI7021_I2C   I2C_DEV(0)

I2C device for the Si7021.

Definition at line 104 of file board.h.

◆ SI70XX_PARAM_I2C_DEV

#define SI70XX_PARAM_I2C_DEV   SI7021_I2C

Definition at line 107 of file board.h.

◆ SI7210_EN_PIN

#define SI7210_EN_PIN   GPIO_PIN(PC, 12)

GPIO pin to enable the Si7210.

Definition at line 117 of file board.h.

◆ SI7210_I2C

#define SI7210_I2C   I2C_DEV(0)

I2C device for the Si7210.

Definition at line 116 of file board.h.