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
20#ifndef BOARD_H
21#define BOARD_H
22
23#include "cpu.h"
24#include "periph_conf.h"
25#include "board_common.h"
26#include "arduino_pinmap.h"
27
28#ifdef __cplusplus
29extern "C" {
30#endif
31
36#define SDCARD_SPI_PARAM_SPI (SPI_DEV(1))
37#define SDCARD_SPI_PARAM_CS (GPIO_PIN(PA, 14))
38#define SDCARD_SPI_PARAM_CLK (GPIO_PIN(PA, 13))
39#define SDCARD_SPI_PARAM_MOSI (GPIO_PIN(PA, 12))
40#define SDCARD_SPI_PARAM_MISO (GPIO_PIN(PA, 15))
41#define SDCARD_SPI_PARAM_POWER (GPIO_UNDEF)
43#define SDCARD_SPI_PARAM_POWER_AH (true)
49#define CARD_DETECT_PIN (GPIO_PIN(PA, 27))
50
55#define LED0_PIN GPIO_PIN(PB, 8)
56
57#define LED_PORT PORT->Group[PB]
58#define LED0_MASK (1 << 8)
59
60#define LED0_ON (LED_PORT.OUTSET.reg = LED0_MASK)
61#define LED0_OFF (LED_PORT.OUTCLR.reg = LED0_MASK)
62#define LED0_TOGGLE (LED_PORT.OUTTGL.reg = LED0_MASK)
63
64#define LED0_NAME "LED(Green)"
67#ifdef __cplusplus
68}
69#endif
70
71#endif /* BOARD_H */
Compatibility wrapper for arduino_iomap.h.