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
25#ifdef __cplusplus
26extern "C" {
27#endif
28
33#define AT24MAC_PARAM_I2C_DEV I2C_DEV(1)
34#define AT24MAC_PARAM_I2C_ADDR (0x5E)
35#define AT24MAC_PARAM_TYPE AT24MAC4XX
36#define AT24CXXX_PARAM_I2C I2C_DEV(1)
37#define AT24CXXX_PARAM_ADDR (0x56)
44#define ATCA_PARAM_I2C I2C_DEV(1)
51#define LED0_PIN GPIO_PIN(PC, 18)
52
53#define LED_PORT PORT->Group[PC]
54#define LED0_MASK (1 << 18)
55
56#define LED0_ON (LED_PORT.OUTCLR.reg = LED0_MASK)
57#define LED0_OFF (LED_PORT.OUTSET.reg = LED0_MASK)
58#define LED0_TOGGLE (LED_PORT.OUTTGL.reg = LED0_MASK)
59
60#define LED1_PIN GPIO_PIN(PC, 15)
61
62#define LED_PORT PORT->Group[PC]
63#define LED1_MASK (1 << 15)
64
65#define LED1_ON (LED_PORT.OUTCLR.reg = LED1_MASK)
66#define LED1_OFF (LED_PORT.OUTSET.reg = LED1_MASK)
67#define LED1_TOGGLE (LED_PORT.OUTTGL.reg = LED1_MASK)
74#define BTN0_PIN GPIO_PIN(PB, 31)
75#define BTN0_MODE GPIO_IN_PU
82#define AT6561_STBY_PIN GPIO_PIN(PC, 13)
89#define MTD_0 mtd_dev_get(0)
90#define MTD_1 mtd_dev_get(1)
91#define MTD_2 mtd_dev_get(2)
93#define CONFIG_SDMMC_GENERIC_MTD_OFFSET 2
100#define XTIMER_WIDTH (32)
101#define XTIMER_HZ (1000000ul)
104#ifdef __cplusplus
105}
106#endif
107
108#endif /* BOARD_H */