Toggle navigation
Documentation
The friendly Operating System for the Internet of Things
board.h
Go to the documentation of this file.
1
/*
2
* Copyright(C) 2016,2017, Imagination Technologies Limited and/or its
3
* affiliated group companies.
4
*
5
* This file is subject to the terms and conditions of the GNU Lesser
6
* General Public License v2.1. See the file LICENSE in the top level
7
* directory for more details.
8
*
9
*/
10
26
#ifndef BOARD_H
27
#define BOARD_H
28
29
#include "cpu.h"
30
#include "
periph_conf.h
"
31
32
#ifdef __cplusplus
33
extern
"C"
{
34
#endif
35
40
#define TICKS_PER_US (48)
41
46
#define LED1_PIN GPIO_PIN(PORT_B, 1)
47
#define LED2_PIN GPIO_PIN(PORT_B, 2)
48
49
#define LED1_MASK (1 << 1)
50
#define LED2_MASK (1 << 2)
51
52
#define LED1_ON (LATBSET = LED1_MASK)
53
#define LED1_OFF (LATBCLR = LED1_MASK)
54
#define LED1_TOGGLE (LATBINV = LED1_MASK)
55
56
#define LED2_ON (LATBSET = LED2_MASK)
57
#define LED2_OFF (LATBCLR = LED2_MASK)
58
#define LED2_TOGGLE (LATBINV = LED2_MASK)
59
65
#define BTN0_PIN GPIO_PIN(PORT_E, 7)
66
#define BTN0_MODE GPIO_IN
67
68
#define BTN1_PIN GPIO_PIN(PORT_B, 0)
69
#define BTN1_MODE GPIO_IN
70
75
void
board_init
(
void
);
76
77
#ifdef __cplusplus
78
}
79
#endif
80
81
82
#endif
/* BOARD_H */
83
periph_conf.h
peripheral configuration for the MikroE 6LoWPAN Clicker
board_init
void board_init(void)
Board level initialization.
Generated on Tue Nov 24 2020 19:46:49 by
1.8.17