Alejandro Mery
|
85d240fa43
|
bin2fex: refactored script_bin_head including the array of sections
|
2012-05-06 21:51:22 +02:00 |
|
Alejandro Mery
|
315a590a89
|
bin2fex: renamed script_* structs to script_bin_*
|
2012-05-06 21:45:27 +02:00 |
|
Alejandro Mery
|
fa9dede45a
|
fex2bin: temporarily introduce VERBOSE define to silent the parser (need getopt)
|
2012-05-06 21:34:00 +02:00 |
|
Alejandro Mery
|
97976d056e
|
fex2bin: finish parsing GPIO data
|
2012-05-06 21:30:38 +02:00 |
|
Alejandro Mery
|
fd16859d79
|
script: changed gpio data to int32_t
|
2012-05-06 21:28:46 +02:00 |
|
Alejandro Mery
|
65059d0543
|
fex2bin: sighly cleaned key=value parsing loop
|
2012-05-06 20:37:53 +02:00 |
|
Alejandro Mery
|
4348a750b0
|
fex2bin: break parsing loop when it's not ok
|
2012-05-06 20:29:36 +02:00 |
|
Alejandro Mery
|
7020ebff4e
|
fex2bin: add verbose logs to stderr of detected entries
|
2012-05-06 18:51:13 +02:00 |
|
Alejandro Mery
|
acea6b5011
|
fex2bin: parse GPIO number
|
2012-05-06 16:51:39 +02:00 |
|
Alejandro Mery
|
6eabb9cc8f
|
fex2bin: constructing the script tree... except GPIOs
|
2012-05-06 16:24:26 +02:00 |
|
Alejandro Mery
|
4d6b096caa
|
script: renamed script_*_entry_append() to _new() and changed to receive the section instead of the script
|
2012-05-06 16:05:32 +02:00 |
|
Alejandro Mery
|
bdd5abdbe1
|
script: rename script_section_append() to script_section_new()
|
2012-05-06 16:04:03 +02:00 |
|
Alejandro Mery
|
1d0c2f15f0
|
fex2bin: add warning about it's unfunctional state
|
2012-05-06 12:50:00 +02:00 |
|
Alejandro Mery
|
e72443c0bb
|
fex2bin: parse single word values and identify GPIO ones
|
2012-05-05 20:06:23 +02:00 |
|
Alejandro Mery
|
fa9811f8ac
|
fex2bin: parse null and string entries
|
2012-05-05 18:55:09 +02:00 |
|
Alejandro Mery
|
fc0f0d7f39
|
fex2bin: parse section headers, empty lines and comments
|
2012-05-05 02:47:45 +02:00 |
|
Alejandro Mery
|
995eadb440
|
fex2bin: use ctype to make alltrim() easier to digest
|
2012-05-05 02:13:37 +02:00 |
|
Alejandro Mery
|
6f4f4f86ee
|
cosmetical fixes
|
2012-05-04 23:24:31 +02:00 |
|
Alejandro Mery
|
61955af728
|
bin2fex: fixed bug close out when failed to open in the first place
|
2012-05-04 22:52:57 +02:00 |
|
Alejandro Mery
|
0f34fc7a96
|
temporarily hide known unused-parameters warnings
|
2012-05-04 22:24:48 +02:00 |
|
Alejandro Mery
|
ebacb59a73
|
sunxi-tools.h: renamed list_next() to the correct list_first()
|
2012-05-04 22:18:13 +02:00 |
|
Alejandro Mery
|
8368bee12d
|
script: implement script_gpio_entry_append()
|
2012-05-04 15:33:06 +02:00 |
|
Alejandro Mery
|
c62b4603e4
|
script: accept empty string entries
|
2012-05-04 15:27:47 +02:00 |
|
Alejandro Mery
|
33d67b7288
|
script: implemented script_string_entry_append()
|
2012-05-04 14:49:32 +02:00 |
|
Alejandro Mery
|
05a2d8f70a
|
script: implement script_single_entry_append()
|
2012-05-04 14:40:55 +02:00 |
|
Alejandro Mery
|
fa39a095f7
|
script: don't accept empty section or entry names
|
2012-05-04 14:33:36 +02:00 |
|
Alejandro Mery
|
da2d50ae34
|
fex2bin: read input line by line and trim them
|
2012-05-04 14:02:10 +02:00 |
|
Alejandro Mery
|
38eadd514a
|
fex2bin: allocate and delete an script tree
|
2012-05-04 11:32:40 +02:00 |
|
Alejandro Mery
|
93dd0a4824
|
script: add recursive script_delete(), script_section_delete() and script_entry_delete()
|
2012-05-04 11:31:14 +02:00 |
|
Alejandro Mery
|
ad52f8549a
|
sunxi-tools.h: add list_next() and list_remove() helpers
|
2012-05-04 11:18:10 +02:00 |
|
Alejandro Mery
|
f2ff0fc85a
|
fex2bin: open and close input and output files
|
2012-05-04 10:37:14 +02:00 |
|
Alejandro Mery
|
0dd7e13aba
|
script: getting started with the script tree
|
2012-05-04 10:06:14 +02:00 |
|
Alejandro Mery
|
5a970809f3
|
sunxi-tools.h: add container_of() helper
|
2012-05-04 09:51:56 +02:00 |
|
Alejandro Mery
|
b65db76ec1
|
sunxi-tools.h: add list_last() helper
|
2012-05-04 09:51:17 +02:00 |
|
Alejandro Mery
|
065e3acdcd
|
sunxi-tools: add struct list_entry, list_init(), list_append() and list_isempty()
|
2012-05-04 09:33:25 +02:00 |
|
Alejandro Mery
|
fd07c54402
|
build: add .h and Makefile as dependencies of the tools
|
2012-05-04 00:48:46 +02:00 |
|
Alejandro Mery
|
4defc577d9
|
fex2bin: introduce fex2bin.h
|
2012-05-04 00:47:29 +02:00 |
|
Alejandro Mery
|
a304b3b045
|
sunxi-tools.h: add simple comments
|
2012-05-04 00:08:50 +02:00 |
|
Alejandro Mery
|
077249c2c3
|
move errf() macro to sunxi-tools.h
|
2012-05-03 23:49:23 +02:00 |
|
Alejandro Mery
|
62dc73683a
|
bin2fex: refactored method to choose the format of single datums
|
2012-05-03 17:40:44 +02:00 |
|
Alejandro Mery
|
36b4ce7a37
|
bin2fex: show GPIO port id as %02d
|
2012-05-03 16:25:05 +02:00 |
|
Alejandro Mery
|
e015c63bec
|
bin2fex: output some single datums in hexa
|
2012-05-03 16:21:36 +02:00 |
|
Alejandro Mery
|
32a346a48d
|
bin2fex: split decompiler of single datums into a separated function
|
2012-05-03 15:37:05 +02:00 |
|
Alejandro Mery
|
151f7afe7d
|
bin2fex: improved error handling
|
2012-05-03 14:47:16 +02:00 |
|
Alejandro Mery
|
3abad84fae
|
bin2fex: decompile GPIO entries
|
2012-05-03 14:43:28 +02:00 |
|
Alejandro Mery
|
81fa01b724
|
build: compile with -g and add .h files as dependencies
|
2012-05-03 14:42:59 +02:00 |
|
Alejandro Mery
|
3ad6109430
|
bin2fex: decompile integer, string and NULL entries. also reduces stderr noise
|
2012-05-03 12:50:55 +02:00 |
|
Alejandro Mery
|
fc03608231
|
bin2fex: changed to use FILE* for out
|
2012-05-03 09:55:31 +02:00 |
|
Alejandro Mery
|
c0580cef4c
|
bin2fex: cleaned decompile_section loop
|
2012-05-03 09:43:48 +02:00 |
|
Alejandro Mery
|
d62de0d435
|
bin2fex: list section entries
|
2012-05-03 09:17:41 +02:00 |
|