Toggle navigation
Documentation
The friendly Operating System for the Internet of Things
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
25
extern
"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 GPIO_PORT_C
44
#define LED0_PORT_NUM PORT_C
45
#define LED0_IS_INVERTED 1
52
#define BTN0_PIN GPIO_PIN(PORT_A, 0)
53
#define BTN0_MODE GPIO_IN_PU
63
#define WEACT_4X1CX_NOR_PAGE_SIZE (256)
64
#define WEACT_4X1CX_NOR_PAGES_PER_SECTOR (16)
65
#define WEACT_4X1CX_NOR_FLAGS (SPI_NOR_F_SECT_4K | SPI_NOR_F_SECT_32K)
66
#define WEACT_4X1CX_NOR_SPI_DEV SPI_DEV(0)
67
#define WEACT_4X1CX_NOR_SPI_CLK SPI_CLK_10MHZ
68
#define WEACT_4X1CX_NOR_SPI_CS GPIO_PIN(PORT_A, 4)
69
#define WEACT_4X1CX_NOR_SPI_MODE SPI_MODE_0
76
#define MTD_0 mtd_dev_get(0)
79
#ifdef __cplusplus
80
}
81
#endif
82
83
#include "
stm32_leds.h
"
84
85
#endif
/* BOARD_H */
stm32_leds.h
Common LED macros.
Generated on Sun Dec 22 2024 13:48:31 by
1.9.8