Loading...
Searching...
No Matches
magic.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 2020 Mesotic SAS
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
22#ifndef RIOTBOOT_MAGIC_H
23#define RIOTBOOT_MAGIC_H
24
25#include "riotboot/hdr.h"
26
27#ifdef __cplusplus
28extern "C" {
29#endif
30
35#ifndef RIOTBOOT_MAGIC_ADDR
36#define RIOTBOOT_MAGIC_ADDR (CPU_RAM_BASE + CPU_RAM_SIZE - 4)
37#endif
38#ifndef RIOTBOOT_MAGIC_NUMBER
39#define RIOTBOOT_MAGIC_NUMBER RIOTBOOT_MAGIC
40#endif
43#ifdef __cplusplus
44}
45#endif
46
47#endif /* RIOTBOOT_MAGIC_H */
RIOT "partition" header and tools.