Skip to content

Commit

Permalink
RAM optimization related to sdcard buffers.
Browse files Browse the repository at this point in the history
This commit moves the SD card test buffers (4*2K) from static RAM to g_sbuf.
Backported from hydrabus/hydrafw@d3eb80f
  • Loading branch information
bvernoux committed Dec 11, 2020
1 parent caf1bd1 commit f586147
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/common/microsd.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@

#include "script.h"

static uint8_t outbuf[IN_OUT_BUF_SIZE+8];
static uint8_t inbuf[IN_OUT_BUF_SIZE+8];
static uint8_t *outbuf = g_sbuf;
static uint8_t *inbuf = g_sbuf+(IN_OUT_BUF_SIZE+8);

/* FS object.*/
FATFS SDC_FS;
Expand Down
4 changes: 2 additions & 2 deletions src/hydrabus/hydrabus_sd.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@

#include "script.h"

static uint8_t outbuf[IN_OUT_BUF_SIZE+8];
static uint8_t inbuf[IN_OUT_BUF_SIZE+8];
static uint8_t *outbuf = g_sbuf;
static uint8_t *inbuf = g_sbuf+(IN_OUT_BUF_SIZE+8);

/* FS object.*/
extern FATFS SDC_FS;
Expand Down

0 comments on commit f586147

Please sign in to comment.