Skip to content

Commit

Permalink
Added constant for maximum buffer size for data transfer.
Browse files Browse the repository at this point in the history
  • Loading branch information
arun-silabs committed Nov 25, 2024
1 parent 1e60cb5 commit ab06ec0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/platform/silabs/wifi/rs911x/platform/efx32_ncp_host.c
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,14 @@
#include "sl_spidrv_instances.h"
#include "spidrv.h"

#define MAX_DATA_PACKET_SIZE 1800
#define LDMA_MAX_TRANSFER_LENGTH 4096
#define LDMA_DESCRIPTOR_ARRAY_LENGTH (LDMA_MAX_TRANSFER_LENGTH / 2048)

// use SPI handle for EXP header (configured in project settings)
extern SPIDRV_Handle_t sl_spidrv_exp_handle;
#define SPI_HANDLE sl_spidrv_exp_handle
static uint8_t dummy_buffer[1800] = { 0 };
static uint8_t dummy_buffer[MAX_DATA_PACKET_SIZE] = { 0 };

uint32_t rx_ldma_channel;
uint32_t tx_ldma_channel;
Expand Down

0 comments on commit ab06ec0

Please sign in to comment.