bootloader_selection.h File Reference

Configuration for the riotboot_dfu bootloader. More...

Detailed Description

Configuration for the riotboot_dfu bootloader.

Christian Amsüss chrys.nosp@m.n@fs.nosp@m.fe.or.nosp@m.g

Definition in file bootloader_selection.h.

#include <board.h>
+ Include dependency graph for bootloader_selection.h:

Go to the source code of this file.

 Button pin for bootloader selection. More...
 Pin mode for BTN_BOOTLOADER_PIN. More...
 Interpretation of BTN_BOOTLOADER_PIN. More...
 LED pin for bootloader indication. More...
 Turn the bootloader LED on
 Turn the bootloader LED off. More...
 Toggle the bootloader LED

Macro Definition Documentation



Interpretation of BTN_BOOTLOADER_PIN.

This value should be set to true if the button has an external pull-up and thus, works as an active-low button. If the button has an internal pull-up, the default value should remains false

Definition at line 66 of file bootloader_selection.h.




Mode into which the riotboot_dfu bootloader will configure BTN_BOOTLOADER_PIN before reading it.

Definition at line 56 of file bootloader_selection.h.



Button pin for bootloader selection.

This pin (typically connected to a button) is checked by the riotboot_dfu bootloader to decide whether to enter DFU mode even if a valid image is present.

The default value for all boards is BTN0, if one is defined.

Boards that insist on not using any button even though they have some can define BTN_BOOTLOADER_NONE in their board.h.

Definition at line 46 of file bootloader_selection.h.



Turn the bootloader LED off.

Definition at line 77 of file bootloader_selection.h.



Turn the bootloader LED on

Definition at line 76 of file bootloader_selection.h.



LED pin for bootloader indication.

This pin (typically connected to a LED) will be toggled while the bootloader is active. It can be used to communicate the current bootloader state to the user.

Definition at line 75 of file bootloader_selection.h.



Toggle the bootloader LED

Definition at line 78 of file bootloader_selection.h.