Home
last modified time | relevance | path

Searched refs:len (Results 1 – 25 of 26) sorted by relevance

12

/hal_rpi_pico-3.7.0-3.6.0-3.5.0/src/rp2_common/hardware_spi/
Dspi.c76 …lash_func(spi_write_read_blocking)(spi_inst_t *spi, const uint8_t *src, uint8_t *dst, size_t len) { in __not_in_flash_func()
77 invalid_params_if(SPI, 0 > (int)len); in __not_in_flash_func()
82 size_t rx_remaining = len, tx_remaining = len; in __not_in_flash_func()
95 return (int)len; in __not_in_flash_func()
99 int __not_in_flash_func(spi_write_blocking)(spi_inst_t *spi, const uint8_t *src, size_t len) { in __not_in_flash_func()
100 invalid_params_if(SPI, 0 > (int)len); in __not_in_flash_func()
104 for (size_t i = 0; i < len; ++i) { in __not_in_flash_func()
121 return (int)len; in __not_in_flash_func()
128 …lash_func(spi_read_blocking)(spi_inst_t *spi, uint8_t repeated_tx_data, uint8_t *dst, size_t len) { in __not_in_flash_func()
129 invalid_params_if(SPI, 0 > (int)len); in __not_in_flash_func()
[all …]
/hal_rpi_pico-3.7.0-3.6.0-3.5.0/src/rp2_common/pico_stdio/
Dstdio.c60 static void stdio_out_chars_no_crlf(stdio_driver_t *driver, const char *s, int len) { in stdio_out_chars_no_crlf() argument
61 driver->out_chars(s, len); in stdio_out_chars_no_crlf()
64 static void stdio_out_chars_crlf(stdio_driver_t *driver, const char *s, int len) { in stdio_out_chars_crlf() argument
67 driver->out_chars(s, len); in stdio_out_chars_crlf()
72 for (int i = 0; i < len; i++) { in stdio_out_chars_crlf()
82 if (first_of_chunk < len) { in stdio_out_chars_crlf()
83 driver->out_chars(&s[first_of_chunk], len - first_of_chunk); in stdio_out_chars_crlf()
85 if (len > 0) { in stdio_out_chars_crlf()
86 driver->last_ended_with_cr = s[len - 1] == '\r'; in stdio_out_chars_crlf()
89 driver->out_chars(s, len); in stdio_out_chars_crlf()
[all …]
/hal_rpi_pico-3.7.0-3.6.0-3.5.0/src/rp2_common/pico_printf/
Dprintf.c200 …_t _out_rev(out_fct_type out, char *buffer, size_t idx, size_t maxlen, const char *buf, size_t len, in _out_rev() argument
206 for (size_t i = len; i < width; i++) { in _out_rev()
212 while (len) { in _out_rev()
213 out(buf[--len], buffer, idx++, maxlen); in _out_rev()
228 …ze_t _ntoa_format(out_fct_type out, char *buffer, size_t idx, size_t maxlen, char *buf, size_t len, in _ntoa_format() argument
236 while ((len < prec) && (len < PICO_PRINTF_NTOA_BUFFER_SIZE)) { in _ntoa_format()
237 buf[len++] = '0'; in _ntoa_format()
239 while ((flags & FLAGS_ZEROPAD) && (len < width) && (len < PICO_PRINTF_NTOA_BUFFER_SIZE)) { in _ntoa_format()
240 buf[len++] = '0'; in _ntoa_format()
246 if (!(flags & FLAGS_PRECISION) && len && ((len == prec) || (len == width))) { in _ntoa_format()
[all …]
/hal_rpi_pico-3.7.0-3.6.0-3.5.0/src/rp2_common/hardware_i2c/include/hardware/
Di2c.h177 int i2c_write_blocking_until(i2c_inst_t *i2c, uint8_t addr, const uint8_t *src, size_t len, bool no…
191 int i2c_read_blocking_until(i2c_inst_t *i2c, uint8_t addr, uint8_t *dst, size_t len, bool nostop, a…
208 …write_timeout_us(i2c_inst_t *i2c, uint8_t addr, const uint8_t *src, size_t len, bool nostop, uint … in i2c_write_timeout_us() argument
210 return i2c_write_blocking_until(i2c, addr, src, len, nostop, t); in i2c_write_timeout_us()
213 int i2c_write_timeout_per_char_us(i2c_inst_t *i2c, uint8_t addr, const uint8_t *src, size_t len, bo…
227 static inline int i2c_read_timeout_us(i2c_inst_t *i2c, uint8_t addr, uint8_t *dst, size_t len, bool… in i2c_read_timeout_us() argument
229 return i2c_read_blocking_until(i2c, addr, dst, len, nostop, t); in i2c_read_timeout_us()
232 int i2c_read_timeout_per_char_us(i2c_inst_t *i2c, uint8_t addr, uint8_t *dst, size_t len, bool nost…
245 int i2c_write_blocking(i2c_inst_t *i2c, uint8_t addr, const uint8_t *src, size_t len, bool nostop);
258 int i2c_read_blocking(i2c_inst_t *i2c, uint8_t addr, uint8_t *dst, size_t len, bool nostop);
[all …]
/hal_rpi_pico-3.7.0-3.6.0-3.5.0/src/rp2_common/pico_stdio_usb/
Dstdio_usb_descriptors.c150 uint8_t len; in tud_descriptor_string_cb() local
153 len = 1; in tud_descriptor_string_cb()
159 for (len = 0; len < DESC_STR_MAX - 1 && str[len]; ++len) { in tud_descriptor_string_cb()
160 desc_str[1 + len] = str[len]; in tud_descriptor_string_cb()
165 desc_str[0] = (uint16_t) ((TUSB_DESC_STRING << 8) | (2 * len + 2)); in tud_descriptor_string_cb()
/hal_rpi_pico-3.7.0-3.6.0-3.5.0/src/rp2_common/hardware_i2c/
Di2c.c135 …write_blocking_internal(i2c_inst_t *i2c, uint8_t addr, const uint8_t *src, size_t len, bool nostop, in i2c_write_blocking_internal() argument
141 invalid_params_if(I2C, len == 0); in i2c_write_blocking_internal()
142 invalid_params_if(I2C, ((int)len) < 0); in i2c_write_blocking_internal()
154 int ilen = (int)len; in i2c_write_blocking_internal()
243 int i2c_write_blocking(i2c_inst_t *i2c, uint8_t addr, const uint8_t *src, size_t len, bool nostop) { in i2c_write_blocking() argument
244 return i2c_write_blocking_internal(i2c, addr, src, len, nostop, NULL, NULL); in i2c_write_blocking()
247 int i2c_write_blocking_until(i2c_inst_t *i2c, uint8_t addr, const uint8_t *src, size_t len, bool no… in i2c_write_blocking_until() argument
250 …return i2c_write_blocking_internal(i2c, addr, src, len, nostop, init_single_timeout_until(&ts, unt… in i2c_write_blocking_until()
253 int i2c_write_timeout_per_char_us(i2c_inst_t *i2c, uint8_t addr, const uint8_t *src, size_t len, bo… in i2c_write_timeout_per_char_us() argument
256 return i2c_write_blocking_internal(i2c, addr, src, len, nostop, in i2c_write_timeout_per_char_us()
[all …]
/hal_rpi_pico-3.7.0-3.6.0-3.5.0/src/rp2_common/pico_mbedtls/
Dpico_mbedtls.c6 int mbedtls_hardware_poll(void *data __unused, unsigned char *output, size_t len, size_t *olen) { in mbedtls_hardware_poll() argument
8 while(*olen < len) { in mbedtls_hardware_poll()
10 size_t to_copy = MIN(len, sizeof(rand_data)); in mbedtls_hardware_poll()
/hal_rpi_pico-3.7.0-3.6.0-3.5.0/src/rp2_common/boot_stage2/
Dpad_checksum34 if len(idata) > args.pad - 4:
35 …sys.exit("Input file size ({} bytes) too large for final size ({} bytes)".format(len(idata), args.…
37 idata_padded = idata + bytes(args.pad - 4 - len(idata))
51 for offs in range(0, len(odata), 16):
52 chunk = odata[offs:min(offs + 16, len(odata))]
/hal_rpi_pico-3.7.0-3.6.0-3.5.0/src/rp2_common/pico_unique_id/
Dunique_id.c30 void pico_get_unique_board_id_string(char *id_out, uint len) { in pico_get_unique_board_id_string() argument
31 assert(len > 0); in pico_get_unique_board_id_string()
34 for (i = 0; (i < len - 1) && (i < PICO_UNIQUE_BOARD_ID_SIZE_BYTES * 2); i++) { in pico_get_unique_board_id_string()
/hal_rpi_pico-3.7.0-3.6.0-3.5.0/src/rp2_common/hardware_spi/include/hardware/
Dspi.h253 int spi_write_read_blocking(spi_inst_t *spi, const uint8_t *src, uint8_t *dst, size_t len);
266 int spi_write_blocking(spi_inst_t *spi, const uint8_t *src, size_t len);
283 int spi_read_blocking(spi_inst_t *spi, uint8_t repeated_tx_data, uint8_t *dst, size_t len);
304 int spi_write16_read16_blocking(spi_inst_t *spi, const uint16_t *src, uint16_t *dst, size_t len);
319 int spi_write16_blocking(spi_inst_t *spi, const uint16_t *src, size_t len);
338 int spi_read16_blocking(spi_inst_t *spi, uint16_t repeated_tx_data, uint16_t *dst, size_t len);
/hal_rpi_pico-3.7.0-3.6.0-3.5.0/src/rp2_common/pico_cyw43_driver/
Dbtstack_hci_transport_cyw43.c130 uint32_t len = 0; in hci_transport_cyw43_process() local
133 …r = cyw43_bluetooth_hci_read(hci_packet_with_pre_buffer, sizeof(hci_packet_with_pre_buffer), &len); in hci_transport_cyw43_process()
134 BT_DEBUG("bt in len=%lu err=%d\n", len, err); in hci_transport_cyw43_process()
135 if (err == 0 && len > 0) { in hci_transport_cyw43_process()
136 …sport_cyw43_packet_handler(hci_packet_with_pre_buffer[3], hci_packet_with_pre_buffer + 4, len - 4); in hci_transport_cyw43_process()
Dcyw43_bus_pio_spi.c208 static void dump_bytes(const uint8_t *bptr, uint32_t len) { in dump_bytes() argument
211 for (i = 0; i < len;) { in dump_bytes()
485 int cyw43_read_bytes(cyw43_int_t *self, uint32_t fn, uint32_t addr, size_t len, uint8_t *buf) { in cyw43_read_bytes() argument
486 assert(fn != BACKPLANE_FUNCTION || (len <= 64 && (addr + len) <= 0x8000)); in cyw43_read_bytes()
488 size_t aligned_len = (len + 3) & ~3; in cyw43_read_bytes()
491 self->spi_header[padding > 0 ? 0 : 1] = make_cmd(false, true, fn, addr, len + padding); in cyw43_read_bytes()
504 memcpy(buf, self->spid_buf, len); in cyw43_read_bytes()
512 int cyw43_write_bytes(cyw43_int_t *self, uint32_t fn, uint32_t addr, size_t len, const uint8_t *src… in cyw43_write_bytes() argument
513 assert(fn != BACKPLANE_FUNCTION || (len <= 64 && (addr + len) <= 0x8000)); in cyw43_write_bytes()
514 size_t aligned_len = (len + 3) & ~3u; in cyw43_write_bytes()
[all …]
Dcyw43_driver.c192 void __attribute__((weak)) cyw43_cb_process_ethernet(void *cb_data, int itf, size_t len, const uint… in cyw43_cb_process_ethernet() argument
/hal_rpi_pico-3.7.0-3.6.0-3.5.0/src/rp2_common/pico_stdio/include/pico/stdio/
Ddriver.h13 void (*out_chars)(const char *buf, int len);
15 int (*in_chars)(char *buf, int len);
/hal_rpi_pico-3.7.0-3.6.0-3.5.0/src/host/hardware_uart/
Duart.c91 void uart_write_blocking(uart_inst_t *uart, const uint8_t *src, size_t len) { in uart_write_blocking() argument
92 for (size_t i = 0; i < len; i++) { in uart_write_blocking()
98 void uart_read_blocking(uart_inst_t *uart, uint8_t *dst, size_t len) { in uart_read_blocking() argument
99 for (size_t i = 0; i < len; i++) { in uart_read_blocking()
/hal_rpi_pico-3.7.0-3.6.0-3.5.0/src/rp2_common/pico_stdio_semihosting/
Dstdio_semihosting.c21 size_t len; in stdio_semihosting_out_chars() member
26 args.len = length; in stdio_semihosting_out_chars()
/hal_rpi_pico-3.7.0-3.6.0-3.5.0/src/host/hardware_uart/include/hardware/
Duart.h68 void uart_write_blocking(uart_inst_t *uart, const uint8_t *src, size_t len);
71 void uart_read_blocking(uart_inst_t *uart, uint8_t *dst, size_t len);
/hal_rpi_pico-3.7.0-3.6.0-3.5.0/src/rp2_common/hardware_uart/include/hardware/
Duart.h298 static inline void uart_write_blocking(uart_inst_t *uart, const uint8_t *src, size_t len) { in uart_write_blocking() argument
299 for (size_t i = 0; i < len; ++i) { in uart_write_blocking()
315 static inline void uart_read_blocking(uart_inst_t *uart, uint8_t *dst, size_t len) { in uart_read_blocking() argument
316 for (size_t i = 0; i < len; ++i) { in uart_read_blocking()
/hal_rpi_pico-3.7.0-3.6.0-3.5.0/src/rp2_common/pico_unique_id/include/pico/
Dunique_id.h74 void pico_get_unique_board_id_string(char *id_out, uint len);
/hal_rpi_pico-3.7.0-3.6.0-3.5.0/tools/elf2uf2/
Dmain.cpp180 uint len = std::min(remaining, PAGE_SIZE - off); in check_elf32_ph_entries() local
187 ((off + len) <= fragment.page_offset)) { in check_elf32_ph_entries()
192 page_fragment{file_offset,off,len}); in check_elf32_ph_entries()
193 addr += len; in check_elf32_ph_entries()
194 file_offset += len; in check_elf32_ph_entries()
195 remaining -= len; in check_elf32_ph_entries()
/hal_rpi_pico-3.7.0-3.6.0-3.5.0/src/rp2_common/pico_cyw43_driver/cybt_shared_bus/
Dcybt_shared_bus_driver.c141 const char *strnchr(const char *str, uint32_t len, int character) { in strnchr() argument
142 const char *end = str + len; in strnchr()
154 int len in cybt_fw_hex_read_line() argument
164 p_str_end = strnchr(*p_line_start, len, '\n'); in cybt_fw_hex_read_line()
572 static void dump_bytes(const uint8_t *bptr, uint32_t len) { in dump_bytes() argument
575 for (i = 0; i < len; i++) { in dump_bytes()
580 if (i != (len - 1)) { in dump_bytes()
Dcybt_shared_bus.c182 static void dump_bytes(const uint8_t *bptr, uint32_t len) { in dump_bytes() argument
185 for (i = 0; i < len; i++) { in dump_bytes()
190 if (i != (len-1)) { in dump_bytes()
/hal_rpi_pico-3.7.0-3.6.0-3.5.0/.github/workflows/scripts/
Dgenerate_multi_gcc_workflow.py19 assert(len(stderr) == 0)
/hal_rpi_pico-3.7.0-3.6.0-3.5.0/src/rp2_common/cmsis/stub/CMSIS/Core/Include/
Dmpu_armv7.h251 …NE void ARM_MPU_OrderedMemcpy(volatile uint32_t* dst, const uint32_t* __RESTRICT src, uint32_t len) in ARM_MPU_OrderedMemcpy() argument
254 for (i = 0U; i < len; ++i) in ARM_MPU_OrderedMemcpy()
/hal_rpi_pico-3.7.0-3.6.0-3.5.0/tools/
Dextract_configs.py29 outfile = sys.argv[2] if len(sys.argv) > 2 else 'pico_configs.tsv'

12