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) 2015 Hamburg University of Applied Sciences
3
*
4
* This file is subject to the terms and conditions of the GNU Lesser General
5
* Public License v2.1. See the file LICENSE in the top level directory for more
6
* details.
7
*/
8
19
#ifndef BOARD_H
20
#define BOARD_H
21
22
#include <stdint.h>
23
24
#include "cpu.h"
25
#include "
periph_conf.h
"
26
27
#ifdef __cplusplus
28
extern
"C"
{
29
#endif
30
35
#define LED0_PIN GPIO_PIN(PORT_C, 3)
36
37
#define LED0_PORT (GPIOC)
38
#define LED0_MASK (1 << 3)
39
40
#define LED0_ON (LED0_PORT->BSRR = LED0_MASK)
41
#define LED0_OFF (LED0_PORT->BSRR = (LED0_MASK << 16))
42
#define LED0_TOGGLE (LED0_PORT->ODR ^= LED0_MASK)
43
49
#define XTIMER_WIDTH (16U)
50
56
#define LIS3MDL_PARAM_I2C (I2C_DEV(1))
57
#define LIS3MDL_PARAM_ADDR (0x28)
58
63
void
board_init
(
void
);
64
65
#ifdef __cplusplus
66
}
67
#endif
68
69
#endif
/* BOARD_H */
70
periph_conf.h
Peripheral MCU configuration for the limifrog-v1 board.
board_init
void board_init(void)
Board level initialization.
Generated on Tue Nov 24 2020 19:46:49 by
1.8.17