Loading...
Searching...
No Matches
board.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2019 Benjamin Valentin
3 * SPDX-License-Identifier: LGPL-2.1-only
4 */
5
6#pragma once
7
19
20#ifdef __cplusplus
21extern "C" {
22#endif
23
24#include "periph_cpu.h"
25
30#define XTIMER_BACKOFF (8)
31#define XTIMER_OVERHEAD (6)
33
38#define LED0_PIN_NUM 13
39#define LED0_PORT GPIO_PORT_C
40#define LED0_PORT_NUM PORT_C
41#define LED0_IS_INVERTED 1
43
48#define BTN0_PIN GPIO_PIN(PORT_A, 0)
49#define BTN0_MODE GPIO_IN_PU
51
59#define WEACT_4X1CX_NOR_PAGE_SIZE (256)
60#define WEACT_4X1CX_NOR_PAGES_PER_SECTOR (16)
61#define WEACT_4X1CX_NOR_FLAGS (SPI_NOR_F_SECT_4K | SPI_NOR_F_SECT_32K)
62#define WEACT_4X1CX_NOR_SPI_DEV SPI_DEV(0)
63#define WEACT_4X1CX_NOR_SPI_CLK SPI_CLK_10MHZ
64#define WEACT_4X1CX_NOR_SPI_CS GPIO_PIN(PORT_A, 4)
65#define WEACT_4X1CX_NOR_SPI_MODE SPI_MODE_0
67
72#define MTD_0 mtd_dev_get(0)
74
75#ifdef __cplusplus
76}
77#endif
78
79#include "stm32_leds.h"
80
Common LED macros.