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) 2019 ML!PA Consulting GmbH
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
20
#ifndef BOARD_H
21
#define BOARD_H
22
23
#include "cpu.h"
24
#include "
periph/gpio.h
"
25
26
#ifdef __cplusplus
27
extern
"C"
{
28
#endif
29
34
#define AT24MAC_PARAM_I2C_DEV I2C_DEV(1)
35
#define AT24MAC_PARAM_I2C_ADDR (0x5E)
36
#define AT24MAC_PARAM_TYPE AT24MAC4XX
37
#define AT24CXXX_PARAM_I2C I2C_DEV(1)
38
#define AT24CXXX_PARAM_ADDR (0x56)
45
#define ATCA_PARAM_I2C I2C_DEV(1)
52
#define LED0_PIN GPIO_PIN(PC, 18)
53
54
#define LED_PORT PORT->Group[PC]
55
#define LED0_MASK (1 << 18)
56
57
#define LED0_ON (LED_PORT.OUTCLR.reg = LED0_MASK)
58
#define LED0_OFF (LED_PORT.OUTSET.reg = LED0_MASK)
59
#define LED0_TOGGLE (LED_PORT.OUTTGL.reg = LED0_MASK)
60
61
#define LED1_PIN GPIO_PIN(PC, 15)
62
63
#define LED_PORT PORT->Group[PC]
64
#define LED1_MASK (1 << 15)
65
66
#define LED1_ON (LED_PORT.OUTCLR.reg = LED1_MASK)
67
#define LED1_OFF (LED_PORT.OUTSET.reg = LED1_MASK)
68
#define LED1_TOGGLE (LED_PORT.OUTTGL.reg = LED1_MASK)
75
#define BTN0_PIN GPIO_PIN(PB, 31)
76
#define BTN0_MODE GPIO_IN_PU
83
#define AT6561_STBY_PIN GPIO_PIN(PC, 13)
90
#define MTD_0 mtd_dev_get(0)
91
#define MTD_1 mtd_dev_get(1)
92
#define MTD_2 mtd_dev_get(2)
94
#define CONFIG_SDMMC_GENERIC_MTD_OFFSET 2
101
#define XTIMER_WIDTH (32)
102
#define XTIMER_HZ (1000000ul)
105
#ifdef __cplusplus
106
}
107
#endif
108
109
#endif
/* BOARD_H */
gpio.h
Low-level GPIO peripheral driver interface definitions.
Generated on Sat Dec 21 2024 20:58:01 by
1.9.8