Technical data

B. Appendixes to optional packages
1. ...
2. ...
3. ...
4. ...
The first sequence is displayed while processing rc002.* to rc250.*
(1 * blink - pause),
for rc250.* to rc500.* the second (2 * blink - pause),
for rc500.* to rc750.* the third and
for rc750.* until the end of the boot process the forth sequence (coninuous blinking).
B.10. HWSUPP - Hints for package developers
This chapter describes the things a package developer has to do to add LED or button func-
tionality to a package
1
.
B.10.1. LED extensions
LED type
Within the file check/myopt.exp the list of LED types which can be entered in HWSUPP_LED_x
is extended.
Example:
+HWSUPP_LED_TYPE(OPT_MYOPT) = 'myopt'
: ', myopt'
Parameter check
Within check/myopt.ext the parameters which can be entered in HWSUPP_LED_x_PARAM will be
checked.
Example:
if (opt_hwsupp)
then
depends on hwsupp version 4.0
foreach i in hwsupp_led_n
do
set action=hwsupp_led_%[i]
set param=hwsupp_led_%_param[i]
if (action == "myopt")
then
if (!(param =~ "(RE:MYOPT_LED_PARAM)"))
then
error "When HWSUPP_LED_\${i}='myopt', ...
1
Search for ##HWSUPP## in the WLAN package to find the places to adapt.
358