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
9#pragma once
10
23
24#include "riotboot/hdr.h"
25
26#ifdef __cplusplus
27extern "C" {
28#endif
29
34#ifndef RIOTBOOT_MAGIC_ADDR
35#define RIOTBOOT_MAGIC_ADDR (CPU_RAM_BASE + CPU_RAM_SIZE - 4)
36#endif
37#ifndef RIOTBOOT_MAGIC_NUMBER
38#define RIOTBOOT_MAGIC_NUMBER RIOTBOOT_MAGIC
39#endif
41
42#ifdef __cplusplus
43}
44#endif
RIOT "partition" header and tools.