mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-21 13:53:55 -07:00
testing to extent DMA buffer to 768 bytes
This commit is contained in:
parent
3baf5acc6f
commit
73843fd366
2 changed files with 6 additions and 5 deletions
|
@ -92,9 +92,9 @@ uint32_t BigBuf_get_size(void) {
|
|||
// get the address of the emulator memory. Allocate part of Bigbuf for it, if not yet done
|
||||
uint8_t *BigBuf_get_EM_addr(void) {
|
||||
// not yet allocated
|
||||
if (emulator_memory == NULL)
|
||||
emulator_memory = BigBuf_malloc(CARD_MEMORY_SIZE);
|
||||
|
||||
if (emulator_memory == NULL) {
|
||||
emulator_memory = BigBuf_calloc(CARD_MEMORY_SIZE);
|
||||
}
|
||||
return emulator_memory;
|
||||
}
|
||||
|
||||
|
@ -366,8 +366,9 @@ void tosend_stuffbit(int b) {
|
|||
}
|
||||
|
||||
dmabuf16_t *get_dma16(void) {
|
||||
if (dma_16.buf == NULL)
|
||||
if (dma_16.buf == NULL) {
|
||||
dma_16.buf = (uint16_t *)BigBuf_malloc(DMA_BUFFER_SIZE * sizeof(uint16_t));
|
||||
}
|
||||
|
||||
return &dma_16;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue