OLE Developer Guide  Latest Git
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
bootloader_settings.h
Go to the documentation of this file.
1 /*
2  * This library is free software; you can redistribute it and/or
3  * modify it under the terms of the GNU Lesser General Public
4  * License as published by the Free Software Foundation; either
5  * version 2.1 of the License, or (at your option) any later version.
6  *
7  * This library is distributed in the hope that it will be useful,
8  * but WITHOUT ANY WARRANTY; without even the implied warranty of
9  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10  * Lesser General Public License for more details.
11  *
12  * You should have received a copy of the GNU Lesser General Public
13  * License along with this library; if not, write to the Free Software
14  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
15  *
16  * template/bootloader_settings.h
17  * Copyright (C) 2015 Simon Newton
18  */
19 
20 #ifndef BOARDCFG_TEMPLATE_BOOTLOADER_SETTINGS_H_
21 #define BOARDCFG_TEMPLATE_BOOTLOADER_SETTINGS_H_
22 
23 #include "bootloader.h"
24 #include "common_settings.h"
25 #include "config_options.h"
26 
27 #ifdef __cplusplus
28 extern "C" {
29 #endif
30 
45 #define APPLICATION_RESET_ADDRESS 0x9d008000
46 
50 #define FLASH_PAGE_SIZE 0x1000
51 
55 #define FLASH_WORD_SIZE 4
56 
60 #define CFG_ALLOW_DFU_UID_UPDATES
61 
65 #define SWITCH_PORT_CHANNEL PORT_CHANNEL_D
66 
70 #define SWITCH_PORT_BIT PORTS_BIT_POS_2
71 
75 #define SWITCH_ACTIVE_HIGH false
76 
81 
87 #ifdef __cplusplus
88 }
89 #endif
90 
91 #endif // BOARDCFG_TEMPLATE_BOOTLOADER_SETTINGS_H_
Configuration settings by both the bootloader and the main app.
The DFU bootloader.
The array of LEDs to flash when we're in bootloader mode.
Definition: bootloader.h:52
Settings used for board configuration.
const Bootloader_LEDs BOOTLOADER_LEDS
The LEDS to flash in bootloader mode.
Definition: bootloader_settings.h:80