Initial import of the bootloader code
[bootloader] / cli / memory.h
CommitLineData
9c66c9ff
JM
1#ifndef MEMORY_BLOCK_H
2#define MEMORY_BLOCK_H
3
4typedef struct memory {
5 uint32_t start;
6 uint16_t len;
7 uint8_t * bytes;
8 struct memory * next;
9} mem_t;
10
11mem_t *load_ihex(FILE *in);
12void list_mem(const mem_t * head);
13int validate_mem(mem_t * head, uint16_t maxmem);
14int makesafe_mem(mem_t **head, uint16_t maxmem);
15
16
17
18
19
20
21#endif