Loading...
Searching...
No Matches
board.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 2015-2020 Freie Universität Berlin
3 *
4 * This file is subject to the terms and conditions of the GNU Lesser
5 * General Public License v2.1. See the file LICENSE in the top level
6 * directory for more details.
7 */
8
20#ifndef BOARD_H
21#define BOARD_H
22
23#include "cpu.h"
24#include "periph_conf.h"
25#include "periph/adc.h"
26#include "periph/gpio.h"
27#include "periph/spi.h"
28
29#ifdef __cplusplus
30extern "C" {
31#endif
32
40#if IS_ACTIVE(CONFIG_EFM32_XTIMER_USE_LETIMER)
41#define XTIMER_DEV (TIMER_DEV(2))
42#define XTIMER_HZ (32768UL)
43#define XTIMER_WIDTH (16)
44#else
45#define XTIMER_DEV (TIMER_DEV(0))
46#define XTIMER_HZ (1000000UL)
47#define XTIMER_WIDTH (32)
48#endif
49#define XTIMER_CHAN (0)
59#define BC_PIN GPIO_PIN(PA, 5)
66#define PB0_PIN GPIO_PIN(PF, 6)
67#define PB1_PIN GPIO_PIN(PF, 7)
74#define LED0_PIN GPIO_PIN(PF, 4)
75#define LED1_PIN GPIO_PIN(PF, 5)
82#define LED0_ON gpio_set(LED0_PIN)
83#define LED0_OFF gpio_clear(LED0_PIN)
84#define LED0_TOGGLE gpio_toggle(LED0_PIN)
85#define LED1_ON gpio_set(LED1_PIN)
86#define LED1_OFF gpio_clear(LED1_PIN)
87#define LED1_TOGGLE gpio_toggle(LED1_PIN)
96#define CORETEMP_ADC ADC_LINE(0)
105#define DISP_SPI SPI_DEV(0)
106#define DISP_COM_PIN GPIO_PIN(PD, 13)
107#define DISP_CS_PIN GPIO_PIN(PD, 14)
108#define DISP_EN_PIN GPIO_PIN(PD, 15)
117#define SI7021_I2C I2C_DEV(0)
118#define SI7021_EN_PIN GPIO_PIN(PB, 10)
119
120#define SI70XX_PARAM_I2C_DEV SI7021_I2C
123#ifdef __cplusplus
124}
125#endif
126
127#endif /* BOARD_H */
Low-level ADC peripheral driver interface definitions.
Native CPU peripheral configuration.
Low-level GPIO peripheral driver interface definitions.
Low-level SPI peripheral driver interface definition.