board.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2017 Inria
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 
21 #include "cpu.h"
22 #include "periph_conf.h"
23 
24 #ifdef __cplusplus
25 extern "C" {
26 #endif
27 
28 /* Use the on board RTC 32kHz clock for LPTMR clocking. */
29 #undef LPTIMER_CLKSRC
31 #define LPTIMER_CLKSRC LPTIMER_CLKSRC_ERCLK32K
32 
34 #define DISABLE_WDOG 1
35 
40 #define XTIMER_DEV (TIMER_PIT_DEV(0))
41 #define XTIMER_CHAN (0)
42 #define XTIMER_BACKOFF (40)
43 #define XTIMER_ISR_BACKOFF (40)
50 #define LED_PORT PTC
51 #define LED0_BIT (5)
52 
53 #define LED0_PIN GPIO_PIN(PORT_C, LED0_BIT)
54 
55 #define LED0_ON (LED_PORT->PSOR = (1 << LED0_BIT))
56 #define LED0_OFF (LED_PORT->PCOR = (1 << LED0_BIT))
57 #define LED0_TOGGLE (LED_PORT->PTOR = (1 << LED0_BIT))
60 #ifdef __cplusplus
61 }
62 #endif
63 
Peripheral MCU configuration for the Zigduino board.