You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
654 B
26 lines
654 B
/* |
|
* bootloader_interface.h |
|
* |
|
* Created on: 24.01.2018 |
|
* Author: matthias |
|
*/ |
|
|
|
#ifndef BOOTLOADER_INTERFACE_H_ |
|
#define BOOTLOADER_INTERFACE_H_ |
|
|
|
#include <stdint.h> |
|
|
|
#define BOOTLOADER_INTERFACE_VALID_MAGIC 0x6832F3E0 |
|
#define BOOTLOADER_INTERFACE_ADDR 0x20004F00//0x20004E00 |
|
|
|
struct bootloader_interface { |
|
uint32_t magic; |
|
uint8_t request_from_node_id; |
|
uint8_t request_file_name[200]; |
|
uint8_t request_file_name_length; |
|
uint8_t node_id; |
|
}; |
|
|
|
extern struct bootloader_interface bootloader_interface;// __attribute__((section("MY_RAM"),zero_init));//__attribute__((at( BOOTLOADER_INTERFACE_ADDR))); |
|
|
|
#endif /* BOOTLOADER_INTERFACE_H_ */
|
|
|