Toggle navigation
Documentation
The friendly Operating System for the Internet of Things
Loading...
Searching...
No Matches
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
19
#ifndef BOARD_H
20
#define BOARD_H
21
22
#include "cpu.h"
23
#include "
periph_conf.h
"
24
25
#ifdef __cplusplus
26
extern
"C"
{
27
#endif
28
29
/* Use the on board RTC 32kHz clock for LPTMR clocking. */
30
#undef LPTIMER_CLKSRC
32
#define LPTIMER_CLKSRC LPTIMER_CLKSRC_ERCLK32K
33
35
#define DISABLE_WDOG 1
36
41
#define XTIMER_DEV (TIMER_PIT_DEV(0))
42
#define XTIMER_CHAN (0)
43
#define XTIMER_BACKOFF (40)
44
#define XTIMER_ISR_BACKOFF (40)
51
#define LED_PORT PTC
52
#define LED0_BIT (5)
53
54
#define LED0_PIN GPIO_PIN(PORT_C, LED0_BIT)
55
56
#define LED0_ON (LED_PORT->PSOR = (1 << LED0_BIT))
57
#define LED0_OFF (LED_PORT->PCOR = (1 << LED0_BIT))
58
#define LED0_TOGGLE (LED_PORT->PTOR = (1 << LED0_BIT))
61
#ifdef __cplusplus
62
}
63
#endif
64
65
#endif
/* BOARD_H */
periph_conf.h
Native CPU peripheral configuration.
Generated on Sat Nov 23 2024 01:58:05 by
1.9.8