board.h
Go to the documentation of this file.
1 /*
2  * SPDX-FileCopyrightText: 2017 Inria
3  * SPDX-License-Identifier: LGPL-2.1-only
4  */
5 
6 #pragma once
7 
18 #include "cpu.h"
19 #include "periph_conf.h"
20 
21 #ifdef __cplusplus
22 extern "C" {
23 #endif
24 
25 /* Use the on board RTC 32kHz clock for LPTMR clocking. */
26 #undef LPTIMER_CLKSRC
28 #define LPTIMER_CLKSRC LPTIMER_CLKSRC_ERCLK32K
29 
31 #define DISABLE_WDOG 1
32 
37 #define XTIMER_DEV (TIMER_PIT_DEV(0))
38 #define XTIMER_CHAN (0)
39 #define XTIMER_BACKOFF (40)
40 #define XTIMER_ISR_BACKOFF (40)
47 #define LED_PORT PTC
48 #define LED0_BIT (5)
49 
50 #define LED0_PIN GPIO_PIN(PORT_C, LED0_BIT)
51 
52 #define LED0_ON (LED_PORT->PSOR = (1 << LED0_BIT))
53 #define LED0_OFF (LED_PORT->PCOR = (1 << LED0_BIT))
54 #define LED0_TOGGLE (LED_PORT->PTOR = (1 << LED0_BIT))
57 #ifdef __cplusplus
58 }
59 #endif
60 
Peripheral MCU configuration for the Zigduino board.