Fix #10: Moved static and global variablöes that are 0 initialized to CCMRAM in order to make room and increase performance.

This commit is contained in:
2020-08-18 19:57:13 +02:00
parent 64ef7b4a3c
commit 60e990632b
9 changed files with 25 additions and 21 deletions

View File

@@ -115,7 +115,7 @@ static inline void setup_shell_uart(struct stm_uart *uart)
static bool mount_sd_card_if_avail(bool mounted)
{
FRESULT res;
static uint8_t inserted_counter = 0;
static uint8_t IN_SECTION(.ccmram) inserted_counter = 0;
if (sdio_check_inserted() && mounted) {
memset(fs_ptr, 0, sizeof(FATFS));