/hal_rpi_pico-latest/src/rp2_common/pico_malloc/ |
D | malloc.c | 20 extern void *REAL_FUNC(malloc)(size_t size); 21 extern void *REAL_FUNC(calloc)(size_t count, size_t size); 22 extern void *REAL_FUNC(realloc)(void *mem, size_t size); 60 static inline void check_alloc(__unused void *mem, __unused uint size) { in check_alloc() argument 62 if (!mem || (((char *)mem) + size) > &__StackLimit) { in check_alloc() 68 void *WRAPPER_FUNC(malloc)(size_t size) { in WRAPPER_FUNC() 70 void *rc = REAL_FUNC(malloc)(size); in WRAPPER_FUNC() 74 printf("malloc %d failed to allocate memory\n", (uint) size); in WRAPPER_FUNC() 75 } else if (((uint8_t *)rc) + size > (uint8_t*)PICO_DEBUG_MALLOC_LOW_WATER) { in WRAPPER_FUNC() 76 printf("malloc %d %p->%p\n", (uint) size, rc, ((uint8_t *) rc) + size); in WRAPPER_FUNC() [all …]
|
/hal_rpi_pico-latest/src/rp2_common/pico_btstack/ |
D | btstack_flash_bank.c | 79 …id pico_flash_bank_read(void *context, int bank, uint32_t offset, uint8_t *buffer, uint32_t size) { in pico_flash_bank_read() argument 81 DEBUG_PRINT("read: bank %d offset %u size %u\n", bank, offset, size); in pico_flash_bank_read() 89 assert((offset + size) <= PICO_FLASH_BANK_SIZE); in pico_flash_bank_read() 90 if ((offset + size) > PICO_FLASH_BANK_SIZE) return; in pico_flash_bank_read() 93 …_BASE + pico_flash_bank_get_storage_offset_func() + (PICO_FLASH_BANK_SIZE * bank) + offset), size); in pico_flash_bank_read() 96 …o_flash_bank_write(void * context, int bank, uint32_t offset, const uint8_t *data, uint32_t size) { in pico_flash_bank_write() argument 98 DEBUG_PRINT("write: bank %d offset %u size %u\n", bank, offset, size); in pico_flash_bank_write() 106 assert((offset + size) <= PICO_FLASH_BANK_SIZE); in pico_flash_bank_write() 107 if ((offset + size) > PICO_FLASH_BANK_SIZE) return; in pico_flash_bank_write() 109 if (size == 0) return; in pico_flash_bank_write() [all …]
|
/hal_rpi_pico-latest/src/rp2_common/pico_atomic/ |
D | atomic.c | 47 bool __atomic_is_lock_free_c(__unused size_t size, __unused const volatile void *ptr) { in __atomic_is_lock_free_c() argument 49 if (size == 1 || size == 2 || size == 4) { in __atomic_is_lock_free_c() 50 size_t align = size - 1; in __atomic_is_lock_free_c() 60 void __atomic_load_c(uint size, const volatile void *src, void *dest, __unused int model) { in __atomic_load_c() argument 62 memcpy(dest, remove_volatile_cast_no_barrier(const void *, src), size); in __atomic_load_c() 68 void __atomic_store_c(uint size, volatile void *dest, void *src, __unused int model) { in __atomic_store_c() argument 70 memcpy(remove_volatile_cast_no_barrier(void *, dest), src, size); in __atomic_store_c() 79 _Bool __atomic_compare_exchange_c(uint size, volatile void *ptr, void *expected, in __atomic_compare_exchange_c() argument 82 if (memcmp(remove_volatile_cast_no_barrier(void *, ptr), expected, size) == 0) { in __atomic_compare_exchange_c() 83 memcpy(remove_volatile_cast_no_barrier(void *, ptr), desired, size); in __atomic_compare_exchange_c() [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 54 for (size_t i = 0; i < size; i++) { in __llvm_libc_stdio_read() 57 return size; 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 62 for (size_t i = 0; i < size; i++) { in __llvm_libc_stdio_write() 65 return size; in __llvm_libc_stdio_write()
|
/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 343 cmd_len = size - 4; //in BTSDIO, cmd_len does not include header length 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 374 *size = 0; in cybt_hci_read_packet() 381 *size = 0; in cybt_hci_read_packet() 388 *size = 0; in cybt_hci_read_packet() 399 *size = 0; in cybt_hci_read_packet() 408 *size = hci_read_len + 4; in cybt_hci_read_packet() [all …]
|
/hal_rpi_pico-latest/src/rp2_common/hardware_flash/include/hardware/ |
D | flash.h | 145 static inline uint32_t flash_devinfo_size_to_bytes(flash_devinfo_size_t size) { in flash_devinfo_size_to_bytes() argument 146 if (size == FLASH_DEVINFO_SIZE_NONE) { in flash_devinfo_size_to_bytes() 149 return 4096u << (uint)size; in flash_devinfo_size_to_bytes() 206 void flash_devinfo_set_cs_size(uint cs, flash_devinfo_size_t size);
|
/hal_rpi_pico-latest/tools/pioasm/ |
D | ada_output.cpp | 56 for(std::string::size_type i = 0; i < identifier.size(); ++i) { in ada_case() 77 if (p.first.size() >= name.size() && p.first.compare(0, name.size(), name) == 0) { in output() 85 switch (output_options.size()) { in output() 124 for (int i = 0; i < (int)program.instructions.size(); i++) { in output() 129 if (i == (int)program.instructions.size() - 1) { in output()
|
D | json_output.cpp | 70 if (p.first.size() >= name.size() && p.first.compare(0, name.size(), name) == 0) { in output() 112 for (int i = 0; i < (int)program.instructions.size(); i++) { in output()
|
D | c_sdk_output.cpp | 61 if (p.first.size() >= name.size() && p.first.compare(0, name.size(), name) == 0) { in output() 93 for (int i = 0; i < (int)program.instructions.size(); i++) { in output() 110 fprintf(out, " .length = %d,\n", (int) program.instructions.size()); in output()
|
D | pio_assembler.h | 46 programs[programs.size()-1].pio_version = get_default_pio_version(); in add_program() 71 auto &p = programs[programs.size() - 1]; 86 auto &p = programs[programs.size() - 1]; in get_current_pio_version()
|
D | python_output.cpp | 88 if (p.first.size() >= name.size() && p.first.compare(0, name.size(), name) == 0) { in output() 99 for (int i = 0; i < (int)program.instructions.size(); i++) { in output() 108 for (uint i = 0; i < (uint)program.instructions.size(); i++) { in output()
|
D | hex_output.cpp | 28 if (source.programs.size() > 1) { in output()
|
D | pio_assembler.cpp | 40 if (instructions.size() >= limit) { in add_instruction() 161 wrap = resolvable_int(l, instructions.size() - 1); in set_wrap() 170 wrap_target = resolvable_int(l, instructions.size()); in set_wrap_target() 362 } else if (dest >= (int)program.instructions.size()) { in raw_encode() 466 auto &cprogram = source.programs[source.programs.size() - 1]; in write_output() 489 …ram.wrap->resolve(program); else cprogram.wrap = std::max((int)program.instructions.size() - 1, 0); in write_output() 494 if (cprogram.wrap_target >= program.instructions.size()) { in write_output()
|
/hal_rpi_pico-latest/docs/ |
D | normalise.css | 8 * 2. Prevent adjustments of font size after orientation changes in 14 -ms-text-size-adjust: 100%; /* 2 */ 15 -webkit-text-size-adjust: 100%; /* 2 */ 43 * Correct the font size and margin on `h1` elements within `section` and 48 font-size: 145%; 86 * 1. Correct the inheritance and scaling of font size in all browsers. 92 font-size: 1em; /* 2 */ 138 * 1. Correct the inheritance and scaling of font size in all browsers. 146 font-size: 1em; /* 2 */ 167 * Add the correct font size in all browsers. [all …]
|
D | styles.css | 53 font-size: .9em; 98 font-size: 0.9em; 146 font-size: 18px; 182 font-size: 20px; 229 font-size: 13px; 243 font-size: 13px; 334 font-size: 0; 391 font-size: 18px; 467 font-size: 13px; 584 font-size: 100%; [all …]
|
/hal_rpi_pico-latest/src/rp2_common/pico_bootrom/ |
D | bootrom.c | 99 int rom_add_flash_runtime_partition(uint32_t start_offset, uint32_t size, uint32_t permissions) { in rom_add_flash_runtime_partition() argument 100 if ((start_offset) & 4095 || (size & 4095)) return PICO_ERROR_BAD_ALIGNMENT; in rom_add_flash_runtime_partition() 101 if (!size || start_offset + size > 32 * 1024 * 1024) return PICO_ERROR_INVALID_ARG; in rom_add_flash_runtime_partition() 121 ((start_offset + size - 4096) / 4096) << PICOBIN_PARTITION_LOCATION_LAST_SECTOR_LSB; in rom_add_flash_runtime_partition()
|
/hal_rpi_pico-latest/src/rp2_common/pico_cyw43_driver/ |
D | btstack_hci_transport_cyw43.c | 32 … (*hci_transport_cyw43_packet_handler)(uint8_t packet_type, uint8_t *packet, uint16_t size) = NULL; 88 …w43_register_packet_handler(void (*handler)(uint8_t packet_type, uint8_t *packet, uint16_t size)) { in hci_transport_cyw43_register_packet_handler() argument 97 static int hci_transport_cyw43_send_packet(uint8_t packet_type, uint8_t *packet, int size) { in hci_transport_cyw43_send_packet() argument 101 uint32_t buffer_size = size + 4; in hci_transport_cyw43_send_packet()
|
D | cyw43_bus_pio_spi.c | 400 static inline uint32_t _cyw43_read_reg(cyw43_int_t *self, uint32_t fn, uint32_t reg, uint size) { in _cyw43_read_reg() argument 407 buf32[0] = make_cmd(false, true, fn, reg, size); in _cyw43_read_reg() 421 CYW43_VDEBUG("cyw43_read_reg_u%d %s 0x%lx=0x%lx\n", size * 8, func_name(fn), reg, result); in _cyw43_read_reg() 448 …nline int _cyw43_write_reg(cyw43_int_t *self, uint32_t fn, uint32_t reg, uint32_t val, uint size) { in _cyw43_write_reg() argument 450 buf[0] = make_cmd(true, true, fn, reg, size); in _cyw43_write_reg() 470 CYW43_VDEBUG("cyw43_write_reg_u%d %s 0x%lx=0x%lx\n", size * 8, func_name(fn), reg, val); in _cyw43_write_reg() 487 #error Block size is wrong for SPI
|
/hal_rpi_pico-latest/src/rp2_common/pico_sha256/ |
D | sha256.c | 151 …uint64_t size = (state->total_data_size + SHA256_PADDING_DATA_BYTES + (SHA256_BLOCK_SIZE_BYTES - 1… in write_padding() local 153 const size_t padding_size_bytes = size - state->total_data_size; in write_padding() 163 size = __builtin_bswap64(user_data_size * 8); in write_padding() 164 update_internal(state, (uint8_t*)&size, sizeof(uint64_t)); // last write in write_padding()
|
/hal_rpi_pico-latest/src/rp2_common/pico_unique_id/ |
D | unique_id.c | 32 #error unique board ID size is greater than flash unique ID size in _retrieve_unique_id_on_boot()
|
/hal_rpi_pico-latest/src/rp2_common/hardware_base/include/hardware/ |
D | address_mapped.h | 56 #define check_hw_size(type, size) static_assert(sizeof(type) == (size), "hw size mismatch") argument
|
/hal_rpi_pico-latest/src/rp2_common/hardware_dma/include/hardware/ |
D | dma.h | 218 …channel_config_set_transfer_data_size(dma_channel_config *c, enum dma_channel_transfer_size size) { in channel_config_set_transfer_data_size() argument 219 assert(size == DMA_SIZE_8 || size == DMA_SIZE_16 || size == DMA_SIZE_32); in channel_config_set_transfer_data_size() 220 …c->ctrl = (c->ctrl & ~DMA_CH0_CTRL_TRIG_DATA_SIZE_BITS) | (((uint)size) << DMA_CH0_CTRL_TRIG_DATA_… in channel_config_set_transfer_data_size()
|
/hal_rpi_pico-latest/tools/pioasm/gen/ |
D | lexer.cpp | 331 YY_BUFFER_STATE yy_create_buffer ( FILE *file, int size ); 342 YY_BUFFER_STATE yy_scan_buffer ( char *base, yy_size_t size ); 2298 YY_BUFFER_STATE yy_create_buffer (FILE * file, int size ) in yy_create_buffer() argument 2309 b->yy_buf_size = size; in yy_create_buffer() 2546 YY_BUFFER_STATE yy_scan_buffer (char * base, yy_size_t size ) in yy_scan_buffer() argument 2550 if ( size < 2 || in yy_scan_buffer() 2551 base[size-2] != YY_END_OF_BUFFER_CHAR || in yy_scan_buffer() 2552 base[size-1] != YY_END_OF_BUFFER_CHAR ) in yy_scan_buffer() 2560 b->yy_buf_size = (int) (size - 2); /* "- 2" to take care of EOB's */ in yy_scan_buffer() 2837 void *yyalloc (yy_size_t size ) in yyalloc() argument [all …]
|
/hal_rpi_pico-latest/src/rp2_common/pico_bootrom/include/pico/ |
D | bootrom.h | 52 typedef void* (*rom_validate_ns_buffer_fn)(const void *addr, uint32_t size, uint32_t write, uint32_… 100 uint32_t size; member 933 static inline void* rom_validate_ns_buffer(const void *addr, uint32_t size, uint32_t write, uint32_… in rom_validate_ns_buffer() argument 935 return func(addr, size, write, ok); in rom_validate_ns_buffer() 1066 int rom_add_flash_runtime_partition(uint32_t start_offset, uint32_t size, uint32_t permissions);
|
/hal_rpi_pico-latest/src/rp2_common/hardware_flash/ |
D | flash.c | 334 void flash_devinfo_set_cs_size(uint cs, flash_devinfo_size_t size) { in flash_devinfo_set_cs_size() argument 336 invalid_params_if(HARDWARE_FLASH, (uint)size > (uint)FLASH_DEVINFO_SIZE_MAX); in flash_devinfo_set_cs_size() 340 (uint16_t)size << cs_shift, in flash_devinfo_set_cs_size()
|