dRonin  adbada4
dRonin firmware
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
bu_payload.c
Go to the documentation of this file.
1 
11 /*
12  * This program is free software; you can redistribute it and/or modify
13  * it under the terms of the GNU General Public License as published by
14  * the Free Software Foundation; either version 3 of the License, or
15  * (at your option) any later version.
16  *
17  * This program is distributed in the hope that it will be useful, but
18  * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
19  * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
20  * for more details.
21  *
22  * You should have received a copy of the GNU General Public License along
23  * with this program; if not, see <http://www.gnu.org/licenses/>
24  */
25 
26 #include <pios_stringify.h> /* __stringify */
27 
28 /* This is needed to make ccache aware the binary has changed. Without it,
29  ccache will always return old cached files. */
30 static const char __attribute__((unused)) dummy[] = __stringify(BU_HASH);
31 
32 asm(
33  ".section .rodata\n"
34 
35  ".global _bu_payload_start\n"
37  ".incbin \"" __stringify(BU_PAYLOAD_FILE) "\"\n"
38  ".global _bu_payload_end\n"
39  "_bu_payload_end:\n"
40 
41  ".global _bu_payload_size\n"
42  "_bu_payload_size:\n"
44  ".previous\n"
45 );
46 
#define __stringify(x...)
const uint32_t _bu_payload_end
const uint32_t _bu_payload_size
uint8_t unused[4]
Definition: bl_messages.h:70
const uint32_t _bu_payload_start
register void *stack_pointer asm("sp")
typedef __attribute__
Definition: serial_4way.h:43