px-fwlib 0.10.0
Cross-platform embedded library and documentation for 8/16/32-bit microcontrollers generated with Doxygen 1.9.2
px_uf2_cfg_template.h
1#ifndef __PX_UF2_CFG_H__
2#define __PX_UF2_CFG_H__
3/* =============================================================================
4 ____ ___ ____ ___ _ _ ___ __ __ ___ __ __ TM
5 | _ \ |_ _| / ___| / _ \ | \ | | / _ \ | \/ | |_ _| \ \/ /
6 | |_) | | | | | | | | | | \| | | | | | | |\/| | | | \ /
7 | __/ | | | |___ | |_| | | |\ | | |_| | | | | | | | / \
8 |_| |___| \____| \___/ |_| \_| \___/ |_| |_| |___| /_/\_\
9
10 Copyright (c) 2019 Pieter Conradie <https://piconomix.com>
11
12 License: MIT
13 https://github.com/piconomix/px-fwlib/blob/master/LICENSE.md
14
15 Title: px_uf2.h : Microsoft UF2 bootloader over USB MSC (Mass Storage Class) configuration
16 Author(s): Pieter Conradie
17 Creation Date: 2019-05-25
18
19============================================================================= */
20
21/**
22 * @addtogroup PX_UF2
23 *
24 * @{
25 */
26
27/* _____STANDARD INCLUDES____________________________________________________ */
28
29/* _____PROJECT INCLUDES_____________________________________________________ */
30
31/* _____DEFINITIONS__________________________________________________________ */
32/// Start address of flash to write to (reserved space for bootloader)
33#define PX_UF2_CFG_FLASH_START_ADR 0x00004000
34
35/// Flash size
36#define PX_UF2_CFG_FLASH_SIZE 0x00020000
37
38/// Info file version text
39#define PX_UF2_CFG_INFO_VERSION "1.0.0 F"
40
41/// Info file model text
42#define PX_UF2_CFG_INFO_MODEL "PX-HERO"
43
44/// Info file board ID text
45#define PX_UF2_CFG_INFO_BOARD_ID "STM32L072RB"
46
47/// index.htm file URL
48#define PX_UF2_CFG_INDEX_URL "https://piconomix.com/px-fwlib/index.html"
49
50/// FAT16 volume label
51#define PX_UF2_CFG_VOLUME_LABEL "HERO-BOOT "
52
53/// Family ID
54#define PX_UF2_CFG_FAMILY_ID 0xe892273c
55
56/// @}
57#endif