Loading...
Searching...
No Matches
board.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2014 Freie Universität Berlin
3 * SPDX-License-Identifier: LGPL-2.1-only
4 */
5
6#pragma once
7
17
18#include <stdint.h>
19
20#include "cpu.h"
21#include "periph_conf.h"
22
23#ifdef __cplusplus
24 extern "C" {
25#endif
26
30#define XTIMER_WIDTH (16)
31
36#define LED0_PIN_NUM 9
37#define LED0_PORT GPIO_PORT_A
38#define LED0_PORT_NUM PORT_A
39
40#define LED1_PIN_NUM 10
41#define LED1_PORT GPIO_PORT_A
42#define LED1_PORT_NUM PORT_A
43
44#define LED2_PIN_NUM 8
45#define LED2_PORT GPIO_PORT_A
46#define LED2_PORT_NUM PORT_A
47
48#define LED3_PIN_NUM 13
49#define LED3_PORT GPIO_PORT_A
50#define LED3_PORT_NUM PORT_A
52
57#define BUTTON1 GPIO_PIN(PORT_B,2)
59
64#define CC3000_SPI SPI_DEV(0)
65#define CC3000_CS GPIO_PIN(PORT_B,12)
66#define CC3000_EN GPIO_PIN(PORT_B,8)
67#define CC3000_INT GPIO_PIN(PORT_B,11)
69
74#define EXTFLASH_SPI SPI_DEV(0)
75#define EXTFLASH GPIO_PIN(PORT_B,9)
77
78#ifdef __cplusplus
79} /* end extern "C" */
80#endif
81
82#include "stm32_leds.h"
83
Peripheral MCU configuration for the spark-core board.
Common LED macros.