mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
a638f31bce
In order to use the RIOT bootloader (riotboot) a header needs to be created and placed before the firmware. This tool generates such a header with the expected information by the bootloader. Co-authored-by: Kaspar Schleiser <kaspar@schleiser.de>
32 lines
708 B
C
32 lines
708 B
C
/*
|
|
* Copyright (C) 2017 Kaspar Schleiser <kaspar@schleiser.de>
|
|
*
|
|
* This file is subject to the terms and conditions of the GNU General Public
|
|
* License v2. See the file LICENSE for more details.
|
|
*/
|
|
|
|
#ifndef COMMON_H
|
|
#define COMMON_H
|
|
|
|
#include <stddef.h>
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
/**
|
|
* @brief Write len bytes of a given buffer into a file
|
|
*
|
|
* @param[out] filename name of the file to be written
|
|
* @param[in] buf a pointer to the buffer which needs to be written
|
|
* @param[in] len the number of bytes from buf to be written
|
|
*
|
|
*/
|
|
int to_file(const char *filename, void *buf, size_t len);
|
|
|
|
#ifdef __cplusplus
|
|
} /* end extern "C" */
|
|
#endif
|
|
|
|
#endif /* COMMON_H */
|