Loading...
Searching...
No Matches
board.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 2019 Benjamin Valentin
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
21#ifndef BOARD_H
22#define BOARD_H
23
24#ifdef __cplusplus
25extern "C" {
26#endif
27
28#include "periph_cpu.h"
29
34#define XTIMER_BACKOFF (8)
35#define XTIMER_OVERHEAD (6)
42#define LED0_PIN_NUM 13
43#define LED0_PORT_NUM PORT_C
44#define LED0_IS_INVERTED 1
51#define BTN0_PIN GPIO_PIN(PORT_A, 0)
52#define BTN0_MODE GPIO_IN_PU
62#define WEACT_4X1CX_NOR_PAGE_SIZE (256)
63#define WEACT_4X1CX_NOR_PAGES_PER_SECTOR (16)
64#define WEACT_4X1CX_NOR_FLAGS (SPI_NOR_F_SECT_4K | SPI_NOR_F_SECT_32K)
65#define WEACT_4X1CX_NOR_SPI_DEV SPI_DEV(0)
66#define WEACT_4X1CX_NOR_SPI_CLK SPI_CLK_10MHZ
67#define WEACT_4X1CX_NOR_SPI_CS GPIO_PIN(PORT_A, 4)
68#define WEACT_4X1CX_NOR_SPI_MODE SPI_MODE_0
75#define MTD_0 mtd_dev_get(0)
78#ifdef __cplusplus
79}
80#endif
81
82#include "stm32_leds.h"
83
84#endif /* BOARD_H */
Common LED macros.