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 
22 #include "cpu.h"
23 #include "periph_conf.h"
24 #include "periph/gpio.h"
25 #include "periph/spi.h"
26 
27 #ifdef __cplusplus
28 extern "C" {
29 #endif
30 
38 #if IS_ACTIVE(CONFIG_EFM32_XTIMER_USE_LETIMER)
39 #define XTIMER_DEV (TIMER_DEV(1))
40 #define XTIMER_HZ (32768UL)
41 #define XTIMER_WIDTH (16)
42 #else
43 #define XTIMER_DEV (TIMER_DEV(0))
44 #define XTIMER_HZ (250000UL)
45 #define XTIMER_WIDTH (16)
46 #endif
47 #define XTIMER_CHAN (0)
54 #define VCOM_EN_PIN GPIO_PIN(PA, 15)
61 #define PB0_PIN GPIO_PIN(PD, 5)
62 #define PB1_PIN GPIO_PIN(PD, 8)
69 #define LED0R_PIN GPIO_PIN(PA, 12)
70 #define LED0G_PIN GPIO_PIN(PA, 13)
71 #define LED0B_PIN GPIO_PIN(PA, 14)
72 #define LED1R_PIN GPIO_PIN(PD, 6)
73 #define LED1G_PIN GPIO_PIN(PF, 12)
74 #define LED1B_PIN GPIO_PIN(PE, 12)
75 #define LED0_PIN LED0R_PIN
76 #define LED1_PIN LED1R_PIN
83 #define LED0_ON gpio_set(LED0_PIN)
84 #define LED0_OFF gpio_clear(LED0_PIN)
85 #define LED0_TOGGLE gpio_toggle(LED0_PIN)
86 #define LED1_ON gpio_set(LED1_PIN)
87 #define LED1_OFF gpio_clear(LED1_PIN)
88 #define LED1_TOGGLE gpio_toggle(LED1_PIN)
97 #define CORETEMP_ADC ADC_LINE(0)
100 #ifdef __cplusplus
101 }
102 #endif
103 
Peripheral MCU configuration for the Zigduino board.
Low-level GPIO peripheral driver interface definitions.
Low-level SPI peripheral driver interface definition.