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 
9 #pragma once
10 
23 #include "cpu.h"
24 #include "periph_conf.h"
25 #include "periph/gpio.h"
26 #include "periph/spi.h"
27 
28 #ifdef __cplusplus
29 extern "C" {
30 #endif
31 
38 #define XTIMER_DEV (TIMER_DEV(0))
39 #define XTIMER_HZ (250000UL)
40 #define XTIMER_WIDTH (16)
41 #define XTIMER_CHAN (0)
51 #define BC_PIN GPIO_PIN(PA, 9)
58 #define PB0_PIN GPIO_PIN(PC, 9)
59 #define PB1_PIN GPIO_PIN(PC, 10)
66 #define LED0_PIN GPIO_PIN(PF, 4)
67 #define LED1_PIN GPIO_PIN(PF, 5)
74 #define LED0_ON gpio_set(LED0_PIN)
75 #define LED0_OFF gpio_clear(LED0_PIN)
76 #define LED0_TOGGLE gpio_toggle(LED0_PIN)
77 #define LED1_ON gpio_set(LED1_PIN)
78 #define LED1_OFF gpio_clear(LED1_PIN)
79 #define LED1_TOGGLE gpio_toggle(LED1_PIN)
88 #define CORETEMP_ADC ADC_LINE(0)
97 #define DISP_SPI SPI_DEV(0)
98 #define DISP_COM_PIN GPIO_PIN(PF, 3)
99 #define DISP_CS_PIN GPIO_PIN(PA, 10)
100 #define DISP_EN_PIN GPIO_PIN(PA, 8)
109 #define SI7021_I2C I2C_DEV(0)
110 #define SI7021_EN_PIN GPIO_PIN(PC, 8)
111 
112 #define SI70XX_PARAM_I2C_DEV SI7021_I2C
115 #ifdef __cplusplus
116 }
117 #endif
118 
Peripheral MCU configuration for the Zigduino board.
Low-level GPIO peripheral driver interface definitions.
Low-level SPI peripheral driver interface definition.