forked from vdudouyt/minipro
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfuses.c
42 lines (37 loc) · 1.71 KB
/
fuses.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#include <stdio.h>
#include "fuses.h"
fuse_decl_t avr_fuses[] = {
{ .name = "fuses", .minipro_cmd = 0x12, .length = 1, .offset = 0 },
{ .name = "lock_byte", .minipro_cmd = 0x41, .length = 1, .offset = 0 },
{ .name = NULL },
};
fuse_decl_t avr2_fuses[] = {
{ .name = "fuses_lo", .minipro_cmd = 0x12, .length = 1, .offset = 0 },
{ .name = "fuses_hi", .minipro_cmd = 0x12, .length = 1, .offset = 1 },
{ .name = "lock_byte", .minipro_cmd = 0x41, .length = 1, .offset = 0 },
{ .name = NULL },
};
fuse_decl_t avr3_fuses[] = {
{ .name = "fuses_lo", .minipro_cmd = 0x12, .length = 1, .offset = 0 },
{ .name = "fuses_hi", .minipro_cmd = 0x12, .length = 1, .offset = 1 },
{ .name = "fuses_ext", .minipro_cmd = 0x12, .length = 1, .offset = 2 },
{ .name = "lock_byte", .minipro_cmd = 0x41, .length = 1, .offset = 0 },
{ .name = NULL },
};
fuse_decl_t pic_fuses[] = {
{ .name = "user_id0", .minipro_cmd = 0x10, .length = 2, .offset = 0 },
{ .name = "user_id1", .minipro_cmd = 0x10, .length = 2, .offset = 2 },
{ .name = "user_id2", .minipro_cmd = 0x10, .length = 2, .offset = 4 },
{ .name = "user_id3", .minipro_cmd = 0x10, .length = 2, .offset = 6 },
{ .name = "conf_word", .minipro_cmd = 0x12, .length = 2, .offset = 0 },
{ .name = NULL },
};
fuse_decl_t pic2_fuses[] = {
{ .name = "user_id0", .minipro_cmd = 0x10, .length = 2, .offset = 0 },
{ .name = "user_id1", .minipro_cmd = 0x10, .length = 2, .offset = 2 },
{ .name = "user_id2", .minipro_cmd = 0x10, .length = 2, .offset = 4 },
{ .name = "user_id3", .minipro_cmd = 0x10, .length = 2, .offset = 6 },
{ .name = "conf_word", .minipro_cmd = 0x12, .length = 2, .offset = 0 },
{ .name = "conf_word1", .minipro_cmd = 0x12, .length = 2, .offset = 2 },
{ .name = NULL },
};