28 lines
1.4 KiB
Plaintext
28 lines
1.4 KiB
Plaintext
#loops_per_sec: poll interval
|
|
loops_per_sec=10
|
|
#
|
|
#id: entry id, will turn at most 4 bytes string to unsigned int id
|
|
#gpio: gpio number
|
|
#mode: available values below
|
|
# 0. not enabled, could be enabled by proc
|
|
# 1. polling mode, check btn pressed by polling
|
|
# 2. irq edge down mode, get btn pressed msg by press down irq
|
|
# 3. irq edge down/up mode, get msg by press down & press up irq
|
|
# 4. irq level once mode, get msg by electric level change, irq act once each enable
|
|
# 5. irq simple, get msg by electric level change, irq always act when btn hold
|
|
#irq: logical irq number, used to get real irq number by sdk_get_real_irqnum()
|
|
#type: available values below
|
|
# 0. not defined type
|
|
# 1. reset btn, predefined factory reset function in kernel
|
|
# 2. wifi onoff btn, transmit this type code to userspace
|
|
# 3. wps btn, transmit this type code to userspace
|
|
# 4. other btn, transmit btn id to userspace
|
|
#reve(reverse): default electric level reserved(default low level means reserved)
|
|
#thres(threshold, <=255): when poll count reach this value, change status to THRESHOLD
|
|
#action: function name. if not NULL, run the function if btn press reached threshold
|
|
#
|
|
#id gpio mode irq reve thres action
|
|
RST 0 1 0 0 50 RST_action
|
|
WIFI 4 1 0 0 0 NULL
|
|
WPS 9 1 0 0 0 NULL
|