mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-01-17 07:19:42 +00:00
docu: add hsp, hfp examples
This commit is contained in:
parent
52cab08964
commit
81546f0e3c
@ -2,7 +2,7 @@
|
|||||||
import os, sys, getopt, re
|
import os, sys, getopt, re
|
||||||
|
|
||||||
# Defines the names of example groups. Preserves the order in which the example groups will be parsed.
|
# Defines the names of example groups. Preserves the order in which the example groups will be parsed.
|
||||||
list_of_groups = ["Hello World", "GAP", "SDP Queries", "SPP Server", "BNEP/PAN", "Low Energy", "Dual Mode"]
|
list_of_groups = ["Hello World", "GAP", "SDP Queries", "SPP Server", "BNEP/PAN", "HSP", "HFP", "Low Energy", "Dual Mode"]
|
||||||
|
|
||||||
# Defines which examples belong to a group. Example is defined as [example file, example title].
|
# Defines which examples belong to a group. Example is defined as [example file, example title].
|
||||||
list_of_examples = {
|
list_of_examples = {
|
||||||
@ -11,6 +11,8 @@ list_of_examples = {
|
|||||||
"SDP Queries" : [["sdp_general_query"],["sdp_bnep_query"]],
|
"SDP Queries" : [["sdp_general_query"],["sdp_bnep_query"]],
|
||||||
"SPP Server" : [["spp_counter"],["spp_flowcontrol"]],
|
"SPP Server" : [["spp_counter"],["spp_flowcontrol"]],
|
||||||
"BNEP/PAN" : [["panu_demo"]],
|
"BNEP/PAN" : [["panu_demo"]],
|
||||||
|
"HSP" : [["hsp_hs_demo"],["hsp_ag_demo"]],
|
||||||
|
"HFP" : [["hfp_hf_demo"],["hfp_ag_demo"]],
|
||||||
"Low Energy" : [["gap_le_advertisements"],
|
"Low Energy" : [["gap_le_advertisements"],
|
||||||
["gatt_browser"],
|
["gatt_browser"],
|
||||||
["le_counter"],
|
["le_counter"],
|
||||||
@ -257,7 +259,6 @@ def writeListings(aout, infile_name, ref_prefix):
|
|||||||
# write list of examples
|
# write list of examples
|
||||||
def processExamples(intro_file, examples_folder, examples_ofile):
|
def processExamples(intro_file, examples_folder, examples_ofile):
|
||||||
with open(examples_ofile, 'w') as aout:
|
with open(examples_ofile, 'w') as aout:
|
||||||
|
|
||||||
with open(intro_file, 'rb') as fin:
|
with open(intro_file, 'rb') as fin:
|
||||||
for line in fin:
|
for line in fin:
|
||||||
aout.write(line)
|
aout.write(line)
|
||||||
|
Loading…
Reference in New Issue
Block a user