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 #include "cpu.h"
20 #include "periph_conf.h"
21 #include "periph/gpio.h"
22 #include "periph/spi.h"
23 
24 #ifdef __cplusplus
25 extern "C" {
26 #endif
27 
35 #if IS_ACTIVE(CONFIG_EFM32_XTIMER_USE_LETIMER)
36 #define XTIMER_DEV (TIMER_DEV(1))
37 #define XTIMER_HZ (32768UL)
38 #define XTIMER_WIDTH (16)
39 #else
40 #define XTIMER_DEV (TIMER_DEV(0))
41 #define XTIMER_HZ (250000UL)
42 #define XTIMER_WIDTH (16)
43 #endif
44 #define XTIMER_CHAN (0)
51 #define VCOM_EN_PIN GPIO_PIN(PA, 15)
58 #define PB0_PIN GPIO_PIN(PD, 5)
59 #define PB1_PIN GPIO_PIN(PD, 8)
66 #define LED0R_PIN GPIO_PIN(PA, 12)
67 #define LED0G_PIN GPIO_PIN(PA, 13)
68 #define LED0B_PIN GPIO_PIN(PA, 14)
69 #define LED1R_PIN GPIO_PIN(PD, 6)
70 #define LED1G_PIN GPIO_PIN(PF, 12)
71 #define LED1B_PIN GPIO_PIN(PE, 12)
72 #define LED0_PIN LED0R_PIN
73 #define LED1_PIN LED1R_PIN
80 #define LED0_ON gpio_set(LED0_PIN)
81 #define LED0_OFF gpio_clear(LED0_PIN)
82 #define LED0_TOGGLE gpio_toggle(LED0_PIN)
83 #define LED1_ON gpio_set(LED1_PIN)
84 #define LED1_OFF gpio_clear(LED1_PIN)
85 #define LED1_TOGGLE gpio_toggle(LED1_PIN)
94 #define CORETEMP_ADC ADC_LINE(0)
97 #ifdef __cplusplus
98 }
99 #endif
100 
Peripheral MCU configuration for the Zigduino board.
Low-level GPIO peripheral driver interface definitions.
Low-level SPI peripheral driver interface definition.