/hal_rpi_pico-latest/src/rp2_common/pico_stdio_rtt/ |
D | stdio_rtt.c | 28 static void stdio_rtt_out_chars(const char *buf, int length) { in stdio_rtt_out_chars() argument 29 SEGGER_RTT_Write(0, buf, (unsigned)length); in stdio_rtt_out_chars() 32 static int stdio_rtt_in_chars(char *buf, int length) { in stdio_rtt_in_chars() argument 33 return (int)SEGGER_RTT_Read(0, buf, (unsigned)length); in stdio_rtt_in_chars()
|
/hal_rpi_pico-latest/src/rp2_common/pico_stdio_semihosting/ |
D | stdio_semihosting.c | 11 static void stdio_semihosting_out_chars(const char *buf, int length) { in stdio_semihosting_out_chars() argument 20 const char *buf; in stdio_semihosting_out_chars() member 25 args.buf = buf; in stdio_semihosting_out_chars()
|
/hal_rpi_pico-latest/src/rp2_common/pico_cyw43_driver/cybt_shared_bus/ |
D | cybt_shared_bus.c | 339 int cyw43_btbus_write(uint8_t *buf, uint32_t size) { in cyw43_btbus_write() argument 347 buf[0] = (uint8_t) (cmd_len & 0xFF); in cyw43_btbus_write() 348 buf[1] = (uint8_t) ((cmd_len & 0xFF00) >> 8); in cyw43_btbus_write() 349 buf[2] = 0; in cyw43_btbus_write() 355 dump_bytes(buf, size); // dump header and data in cyw43_btbus_write() 358 cybt_hci_write_buf(buf, size); in cyw43_btbus_write() 364 static bool cybt_hci_read_packet(uint8_t *buf, uint32_t max_buf_size, uint32_t *size) { in cybt_hci_read_packet() argument 371 bt_result = cybt_hci_read(buf, &read_len); in cybt_hci_read_packet() 386 … uint32_t hci_read_len = ((buf[2] << 16) & 0xFFFF00) | ((buf[1] << 8) & 0xFF00) | (buf[0] & 0xFF); in cybt_hci_read_packet() 396 …cybt_debug("cybt_hci_read_packet: packet type 0x%" PRIx8 " len %" PRId32 "\n", buf[3], hci_read_le… in cybt_hci_read_packet() [all …]
|
D | cybt_shared_bus_driver.c | 518 uint32_t buf[4]; in cybt_get_bt_buf_index() local 520 cybt_mem_read(H2B_BUF_IN_ADDR, (uint8_t *) buf, sizeof(buf)); in cybt_get_bt_buf_index() 522 p_buf_index->host2bt_in_val = buf[0]; in cybt_get_bt_buf_index() 523 p_buf_index->host2bt_out_val = buf[1]; in cybt_get_bt_buf_index() 524 p_buf_index->bt2host_in_val = buf[2]; in cybt_get_bt_buf_index() 525 p_buf_index->bt2host_out_val = buf[3]; in cybt_get_bt_buf_index()
|
/hal_rpi_pico-latest/src/rp2_common/pico_printf/ |
D | printf.c | 180 static size_t _out_rev(out_fct_type out, char *buffer, size_t idx, size_t maxlen, const char *buf, … in _out_rev() argument 193 out(buf[--len], buffer, idx++, maxlen); in _out_rev() 208 static size_t _ntoa_format(out_fct_type out, char *buffer, size_t idx, size_t maxlen, char *buf, si… in _ntoa_format() argument 217 buf[len++] = '0'; in _ntoa_format() 220 buf[len++] = '0'; in _ntoa_format() 233 buf[len++] = 'x'; in _ntoa_format() 235 buf[len++] = 'X'; in _ntoa_format() 237 buf[len++] = 'b'; in _ntoa_format() 240 buf[len++] = '0'; in _ntoa_format() 246 buf[len++] = '-'; in _ntoa_format() [all …]
|
/hal_rpi_pico-latest/src/rp2_common/pico_stdio/ |
D | stdio.c | 116 int stdio_get_until(char *buf, int len, absolute_time_t until) { in stdio_get_until() argument 123 int read = driver->in_chars(buf, len); in stdio_get_until() 177 char buf[PICO_STDIO_STACK_BUFFER_SIZE]; member 185 stdio_out_chars_crlf(d, buffer->buf, buffer->used); in stdio_stack_buffer_flush() 196 buffer->buf[buffer->used++] = c; in stdio_buffered_printer() 256 char buf[1]; in stdio_getchar_timeout_us() local 257 int rc = stdio_get_until(buf, sizeof(buf), make_timeout_time_us(timeout_us)); in stdio_getchar_timeout_us() 260 return (uint8_t)buf[0]; in stdio_getchar_timeout_us() 295 char buf[1]; in PRIMARY_STDIO_FUNC() local 296 int len = stdio_get_until(buf, 1, at_the_end_of_time); in PRIMARY_STDIO_FUNC() [all …]
|
/hal_rpi_pico-latest/src/rp2_common/pico_cyw43_driver/ |
D | cyw43_driver.c | 133 void __attribute__((weak)) cyw43_hal_generate_laa_mac(__unused int idx, uint8_t buf[6]) { in cyw43_hal_generate_laa_mac() 137 memcpy(buf, &board_id.id[2], 6); in cyw43_hal_generate_laa_mac() 138 buf[0] &= (uint8_t)~0x1; // unicast in cyw43_hal_generate_laa_mac() 139 buf[0] |= 0x2; // locally administered in cyw43_hal_generate_laa_mac() 143 void cyw43_hal_get_mac(__unused int idx, uint8_t buf[6]) { in cyw43_hal_get_mac() 147 memcpy(buf, cyw43_state.mac, 6); in cyw43_hal_get_mac() 197 …ibute__((weak)) cyw43_cb_process_ethernet(void *cb_data, int itf, size_t len, const uint8_t *buf) { in cyw43_cb_process_ethernet() argument
|
D | cyw43_bus_pio_spi.c | 390 uint32_t buf[2] = {0}; in read_reg_u32_swap() local 392 buf[0] = SWAP32(make_cmd(false, true, fn, reg, 4)); in read_reg_u32_swap() 393 int ret = cyw43_spi_transfer(self, NULL, 4, (uint8_t *)buf, 8); in read_reg_u32_swap() 397 return SWAP32(buf[1]); in read_reg_u32_swap() 405 uint8_t *buf = (uint8_t *)buf32; in _cyw43_read_reg() local 412 int ret = cyw43_spi_transfer(self, NULL, 4, buf, 8 + padding); in _cyw43_read_reg() 439 uint32_t buf[2]; in write_reg_u32_swap() local 441 buf[0] = SWAP32(make_cmd(true, true, fn, reg, 4)); in write_reg_u32_swap() 442 buf[1] = SWAP32(val); in write_reg_u32_swap() 443 int ret = cyw43_spi_transfer(self, (uint8_t *)buf, 8, NULL, 0); in write_reg_u32_swap() [all …]
|
/hal_rpi_pico-latest/src/rp2_common/pico_clib_interface/ |
D | llvm_libc_interface.c | 53 ssize_t __llvm_libc_stdio_read(__unused void *cookie, char *buf, size_t size) { in __llvm_libc_stdio_read() argument 55 buf[i] = getchar_timeout_us(0); in __llvm_libc_stdio_read() 60 ssize_t __llvm_libc_stdio_write(__unused void *cookie, const char *buf, size_t size) { in __llvm_libc_stdio_write() argument 63 putchar_raw(buf[i]); in __llvm_libc_stdio_write()
|
D | newlib_interface.c | 147 int __attribute__((weak)) _fstat(__unused int fd, __unused struct stat *buf) { in _fstat() argument
|
/hal_rpi_pico-latest/src/rp2_common/pico_stdio/include/pico/stdio/ |
D | driver.h | 13 void (*out_chars)(const char *buf, int len); 15 int (*in_chars)(char *buf, int len);
|
/hal_rpi_pico-latest/tools/pioasm/ |
D | pio_disassembler.h | 19 extern "C" void disassemble(char *buf, int buf_len, uint inst, uint sideset_bits, bool sideset_opt); 21 void disassemble(char *buf, int buf_len, uint inst, uint sideset_bits, bool sideset_opt);
|
D | pio_disassembler.cpp | 12 extern "C" void disassemble(char *buf, int buf_len, uint inst, uint sideset_bits, bool sideset_opt)… in disassemble() argument 13 if (buf_len) buf[disassemble(inst, sideset_bits, sideset_opt).copy(buf, buf_len - 1)] = 0; in disassemble()
|
/hal_rpi_pico-latest/src/rp2_common/pico_stdio_uart/ |
D | stdio_uart.c | 141 static void stdio_uart_out_chars(const char *buf, int length) { in stdio_uart_out_chars() argument 143 uart_putc(uart_instance, buf[i]); in stdio_uart_out_chars() 147 int stdio_uart_in_chars(char *buf, int length) { in stdio_uart_in_chars() argument 150 buf[i++] = uart_getc(uart_instance); in stdio_uart_in_chars()
|
/hal_rpi_pico-latest/src/rp2_common/pico_stdio_usb/ |
D | stdio_usb.c | 101 static void stdio_usb_out_chars(const char *buf, int length) { in stdio_usb_out_chars() argument 112 int n2 = (int) tud_cdc_write(buf + i, (uint32_t)n); in stdio_usb_out_chars() 143 int stdio_usb_in_chars(char *buf, int length) { in stdio_usb_in_chars() argument 158 int count = (int) tud_cdc_read(buf, (uint32_t) length); in stdio_usb_in_chars()
|
/hal_rpi_pico-latest/src/rp2_common/pico_bootrom/include/pico/ |
D | bootrom.h | 63 typedef int (*rom_func_otp_access_fn)(uint8_t *buf, uint32_t buf_len, otp_cmd_t cmd); 78 …ef int (*rom_flash_op_fn)(cflash_flags_t flags, uintptr_t addr, uint32_t size_bytes, uint8_t *buf); 544 uint8_t *buf; member 551 *(op->res) = func(op->flags, op->addr, op->size_bytes, op->buf); in rom_helper_flash_op() 593 … inline int rom_flash_op(cflash_flags_t flags, uintptr_t addr, uint32_t size_bytes, uint8_t *buf) { in rom_flash_op() argument 601 .buf = buf, in rom_flash_op() 637 static inline int rom_func_otp_access(uint8_t *buf, uint32_t buf_len, otp_cmd_t cmd) { in rom_func_otp_access() argument 641 int rc = func(buf, buf_len, cmd); in rom_func_otp_access()
|
/hal_rpi_pico-latest/src/rp2_common/pico_clib_interface/include/llvm_libc/ |
D | time.h | 17 struct tm* localtime_r(const time_t* timer, struct tm* buf);
|
/hal_rpi_pico-latest/src/rp2_common/pico_cyw43_driver/include/ |
D | cyw43_configport.h | 156 void cyw43_hal_get_mac(int idx, uint8_t buf[6]); 158 void cyw43_hal_generate_laa_mac(int idx, uint8_t buf[6]);
|
/hal_rpi_pico-latest/src/common/pico_util/ |
D | datetime.c | 46 void datetime_to_str(char *buf, uint buf_size, const datetime_t *t) { in datetime_to_str() argument 47 snprintf(buf, in datetime_to_str()
|
/hal_rpi_pico-latest/src/common/pico_util/include/pico/util/ |
D | datetime.h | 34 void datetime_to_str(char *buf, uint buf_size, const datetime_t *t);
|
/hal_rpi_pico-latest/src/rp2_common/pico_stdio/include/pico/ |
D | stdio.h | 173 int stdio_get_until(char *buf, int len, absolute_time_t until);
|
/hal_rpi_pico-latest/tools/pioasm/gen/ |
D | lexer.cpp | 1021 #define YY_INPUT(buf,result,max_size) \ argument 1029 buf[n] = (char) c; \ 1031 buf[n++] = (char) c; \ 1039 while ( (result = (int) fread(buf, 1, (yy_size_t) max_size, yyin)) == 0 && ferror(yyin)) \ 2603 char *buf; in yy_scan_bytes() local 2609 buf = (char *) yyalloc( n ); in yy_scan_bytes() 2610 if ( ! buf ) in yy_scan_bytes() 2614 buf[i] = yybytes[i]; in yy_scan_bytes() 2616 buf[_yybytes_len] = buf[_yybytes_len+1] = YY_END_OF_BUFFER_CHAR; in yy_scan_bytes() 2618 b = yy_scan_buffer( buf, n ); in yy_scan_bytes()
|
/hal_rpi_pico-latest/test/pico_float_test/ |
D | pico_double_test.c | 402 char buf[4]; in main() local 403 sprintf(buf, "%d", i); in main() 404 float f0 = -nanf(buf); in main() 405 double d0 = -nan(buf); in main()
|
D | pico_float_test.c | 461 char buf[4]; in main() local 462 sprintf(buf, "%d", i); in main() 463 float f0 = -nanf(buf); in main() 464 double d0 = -nan(buf); in main()
|