Toggle navigation
Documentation
The friendly Operating System for the Internet of Things
Main Page
Related Pages
Supported Boards
Modules
Namespaces
Namespace List
Namespace Members
All
Functions
Variables
Enumerations
Data Structures
Data Structures
Class Hierarchy
Data Fields
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
r
s
t
u
w
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
Enumerator
Related Symbols
Files
File List
Globals
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Typedefs
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Enumerations
_
a
b
c
d
e
f
g
h
i
k
l
m
n
p
q
r
s
t
u
v
w
x
z
Enumerator
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Macros
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
►
RIOT OS
•
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Modules
Pages
Loading...
Searching...
No Matches
bootloader_selection.h
Go to the documentation of this file.
1
/*
2
* Copyright (C) 2020 Christian Amsüss <chrysn@fsfe.org>
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
*/
18
/* Include guards and cplusplus are more of a formality; this header is local
19
* to the riotboot_dfu application that isn't written in C++ and not included
20
* from anywhere else either, but still here for consistency (and because
21
* otherwise the checks complain) */
22
#ifndef RIOTBOOT_BOOTLOADER_SELECTION_H
23
#define RIOTBOOT_BOOTLOADER_SELECTION_H
24
25
#ifdef __cplusplus
26
extern
"C"
{
27
#endif
28
29
/* Not including GPIO headers: we're not actually *doing* anything on GPIO, and
30
* if no BTN0_PIN is defined we don't define anything either */
31
#include <board.h>
32
45
#if (!defined(BTN_BOOTLOADER_PIN) && defined(BTN0_PIN) && !defined(BTN_BOOTLOADER_NONE)) || DOXYGEN
46
#define BTN_BOOTLOADER_PIN BTN0_PIN
47
#endif
48
55
#ifndef BTN_BOOTLOADER_MODE
56
#define BTN_BOOTLOADER_MODE BTN0_MODE
57
#endif
58
65
#ifndef BTN_BOOTLOADER_EXT_PULLUP
66
#define BTN_BOOTLOADER_EXT_PULLUP false
67
#endif
68
74
#if !defined(LED_BOOTLOADER_PIN) && defined(LED0_PIN) && !defined(LED_BOOTLOADER_NONE) || DOXYGEN
75
#define LED_BOOTLOADER_PIN LED0_PIN
76
#define LED_BOOTLOADER_ON LED0_ON
77
#define LED_BOOTLOADER_OFF LED0_OFF
78
#define LED_BOOTLOADER_TOGGLE LED0_TOGGLE
79
#endif
80
81
#ifdef __cplusplus
82
}
83
#endif
84
85
#endif
/* RIOTBOOT_BOOTLOADER_SELECTION_H */
86
Generated on Wed Apr 2 2025 16:43:14 by
1.12.0