/lk-master/app/cdcserialtest/ |
A D | cdcserialtest.c | 30 ssize_t bytes = cdcserial_read(cdc_chan, sizeof(rxbuf), rxbuf); in cdctest_entry() local 31 if (bytes == ERR_NOT_READY) { in cdctest_entry() 35 } else if (bytes < 0) { in cdctest_entry() 36 printf("Error reading bytes from CDC Serial: %ld\n", bytes); in cdctest_entry() 40 cdcserial_write(cdc_chan, bytes, rxbuf); in cdctest_entry()
|
/lk-master/external/platform/lpc15xx/lpcopen/periph_crc/example/src/ |
A D | crc.c | 39 static const uint8_t bytes[] = {0x38, 0x38, 0x38, 0x38}; variable 90 result[0] = Chip_CRC_CRC8(&bytes[0], 1); in main() 91 result[1] = Chip_CRC_CRC8(bytes, (sizeof(bytes) / sizeof(bytes[0]))); in main()
|
/lk-master/lib/fs/spifs/test/ |
A D | spifstest.c | 170 ssize_t bytes; in test_write_read_normal() local 174 if (bytes != sizeof(test_buf)) { in test_write_read_normal() 185 if (bytes != sizeof(test_message)) { in test_write_read_normal() 190 if (bytes != sizeof(test_buf)) { in test_write_read_normal() 214 if (bytes != sizeof(test_message)) { in test_write_past_eof() 444 if (bytes != (ssize_t)block_size) { in test_corrupt_toc() 485 ssize_t bytes; in test_write_with_offset() local 488 if ((size_t)bytes != msg_len) { in test_write_with_offset() 494 if ((size_t)bytes != msg_len * repeats) { in test_write_with_offset() 540 if ((size_t)bytes != buflen) { in test_read_write_big() [all …]
|
/lk-master/external/platform/lpc15xx/lpcopen/periph_dma_uart/example/src/ |
A D | dma_uart.c | 136 static bool dmaTXSend(uint8_t *data, int bytes) in dmaTXSend() argument 142 if ((countTXDescUsed >= UARTTXDESC) || (bytes > 1024)) { in dmaTXSend() 155 dmaTXDesc[countTXDescUsed].source = DMA_ADDR(data + bytes - 1); /* Last address here */ in dmaTXSend() 167 DMA_XFERCFG_DSTINC_0 | DMA_XFERCFG_XFERCOUNT(bytes); in dmaTXSend() 327 int bytes, idx; in main() local 398 bytes = checkRxData(buff); in main() 399 if (bytes > 0) { in main() 401 dmaTXSend(buff, bytes); in main()
|
/lk-master/external/platform/lpc15xx/lpcopen/periph_dma_rom_uart/example/src/ |
A D | dma_rom_uart.c | 187 static bool dmaTXSend(uint8_t *data, int bytes) in dmaTXSend() argument 193 if ((countTXDescUsed >= UARTTXDESC) || (bytes > 1024)) { in dmaTXSend() 206 dmaTXDesc[countTXDescUsed].source = (uint32_t) (data + bytes - 1); /* Last address here */ in dmaTXSend() 215 dmaTXDesc[countTXDescUsed].xfercfg = bytes - 1; in dmaTXSend() 329 int bytes = 0, idx; in main() local 403 bytes = checkRxData(buff); in main() 404 if (bytes > 0) { in main() 406 dmaTXSend(buff, bytes); in main()
|
/lk-master/external/platform/lpc15xx/lpcopen/lpc_chip_15xx/src/ |
A D | crc_15xx.c | 82 uint32_t Chip_CRC_CRC8(const uint8_t *data, uint32_t bytes) in Chip_CRC_CRC8() argument 85 while (bytes > 0) { in Chip_CRC_CRC8() 88 bytes--; in Chip_CRC_CRC8()
|
A D | uart_15xx.c | 219 int Chip_UART_ReadRB(LPC_USART_T *pUART, RINGBUFF_T *pRB, void *data, int bytes) in Chip_UART_ReadRB() argument 223 return RingBuffer_PopMult(pRB, (uint8_t *) data, bytes); in Chip_UART_ReadRB()
|
/lk-master/external/platform/lpc15xx/lpcopen/periph_uart_rb/example/src/ |
A D | uart_rb.c | 119 int bytes; in main() local 167 bytes = Chip_UART_ReadRB(LPC_USART, &rxring, &key, 1); in main() 168 if (bytes > 0) { in main()
|
/lk-master/lib/norfs/ |
A D | norfs.c | 205 int16_t bytes = 0; in norfs_read_obj_iovec() local 220 if (bytes < 0) { in norfs_read_obj_iovec() 222 return bytes; in norfs_read_obj_iovec() 224 read_ptr += bytes; in norfs_read_obj_iovec() 235 if (bytes < 0) { in norfs_read_obj_iovec() 237 return bytes; in norfs_read_obj_iovec() 240 *bytes_read += bytes; in norfs_read_obj_iovec() 707 ssize_t bytes; in load_and_verify_obj() local 712 if (bytes < 0) { in load_and_verify_obj() 714 return bytes; in load_and_verify_obj() [all …]
|
/lk-master/external/platform/pico/rp2_common/boot_stage2/ |
A D | boot_stage2.ld | 2 /* We are loaded to the top 256 bytes of SRAM, which is above the bootrom 3 stack. Note 4 bytes occupied by checksum. */
|
A D | pad_checksum | 37 idata_padded = idata + bytes(args.pad - 4 - len(idata)) 42 …(binascii.crc32(bytes(bitrev(b, 8) for b in idata_padded), args.seed ^ 0xffffffff) ^ 0xffffffff) &…
|
/lk-master/external/lib/heap/dlmalloc/include/lib/ |
A D | dlmalloc.h | 276 size_t dlmalloc_set_footprint_limit(size_t bytes); 597 void* mspace_malloc(mspace msp, size_t bytes); 602 void* mspace_memalign(mspace msp, size_t alignment, size_t bytes); 614 size_t mspace_set_footprint_limit(mspace msp, size_t bytes);
|
/lk-master/external/lib/heap/dlmalloc/ |
A D | dlmalloc.c | 4631 nb = (bytes < MIN_REQUEST)? MIN_CHUNK_SIZE : pad_request(bytes); in dlmalloc() 5241 mem = dlmalloc(bytes); in dlrealloc() 5247 else if (bytes == 0) { in dlrealloc() 5274 memcpy(mem, oldmem, (oc < bytes)? oc : bytes); in dlrealloc() 5324 mem = dlmalloc(bytes); in dlposix_memalign() 5412 if (bytes == 0) in dlmalloc_set_footprint_limit() 5414 if (bytes == MAX_SIZE_T) in dlmalloc_set_footprint_limit() 5565 nb = (bytes < MIN_REQUEST)? MIN_CHUNK_SIZE : pad_request(bytes); in mspace_malloc() 5797 else if (bytes == 0) { in mspace_realloc() 5824 memcpy(mem, oldmem, (oc < bytes)? oc : bytes); in mspace_realloc() [all …]
|
/lk-master/external/platform/nrfx/drivers/src/ |
A D | nrfx_uart.c | 495 size_t bytes, in rx_done_event() argument 501 event.data.rxtx.bytes = bytes; in rx_done_event() 508 size_t bytes) in tx_done_event() argument 513 event.data.rxtx.bytes = bytes; in tx_done_event() 561 event.data.error.rxtx.bytes = p_cb->rx_buffer_length; in uart_irq_handler()
|
A D | nrfx_uarte.c | 554 size_t bytes, in rx_done_event() argument 560 event.data.rxtx.bytes = bytes; in rx_done_event() 567 size_t bytes) in tx_done_event() argument 572 event.data.rxtx.bytes = bytes; in tx_done_event() 620 event.data.error.rxtx.bytes = nrf_uarte_rx_amount_get(p_uarte); in uarte_irq_handler()
|
A D | nrfx_nvmc.c | 175 static uint32_t partial_word_create(uint32_t addr, uint8_t const * bytes, uint32_t bytes_count) in partial_word_create() argument 187 ((uint8_t *)&value32)[byte_shift] = bytes[i]; in partial_word_create()
|
/lk-master/external/platform/pico/common/pico_binary_info/include/pico/binary_info/ |
A D | structure.h | 70 uint8_t bytes[1]; member 76 uint8_t bytes[1]; member
|
/lk-master/lib/bytes/ |
A D | rules.mk | 6 $(LOCAL_DIR)/bytes.c
|
/lk-master/platform/rp20xx/tools/ |
A D | uf2conv.py | 131 return bytes(outp, "utf-8") 159 self.bytes = bytearray(256) 169 hd += self.bytes[0:256] 206 currblock.bytes[addr & 0xff] = rec[i]
|
/lk-master/external/platform/pico/rp2_common/pico_standard_link/ |
A D | memmap_copy_to_ram.ld | 36 /* Second stage bootloader is prepended to the image. It must be 256 bytes big 52 "ERROR: Pico second stage bootloader must be 256 bytes in size") 250 …header_end - __logical_binary_start <= 256, "Binary info must be in first 256 bytes of the binary")
|
A D | memmap_blocked_ram.ld | 36 /* Second stage bootloader is prepended to the image. It must be 256 bytes big 52 "ERROR: Pico second stage bootloader must be 256 bytes in size") 249 …header_end - __logical_binary_start <= 256, "Binary info must be in first 256 bytes of the binary")
|
A D | memmap_default.ld | 36 /* Second stage bootloader is prepended to the image. It must be 256 bytes big 52 "ERROR: Pico second stage bootloader must be 256 bytes in size") 249 …header_end - __logical_binary_start <= 256, "Binary info must be in first 256 bytes of the binary")
|
/lk-master/external/platform/lpc15xx/lpcopen/lpc_chip_15xx/inc/ |
A D | crc_15xx.h | 236 uint32_t Chip_CRC_CRC8(const uint8_t *data, uint32_t bytes);
|
/lk-master/external/platform/nrfx/drivers/include/ |
A D | nrfx_uart.h | 142 uint32_t bytes; ///< Number of bytes transfered. member
|
A D | nrfx_uarte.h | 151 size_t bytes; ///< Number of bytes transfered. member
|