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#include "periph/gpio.h"
28
29#ifdef __cplusplus
30extern "C" {
31#endif
32
37#define SDCARD_SPI_PARAM_SPI (SPI_DEV(1))
38#define SDCARD_SPI_PARAM_CS (GPIO_PIN(PA, 14))
39#define SDCARD_SPI_PARAM_CLK (GPIO_PIN(PA, 13))
40#define SDCARD_SPI_PARAM_MOSI (GPIO_PIN(PA, 12))
41#define SDCARD_SPI_PARAM_MISO (GPIO_PIN(PA, 15))
42#define SDCARD_SPI_PARAM_POWER (GPIO_UNDEF)
44#define SDCARD_SPI_PARAM_POWER_AH (true)
50#define CARD_DETECT_PIN (GPIO_PIN(PA, 27))
51
56#define LED0_PIN GPIO_PIN(PB, 8)
57
58#define LED_PORT PORT->Group[PB]
59#define LED0_MASK (1 << 8)
60
61#define LED0_ON (LED_PORT.OUTSET.reg = LED0_MASK)
62#define LED0_OFF (LED_PORT.OUTCLR.reg = LED0_MASK)
63#define LED0_TOGGLE (LED_PORT.OUTTGL.reg = LED0_MASK)
64
65#define LED0_NAME "LED(Green)"
68#ifdef __cplusplus
69}
70#endif
71
72#endif /* BOARD_H */
Compatibility wrapper for arduino_iomap.h.
Low-level GPIO peripheral driver interface definitions.