Home
last modified time | relevance | path

Searched refs:format (Results 1 – 25 of 47) sorted by relevance

12

/hal_rpi_pico-latest/src/rp2_common/pico_printf/
Dprintf.c118 …zy_vsnprintf)(out_fct_type out, char *buffer, const size_t maxlen, const char *format, va_list va);
561 static int _vsnprintf(out_fct_type out, char *buffer, const size_t maxlen, const char *format, va_l… in _vsnprintf() argument
573 while (*format) { in _vsnprintf()
575 if (*format != '%') { in _vsnprintf()
577 out(*format, buffer, idx++, maxlen); in _vsnprintf()
578 format++; in _vsnprintf()
582 format++; in _vsnprintf()
588 switch (*format) { in _vsnprintf()
591 format++; in _vsnprintf()
596 format++; in _vsnprintf()
[all …]
/hal_rpi_pico-latest/tools/
Dcheck_board_header.py46 return "{} {} {}".format(", ".join(str(l) for l in lst[:-1]), joiner, lst[-1])
51 raise Exception("{} doesn't exist".format(board_header))
86 … raise Exception("{}:{} Expected \"{}\" to be all uppercase".format(board_header, lineno, name))
90 … Exception("{}:{} Conflicting values for pico_cmake_set {} ({} and {})".format(board_header, line…
93 …warnings.warn("{}:{} Multiple values for pico_cmake_set {} ({} and {})".format(board_header, line…
106 … raise Exception("{}:{} Expected \"{}\" to be all uppercase".format(board_header, lineno, name))
167 … raise Exception("{}:{} Expected \"{}\" to be all uppercase".format(board_header, lineno, name))
171 …raise Exception("{}:{} #ifndef {} / #define {} mismatch".format(board_header, last_ifndef_lineno,…
189 …raise Exception("{}:{} Conflicting definitions for {} ({} and {})".format(board_header, lineno, n…
192 …warnings.warn("{}:{} Multiple definitions for {} ({} and {})".format(board_header, lineno, name, …
[all …]
Dextract_configs.py34 BASE_CONFIG_RE = re.compile(r'\b{}\b'.format(BASE_CONFIG_NAME))
36 BASE_CMAKE_CONFIG_RE = re.compile(r'\b{}\b'.format(BASE_CMAKE_CONFIG_NAME))
38 BASE_BUILD_DEFINE_RE = re.compile(r'\b{}\b'.format(BASE_BUILD_DEFINE_NAME))
40 CONFIG_RE = re.compile(r'//\s+{}:\s+(\w+),\s+([^,]+)(?:,\s+(.*))?$'.format(BASE_CONFIG_NAME))
60 …raise Exception('{} at {}:{} has unexpected property "{}"'.format(config_name, file_path, linenum,…
74 …logger.info('{} at {}:{} has non-integer min value "{}"'.format(config_name, file_path, linenum, c…
84 …logger.info('{} at {}:{} has non-integer max value "{}"'.format(config_name, file_path, linenum, c…
95 …logger.info('{} at {}:{} has non-integer default value "{}"'.format(config_name, file_path, linenu…
98 …raise Exception('{} at {}:{} has min {} > max {}'.format(config_name, file_path, linenum, config_a…
101 …raise Exception('{} at {}:{} has min {} > default {}'.format(config_name, file_path, linenum, conf…
[all …]
Dextract_build_defines.py34 BASE_CONFIG_RE = re.compile(r'\b{}\b'.format(BASE_CONFIG_NAME))
36 BASE_CMAKE_CONFIG_RE = re.compile(r'\b{}\b'.format(BASE_CMAKE_CONFIG_NAME))
38 BASE_BUILD_DEFINE_RE = re.compile(r'\b{}\b'.format(BASE_BUILD_DEFINE_NAME))
40 BUILD_DEFINE_RE = re.compile(r'#\s+{}:\s+(\w+),\s+([^,]+)(?:,\s+(.*))?$'.format(BASE_BUILD_DEFINE_N…
58 …raise Exception('{} at {}:{} has unexpected property "{}"'.format(config_name, file_path, linenum,…
89 …raise Exception('{} at {}:{} has min {} > max {}'.format(config_name, file_path, linenum, config_a…
92 …raise Exception('{} at {}:{} has min {} > default {}'.format(config_name, file_path, linenum, conf…
95 …raise Exception('{} at {}:{} has default {} > max {}'.format(config_name, file_path, linenum, conf…
103 …logger.info('{} at {}:{} has non-integer default value "{}"'.format(config_name, file_path, linenu…
114 …raise Exception("Found unknown {} type {} at {}:{}".format(BASE_BUILD_DEFINE_NAME, _type, file_pat…
[all …]
Dextract_cmake_configs.py34 BASE_CONFIG_RE = re.compile(r'\b{}\b'.format(BASE_CONFIG_NAME))
36 BASE_CMAKE_CONFIG_RE = re.compile(r'\b{}\b'.format(BASE_CMAKE_CONFIG_NAME))
38 BASE_BUILD_DEFINE_RE = re.compile(r'\b{}\b'.format(BASE_BUILD_DEFINE_NAME))
40 CMAKE_CONFIG_RE = re.compile(r'#\s+{}:\s+(\w+),\s+([^,]+)(?:,\s+(.*))?$'.format(BASE_CMAKE_CONFIG_N…
58 …raise Exception('{} at {}:{} has unexpected property "{}"'.format(config_name, file_path, linenum,…
89 …raise Exception('{} at {}:{} has min {} > max {}'.format(config_name, file_path, linenum, config_a…
92 …raise Exception('{} at {}:{} has min {} > default {}'.format(config_name, file_path, linenum, conf…
95 …raise Exception('{} at {}:{} has default {} > max {}'.format(config_name, file_path, linenum, conf…
103 …logger.info('{} at {}:{} has non-integer default value "{}"'.format(config_name, file_path, linenu…
114 …raise Exception("Found unknown {} type {} at {}:{}".format(BASE_CMAKE_CONFIG_NAME, _type, file_pat…
[all …]
Dcopro_dis.py61 ….*), [\{#]1}?', lambda m: 'rcp_canary_get {0}, 0x{1:02x} ({1}), delay'.format(m.group(1), int(m.…
62 …*), [\{#]1}?', lambda m: 'rcp_canary_get {0}, 0x{1:02x} ({1}), nodelay'.format(m.group(1), int(m.…
63 …), [\{#]1}?', lambda m: 'rcp_canary_check {0}, 0x{1:02x} ({1}), delay'.format(m.group(1), int(m.…
64 …, [\{#]1}?', lambda m: 'rcp_canary_check {0}, 0x{1:02x} ({1}), nodelay'.format(m.group(1), int(m.…
77 …, cr?(.*), [\{#]0}?', lambda m: 'rcp_count_set 0x{0:02x} ({0}), delay'.format(int(m.group(2)) * …
78 … cr?(.*), [\{#]0}?', lambda m: 'rcp_count_set 0x{0:02x} ({0}), nodelay'.format(int(m.group(2)) * …
79 …cr?(.*), [\{#]1}?', lambda m: 'rcp_count_check 0x{0:02x} ({0}), delay'.format(int(m.group(2)) * …
80 …r?(.*), [\{#]1}?', lambda m: 'rcp_count_check 0x{0:02x} ({0}), nodelay'.format(int(m.group(2)) * …
277 (r'mcr\s*p?0, #?([0-3]), (.*), cr?0, cr?([0145])', lambda m: 'gpioc_{0}_{1} {2}'.format(
280 … (r'mcrr\s*p?0, #?([0-3]), (.*), (.*), cr?([04])', lambda m: 'gpioc_hilo_{0}_{1} {2}, {3}'.format(
[all …]
Dbuild_all_headers.py34 print("Usage: {} top_dir output_header".format(os.path.basename(sys.argv[0])))
41 print("{} doesn't exist!".format(top_dir))
66 …raise Exception("Duplicate include file '{}' (found in both {} and {})".format(include_file, inclu…
83 fh.write('\n// {}\n'.format(include_locations[f]))
84 fh.write('#include "{}"\n'.format(f))
Dcheck_doxygen_groups.py33 print("{} uses \\defgroup {} but so does {}".format(groups[group], group, filename))
47 print("{} uses \\ingroup {} which was never defined".format(filename, group))
/hal_rpi_pico-latest/src/rp2040/boot_stage2/
Dpad_checksum13 raise argparse.ArgumentTypeError("expected an integer, not '{!r}'".format(x))
17 return int("{:0{w}b}".format(x, w=width)[::-1], 2)
32 sys.exit("Could not open input file '{}'".format(args.ifile))
35 …sys.exit("Input file size ({} bytes) too large for final size ({} bytes)".format(len(idata), args.…
47 ofile.write("// Padded and checksummed version of: {}\n\n".format(args.ifile))
53 ofile.write(".byte {}\n".format(", ".join("0x{:02x}".format(b) for b in chunk)))
55 sys.exit("Could not open output file '{}'".format(args.ofile))
/hal_rpi_pico-latest/src/rp2350/boot_stage2/
Dpad_checksum11 raise argparse.ArgumentTypeError("expected an integer, not '{!r}'".format(x))
15 return int("{:0{w}b}".format(x, w=width)[::-1], 2)
31 sys.exit("Could not open input file '{}'".format(args.ifile))
34 …sys.exit("Input file size ({} bytes) too large for final size ({} bytes)".format(len(idata), args.…
45 ofile.write("// Padded and checksummed version of: {}\n\n".format(args.ifile))
54 ofile.write(".byte {}\n".format(", ".join("0x{:02x}".format(b) for b in chunk)))
/hal_rpi_pico-latest/src/rp2_common/pico_stdio/
Dstdio.c315 int REAL_FUNC(vprintf)(const char *format, va_list va);
317 int PRIMARY_STDIO_FUNC(vprintf)(const char *format, va_list va) { in PRIMARY_STDIO_FUNC()
328 ret = vfctprintf(stdio_buffered_printer, &buffer, format, va); in PRIMARY_STDIO_FUNC()
332 ((void)format); in PRIMARY_STDIO_FUNC()
338 ret = REAL_FUNC(vprintf)(format, va); in PRIMARY_STDIO_FUNC()
346 int __printflike(1, 0) PRIMARY_STDIO_FUNC(printf)(const char* format, ...) in PRIMARY_STDIO_FUNC()
349 va_start(va, format); in PRIMARY_STDIO_FUNC()
350 int ret = vprintf(format, va); in PRIMARY_STDIO_FUNC()
360 int stdio_vprintf(const char *format, va_list va) __attribute__((alias(__XSTRING(WRAPPER_FUNC(vprin…
361 int __printflike(1, 0) stdio_printf(const char* format, ...) __attribute__((alias(__XSTRING(WRAPPER…
[all …]
/hal_rpi_pico-latest/src/rp2_common/hardware_clocks/scripts/
Dvcocalc.py15 raise ValueError("REFDIV must be in the range {} to {}".format(refdiv_min, refdiv_max))
26 …ck-refdiv", help="Lock REFDIV to specified number in the range {} to {}".format(refdiv_min, refdiv…
69 print("Requested: {} MHz".format(args.output))
70 print("Achieved: {} MHz".format(best_out))
71 print("REFDIV: {}".format(best_refdiv))
72 print("FBDIV: {} (VCO = {} MHz)".format(best_fbdiv, args.input / best_refdiv * best_fbdiv))
73 print("PD1: {}".format(best_pd1))
74 print("PD2: {}".format(best_pd2))
/hal_rpi_pico-latest/src/common/pico_binary_info/
Dbinary_info.bzl11 _all_defines.append('PICO_PROGRAM_NAME=\\"{}\\"'.format(program_name))
13 _all_defines.append('PICO_PROGRAM_DESCRIPTION=\\"{}\\"'.format(program_description))
15 _all_defines.append('PICO_PROGRAM_URL=\\"{}\\"'.format(program_url))
17 _all_defines.append('PICO_PROGRAM_VERSION_STRING=\\"{}\\"'.format(program_version_string))
24 _build_target_name_defines.append('PICO_TARGET_NAME=\\"{}\\"'.format(build_target_name))
/hal_rpi_pico-latest/.github/workflows/scripts/
Dgenerate_multi_gcc_workflow.py27 …raise Exception("Already have version {} in versions current path {}, this path {}".format(version…
67 output += " - name: GCC {} {}\n".format(gcc_version, build_type)
70 …tput-sync=target --no-builtin-rules --no-builtin-variables -j$(nproc)\n".format(build_type, toolch…
/hal_rpi_pico-latest/bazel/toolchain/
DBUILD.bazel165 name = "arm_gcc_{}-{}_toolchain_cortex-m".format(host_os, host_cpu),
166 tool_map = "@arm_gcc_{}-{}//:all_tools".format(host_os, host_cpu),
210 name = "clang_{}-{}_toolchain_cortex-m".format(host_os, host_cpu),
211 tool_map = "@clang_{}-{}//:all_tools".format(host_os, host_cpu),
262 name = "{}-{}-rp2040".format(host_os, host_cpu),
271 …"//bazel/constraint:pico_toolchain_clang_enabled": "clang_{}-{}_toolchain_cortex-m".format(host_os…
272 "//conditions:default": ":arm_gcc_{}-{}_toolchain_cortex-m".format(host_os, host_cpu),
278 name = "{}-{}-rp2350".format(host_os, host_cpu),
287 …"//bazel/constraint:pico_toolchain_clang_enabled": "clang_{}-{}_toolchain_cortex-m".format(host_os…
288 "//conditions:default": ":arm_gcc_{}-{}_toolchain_cortex-m".format(host_os, host_cpu),
/hal_rpi_pico-latest/src/boards/
DBUILD.bazel15 BOARD_CHOICE_MAP = {c: [":{}".format(c)] for c in BOARD_CHOICES}
23 'PICO_BOARD=\\"{}\\"'.format(board),
28 "boards/{}.h".format(board),
/hal_rpi_pico-latest/src/rp2_common/pico_cyw43_arch/
DBUILD.bazel60 "cyw43_arch_{}.c".format(kind),
64 "include/pico/cyw43_arch/arch_{}.h".format(kind),
68 "PICO_CYW43_ARCH_{}=1".format(kind.upper()),
78 "//src/rp2_common/pico_async_context:pico_async_context_{}".format(kind),
/hal_rpi_pico-latest/tools/pioasm/
Dmain.cpp33 std::string format(DEFAULT_OUTPUT_FORMAT); in main() local
42 format = argv[i]; in main()
97 return f->name == format; in main()
100 std::cerr << "error: unknown output format '" << format << "'" << std::endl; in main()
/hal_rpi_pico-latest/bazel/
Ddefs.bzl8 "{}_pio_generated/{}.h".format(ctx.label.name, f.basename),
103 _hdr_dir = "{}_generated_includes".format(name)
104 _hdr_path = "{}/pico_config_platform_headers.h".format(_hdr_dir)
106 name = "{}_platform_headers_file".format(name),
108 content = ['#include "{}"'.format(inc) for inc in platform_includes],
/hal_rpi_pico-latest/src/rp2_common/pico_stdio/include/pico/
Dstdio.h215 int stdio_vprintf(const char *format, va_list va);
222 int __printflike(1, 0) stdio_printf(const char* format, ...);
/hal_rpi_pico-latest/src/common/pico_base_headers/
DBUILD.bazel29 "--version-string={}".format(PICO_SDK_VERSION_STRING),
46 'PICO_SDK_VERSION_STRING=\\"{}\\"'.format(PICO_SDK_VERSION_STRING),
47 "PICO_SDK_VERSION_MAJOR={}".format(PICO_SDK_VERSION_MAJOR),
48 "PICO_SDK_VERSION_MINOR={}".format(PICO_SDK_VERSION_MINOR),
49 "PICO_SDK_VERSION_REVISION={}".format(PICO_SDK_VERSION_REVISION),
50 …_PRE_RELEASE_ID == None else ['PICO_SDK_VERSION_PRE_RELEASE_ID=\\"{}\\"'.format(PICO_SDK_VERSION_P…
/hal_rpi_pico-latest/bazel/util/
Dsdk_define.bzl8 val = "\"{}\"".format(val)
14 direct = ["{}={}".format(ctx.attr.define_name, val)],
Dmultiple_choice_flag.bzl17 name = "{}_{}".format(flag_name, choice),
32 "{}:{}_{}".format(
/hal_rpi_pico-latest/src/rp2_common/pico_cyw43_driver/cybt_shared_bus/
Dcybt_shared_bus.c38 #define cybt_debug(format,args...) printf("%d.%d: " format, (int)cyw43_hal_ticks_ms() / 1000, (int)… argument
40 #define cybt_debug(format, ...) ((void)0) argument
42 #define cybt_printf(format, args...) printf("%d.%d: " format, (int)cyw43_hal_ticks_ms() / 1000, (in… argument
/hal_rpi_pico-latest/src/rp2_common/pico_printf/include/pico/
Dprintf.h80 int vfctprintf(void (*out)(char character, void *arg), void *arg, const char *format, va_list va);

12