Home
last modified time | relevance | path

Searched refs:r (Results 1 – 25 of 35) sorted by relevance

12

/hal_rpi_pico-latest/tools/
Dcopro_dis.py61 …(r'mrc\s*p?7, #?0, (.*), cr?(.*), cr?(.*), [\{#]1}?', lambda m: 'rcp_canary_get {0}, 0x{1:02x} (…
62 …(r'mrc2\s*p?7, #?0, (.*), cr?(.*), cr?(.*), [\{#]1}?', lambda m: 'rcp_canary_get {0}, 0x{1:02x} (…
63 …(r'mcr\s*p?7, #?0, (.*), cr?(.*), cr?(.*), [\{#]1}?', lambda m: 'rcp_canary_check {0}, 0x{1:02x}…
64 …(r'mcr2\s*p?7, #?0, (.*), cr?(.*), cr?(.*), [\{#]1}?', lambda m: 'rcp_canary_check {0}, 0x{1:02x}…
66 (r'mrc\s*p?7, #?1, (.*), cr?(.*), cr?(.*), [\{#]0}?', r'rcp_canary_status \1, delay'),
67 (r'mrc2\s*p?7, #?1, (.*), cr?(.*), cr?(.*), [\{#]0}?', r'rcp_canary_status \1, nodelay'),
68 (r'mcr\s*p?7, #?1, (.*), cr?(.*), cr?(.*), [\{#]0}?', r'rcp_bvalid \1, delay'),
69 (r'mcr2\s*p?7, #?1, (.*), cr?(.*), cr?(.*), [\{#]0}?', r'rcp_bvalid \1, nodelay'),
71 (r'mcr\s*p?7, #?2, (.*), cr?(.*), cr?(.*), [\{#]0}?', r'rcp_btrue \1, delay'),
72 (r'mcr2\s*p?7, #?2, (.*), cr?(.*), cr?(.*), [\{#]0}?', r'rcp_btrue \1, nodelay'),
[all …]
Dcheck_board_header.py55 expected_include_guard = "_" + re.sub(r"\W", "_", expected_include_suggestion.upper())
56 expected_board_detection = re.sub(r"\W", "_", expected_include_suggestion.split("/")[-1].upper()[:-…
76 line = re.sub(r"(?<=\S)\s*//.*$", "", line)
79 m = re.match(r"^\s*//\s*pico_cmake_set\s+(\w+)\s*=\s*(.+?)\s*$", line)
99 m = re.match(r"^\s*//\s*pico_cmake_set_default\s+(\w+)\s*=\s*(.+?)\s*$", line)
112 m = re.match(r"^\s*#else\s*$", line)
118 m = re.match(r"^\s*#endif\s*$", line)
125 m = re.match(r"""^\s*#include\s+"(.+?)"\s*$""", line)
136 m = re.match(r"^\s*#if\s+(\w+)\s*$", line)
144 m = re.match(r"^\s*#ifdef\s+(\w+)\s*$", line)
[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))
41 DEFINE_RE = re.compile(r'#define\s+(\w+)\s+(.+?)(\s*///.*)?$')
68 m = re.match(r'^(\d+)e(\d+)$', value.lower())
78 m = re.match(r'^(\d+)e(\d+)$', value.lower())
89 m = re.match(r'^(\d+)e(\d+)$', value.lower())
170 … _attrs = re.sub(r'(\(.+\))', lambda m: m.group(1).replace(',', '\0'), _attrs)
211 m = re.match(r'^((0x)?\d+)u$', value.lower())
[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…
64 m = re.match(r'^(\d+)e(\d+)$', value.lower())
71 m = re.match(r'^(\d+)e(\d+)$', value.lower())
80 m = re.match(r'^(\d+)e(\d+)$', value.lower())
151 … _attrs = re.sub(r'(\(.+\))', lambda m: m.group(1).replace(',', '\0'), _attrs)
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…
64 m = re.match(r'^(\d+)e(\d+)$', value.lower())
71 m = re.match(r'^(\d+)e(\d+)$', value.lower())
80 m = re.match(r'^(\d+)e(\d+)$', value.lower())
151 … _attrs = re.sub(r'(\(.+\))', lambda m: m.group(1).replace(',', '\0'), _attrs)
Dcompare_build_systems.py40 ATTR_REGEX = re.compile(r",?\s*(?P<key>[^=]+)=(?P<value>[^,]+)")
42 BAZEL_MODULE_REGEX = re.compile(r'\s*commit\s*=\s*\"(?P<commit>[0-9a-fA-F]+)\"\s*,\s*#\s*keep-in-sy…
44 BAZEL_VERSION_REGEX = re.compile(r'module\(\s*name\s*=\s*"pico-sdk",\s*version\s*=\s*"(?P<sdk_versi…
46 CMAKE_VERSION_REGEX = re.compile(r'^[^#]*set\(PICO_SDK_VERSION_(?P<part>\S+)\s+(?P<value>\S+)\)')
179 + r":\s+(?P<name>\w+),\s+(?P<description>[^,]+)(?:,\s+(?P<attrs>.*))?$"
Dcheck_doxygen_groups.py25 m = re.match(r'^(\S+):.*\\defgroup\s+(\w+)', line)
39 m = re.match(r'^(\S+):.*\\ingroup\s+(\w+)', line)
/hal_rpi_pico-latest/src/rp2_common/pico_rand/
Drand.c92 const uint64_t s0 = local_rng_state->r[0]; in xoroshiro128ss()
93 uint64_t s1 = local_rng_state->r[1]; in xoroshiro128ss()
104 local_rng_state->r[0] = rotl(s0, 24) ^ s1 ^ (s1 << 16); // a, b in xoroshiro128ss()
105 local_rng_state->r[1] = rotl(s1, 37); // c in xoroshiro128ss()
165 trng_hw->trng_config = rng_state.r[0]; in capture_additional_trng_samples()
238 local_rng_state.r[which] ^= splitmix64(ram_hash); in initialise_rand()
253 local_rng_state.r[which] ^= splitmix64(unique_id.board_id_u64); in initialise_rand()
268 … local_rng_state.r[which] ^= splitmix64(capture_additional_rosc_samples(8 * sizeof(rosc_samples))); in initialise_rand()
279 local_rng_state.r[which] ^= splitmix64(br.u64[0]); in initialise_rand()
280 local_rng_state.r[which ^ 1] ^= splitmix64(br.u64[1]); in initialise_rand()
[all …]
/hal_rpi_pico-latest/src/rp2_common/pico_stdio_rtt/SEGGER/RTT/
DSEGGER_RTT.c540 unsigned r; in _GetAvailWriteSpace() local
548 r = pRing->SizeOfBuffer - 1u - WrOff + RdOff; in _GetAvailWriteSpace()
550 r = RdOff - WrOff - 1u; in _GetAvailWriteSpace()
552 return r; in _GetAvailWriteSpace()
1450 int r; in SEGGER_RTT_GetKey() local
1452 r = (int)SEGGER_RTT_Read(0u, &c, 1u); in SEGGER_RTT_GetKey()
1453 if (r == 1) { in SEGGER_RTT_GetKey()
1454 r = (int)(unsigned char)c; in SEGGER_RTT_GetKey()
1456 r = -1; in SEGGER_RTT_GetKey()
1458 return r; in SEGGER_RTT_GetKey()
[all …]
/hal_rpi_pico-latest/src/host/hardware_divider/include/hardware/
Ddivider.h114 inline static uint32_t to_quotient_u32(divmod_result_t r) { in to_quotient_u32() argument
115 return (uint32_t) r; in to_quotient_u32()
124 inline static int32_t to_quotient_s32(divmod_result_t r) { in to_quotient_s32() argument
125 return (int32_t)(uint32_t)r; in to_quotient_s32()
136 inline static uint32_t to_remainder_u32(divmod_result_t r) { in to_remainder_u32() argument
137 return (uint32_t)(r >> 32u); in to_remainder_u32()
148 inline static int32_t to_remainder_s32(divmod_result_t r) { in to_remainder_s32() argument
149 return (int32_t)(r >> 32u); in to_remainder_s32()
/hal_rpi_pico-latest/src/rp2_common/cmsis/stub/CMSIS/Core/Include/
Dcmsis_armclang.h124 #define __CMSIS_GCC_OUT_REG(r) "=l" (r) argument
125 #define __CMSIS_GCC_RW_REG(r) "+l" (r) argument
126 #define __CMSIS_GCC_USE_REG(r) "l" (r) argument
128 #define __CMSIS_GCC_OUT_REG(r) "=r" (r) argument
129 #define __CMSIS_GCC_RW_REG(r) "+r" (r) argument
130 #define __CMSIS_GCC_USE_REG(r) "r" (r) argument
Dcmsis_clang.h129 #define __CMSIS_GCC_OUT_REG(r) "=l" (r) argument
130 #define __CMSIS_GCC_RW_REG(r) "+l" (r) argument
131 #define __CMSIS_GCC_USE_REG(r) "l" (r) argument
133 #define __CMSIS_GCC_OUT_REG(r) "=r" (r) argument
134 #define __CMSIS_GCC_RW_REG(r) "+r" (r) argument
135 #define __CMSIS_GCC_USE_REG(r) "r" (r) argument
Dcmsis_gcc.h129 #define __CMSIS_GCC_OUT_REG(r) "=l" (r) argument
130 #define __CMSIS_GCC_RW_REG(r) "+l" (r) argument
131 #define __CMSIS_GCC_USE_REG(r) "l" (r) argument
133 #define __CMSIS_GCC_OUT_REG(r) "=r" (r) argument
134 #define __CMSIS_GCC_RW_REG(r) "+r" (r) argument
135 #define __CMSIS_GCC_USE_REG(r) "r" (r) argument
/hal_rpi_pico-latest/src/common/pico_divider_headers/include/pico/
Ddivider.h54 divmod_result_t r = hw_divider_divmod_s32(a, b); in divmod_s32s32_rem() local
55 *rem = to_remainder_s32(r); in divmod_s32s32_rem()
56 return to_quotient_s32(r); in divmod_s32s32_rem()
89 divmod_result_t r = hw_divider_divmod_u32(a, b); in divmod_u32u32_rem() local
90 *rem = to_remainder_u32(r); in divmod_u32u32_rem()
91 return to_quotient_u32(r); in divmod_u32u32_rem()
/hal_rpi_pico-latest/src/rp2_common/hardware_divider/include/hardware/
Ddivider.h198 inline static uint32_t to_quotient_u32(divmod_result_t r) { in to_quotient_u32() argument
199 return (uint32_t) r; in to_quotient_u32()
208 inline static int32_t to_quotient_s32(divmod_result_t r) { in to_quotient_s32() argument
209 return (int32_t)(uint32_t)r; in to_quotient_s32()
220 inline static uint32_t to_remainder_u32(divmod_result_t r) { in to_remainder_u32() argument
221 return (uint32_t)(r >> 32u); in to_remainder_u32()
232 inline static int32_t to_remainder_s32(divmod_result_t r) { in to_remainder_s32() argument
233 return (int32_t)(r >> 32u); in to_remainder_s32()
/hal_rpi_pico-latest/test/pico_divider_test/
Dpico_divider_test.c16 void test_mulib_divu64u64(ui64*y,ui64*x,ui64*q,ui64*r) { in test_mulib_divu64u64() argument
17 *q = divmod_u64u64_rem(*y, *x, r); in test_mulib_divu64u64()
19 void test_mulib_divs64s64( i64*y, i64*x, i64*q, i64*r) { in test_mulib_divs64s64() argument
20 *q = divmod_s64s64_rem(*y, *x, r); in test_mulib_divs64s64()
105 ui64 q,r; in test_divu64u64() local
106 test_mulib_divu64u64(&y,&x,&q,&r); in test_divu64u64()
110 if(q==y/x&&r==y%x) ; in test_divu64u64()
116 o16hex(r); in test_divu64u64()
125 i64 q,r; in test_divs64s64() local
129 test_mulib_divs64s64(&y,&x,&q,&r); in test_divs64s64()
[all …]
/hal_rpi_pico-latest/test/pico_float_test/
Dpico_double_test.c325 #define check1(func,p0) ({ typeof(p0) r = func(p0), r2 = __CONCAT(__real_, func)(p0); test_assert(r
326 …fine check2(func,p0,p1) ({ typeof(p0) r = func(p0,p1), r2 = __CONCAT(__real_, func)(p0,p1); test_a…
327 …(func,p0) ({ typeof(p0) r = func(p0), r2 = __CONCAT(__real_, func)(p0); if (isnan(p0)) assert_nan(
328 …({ typeof(p0) r = func(p0,p1), r2 = __CONCAT(__real_, func)(p0,p1); if (isnan(p0) || isnan(p1)) as…
Dm33.c20 static void checkf(ui32 r,ui32 t) { in checkf() argument
22 if(r!=t) { in checkf()
23 printf("M33CF test F%d: expected %08x got %08x\n",n,t,r); in checkf()
29 static void checkd(ui64 r,ui64 t) { in checkd() argument
31 if(r!=t) { in checkd()
35 (ui32)(r>>32),(ui32)r); in checkd()
Dpico_float_test.c328 #define check1(func,p0) ({ typeof(p0) r = func(p0), r2 = __CONCAT(__real_, func)(p0); test_assert(r
329 …fine check2(func,p0,p1) ({ typeof(p0) r = func(p0,p1), r2 = __CONCAT(__real_, func)(p0,p1); test_a…
330 …func,p0) ({ typeof(p0) r = func(p0), r2 = __CONCAT(__real_, func)(p0); if (isnanf(p0)) assert_nan(
331 …{ typeof(p0) r = func(p0,p1), r2 = __CONCAT(__real_, func)(p0,p1); if (isnanf(p0) || isnanf(p1)) a…
/hal_rpi_pico-latest/src/rp2_common/cmsis/stub/CMSIS/Core/Include/m-profile/
Dcmsis_tiarmclang_m.h160 #define __CMSIS_GCC_OUT_REG(r) "=l" (r) argument
161 #define __CMSIS_GCC_RW_REG(r) "+l" (r) argument
162 #define __CMSIS_GCC_USE_REG(r) "l" (r) argument
164 #define __CMSIS_GCC_OUT_REG(r) "=r" (r) argument
165 #define __CMSIS_GCC_RW_REG(r) "+r" (r) argument
166 #define __CMSIS_GCC_USE_REG(r) "r" (r) argument
/hal_rpi_pico-latest/src/rp2_common/pico_divider/
Ddivider_hardware.S469 …ldr r4,[r7,#SIO_DIV_QUOTIENT_OFFSET] @ r=0xffffffffU/x1; 2^15<=r<2^16 r is a normalised reciproca…
474 @ r4 r
479 lsrs r6,#16 @ q=((ui32)(y>>48)*r)>>16;
496 lsrs r6,#16 @ q=((ui32)(y>>35)*r)>>16;
517 lsrs r6,#16 @ q=((ui32)(y>>22)*r)>>16;
532 lsrs r6,#16 @ q=((ui32)(y>>9)*r)>>16;
578 @ r4 r
691 …ldr r4,[r7,#SIO_DIV_QUOTIENT_OFFSET] @ r=0xffffffffU/x1; 2^15<=r<2^16 r is a normalised reciproca…
696 @ r4 r
700 lsrs r6,#16 @ q=((ui32)(y>>48)*r)>>16;
[all …]
/hal_rpi_pico-latest/src/rp2_common/pico_rand/include/pico/
Drand.h180 uint64_t r[2]; member
/hal_rpi_pico-latest/src/rp2_common/hardware_rcp/include/hardware/
Drcp.h310 .macro rcp_bvalid r
311 mcr p7, #1, \r , c0, c0, #0
314 .macro rcp_bvalid_nodelay r
315 mcr2 p7, #1, \r , c0, c0, #0
319 .macro rcp_btrue r
320 mcr p7, #2, \r , c0, c0, #0
323 .macro rcp_btrue_nodelay r
324 mcr2 p7, #2, \r , c0, c0, #0
328 .macro rcp_bfalse r
329 mcr p7, #3, \r , c0, c0, #1
[all …]
/hal_rpi_pico-latest/bazel/
Dgenerate_version_header.py38 _EXPANSION_REGEX = re.compile(r"(?:\$\{)([a-zA-Z]\w*)(?:\})")
/hal_rpi_pico-latest/src/rp2_common/hardware_hazard3/include/hardware/hazard3/
Dinstructions.h41 .insn r 0x0b, 0x4, (((\nbits - 1) & 0x7 ) << 1), \rd, \rs1, \rs2

12