Skip to content

Commit

Permalink
wiznet5k: Properly enable socket buffers for W5100(S).
Browse files Browse the repository at this point in the history
  • Loading branch information
greezybacon committed Apr 1, 2024
1 parent 9d27183 commit 7b2dcde
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions extmod/network_wiznet5k.c
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,11 @@ static void wiznet5k_init(void) {
// Configure wiznet for raw ethernet frame usage.

// Configure 16k buffers for fast MACRAW
#if _WIZCHIP_ < W5200
uint8_t sn_size[8] = {8, 0, 0, 0, 8, 0, 0, 0};
#else
uint8_t sn_size[16] = {16, 0, 0, 0, 0, 0, 0, 0, 16, 0, 0, 0, 0, 0, 0, 0};
#endif
ctlwizchip(CW_INIT_WIZCHIP, sn_size);

if (wiznet5k_obj.use_interrupt) {
Expand Down

0 comments on commit 7b2dcde

Please sign in to comment.