Difference between revisions of "Rad1o"

From Note to self
Jump to: navigation, search
(Written down thoughts)
(mkfirmware.pl)
Line 10: Line 10:
  
 
==mkfirmware.pl==
 
==mkfirmware.pl==
This script parses source code to extract init, tick and menu entries.
+
This script parses source code to extract init, tick and menu entries. At this point the workings are still a bit speculative although I think I've got it right.
 +
 
 +
If a function is preceded with
 +
//#MENU parentmenu* menu
 +
the next function definition will be used as a handler function for that menu entry.

Revision as of 18:26, 6 September 2015

Links

Firmware

Written down thoughts

Looking at the f1rmware of the rad1o, I must say that it is either poorly documented or I fail to find the documentation. I looked at the different apps, esp. rfapp, to see how to make one myself.

There is a menu system that has an auto-generated part, in the form of the file main.gen. How it works is undocumented afaik, so I need to look at the implementation. (see the mkfirmware.pl section)

mkfirmware.pl

This script parses source code to extract init, tick and menu entries. At this point the workings are still a bit speculative although I think I've got it right.

If a function is preceded with

//#MENU parentmenu* menu

the next function definition will be used as a handler function for that menu entry.