git://stoneship.org.uk
/
bootloader
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
blame
|
history
|
raw
|
HEAD
Initial import of the bootloader code
[bootloader]
/
cli
/
memory.h
1
#ifndef MEMORY_BLOCK_H
2
#define MEMORY_BLOCK_H
3
4
typedef struct memory {
5
uint32_t start;
6
uint16_t len;
7
uint8_t * bytes;
8
struct memory * next;
9
} mem_t;
10
11
mem_t *load_ihex(FILE *in);
12
void list_mem(const mem_t * head);
13
int validate_mem(mem_t * head, uint16_t maxmem);
14
int makesafe_mem(mem_t **head, uint16_t maxmem);
15
16
17
18
19
20
21
#endif