Loading...
Searching...
No Matches
board.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2015-2020 Freie Universität Berlin
3 * SPDX-License-Identifier: LGPL-2.1-only
4 */
5
6#pragma once
7
19
20#include "cpu.h"
21#include "periph_conf.h"
22#include "periph/gpio.h"
23#include "periph/spi.h"
24
25#ifdef __cplusplus
26extern "C" {
27#endif
28
35#define CONFIG_ZTIMER_USEC_DEV (TIMER_DEV(0))
36#define CONFIG_ZTIMER_USEC_BASE_FREQ (250000UL)
37#define CONFIG_ZTIMER_USEC_WIDTH (16)
38#define CONFIG_ZTIMER_USEC_ADJUST_SET (56)
39#define CONFIG_ZTIMER_USEC_ADJUST_SLEEP (64)
41
49#define BC_PIN GPIO_PIN(PA, 9)
51
56#define PB0_PIN GPIO_PIN(PC, 9)
57#define PB1_PIN GPIO_PIN(PC, 10)
59
64#define LED0_PIN GPIO_PIN(PF, 4)
65#define LED1_PIN GPIO_PIN(PF, 5)
67
72#define LED0_ON gpio_set(LED0_PIN)
73#define LED0_OFF gpio_clear(LED0_PIN)
74#define LED0_TOGGLE gpio_toggle(LED0_PIN)
75#define LED1_ON gpio_set(LED1_PIN)
76#define LED1_OFF gpio_clear(LED1_PIN)
77#define LED1_TOGGLE gpio_toggle(LED1_PIN)
79
86#define CORETEMP_ADC ADC_LINE(0)
88
95#define DISP_SPI SPI_DEV(0)
96#define DISP_COM_PIN GPIO_PIN(PF, 3)
97#define DISP_CS_PIN GPIO_PIN(PA, 10)
98#define DISP_EN_PIN GPIO_PIN(PA, 8)
100
107#define SI7021_I2C I2C_DEV(0)
108#define SI7021_EN_PIN GPIO_PIN(PC, 8)
109
110#define SI70XX_PARAM_I2C_DEV SI7021_I2C
112
113#ifdef __cplusplus
114}
115#endif
116
Configuration of CPU peripherals for the SLSTK3400A starter kit.
Low-level GPIO peripheral driver interface definitions.
Low-level SPI peripheral driver interface definition.