From dc00c69b82a3707bcedbbf7ceb7371f42dbeb10a Mon Sep 17 00:00:00 2001 From: Gerhard Hoffmann Date: Tue, 18 Apr 2023 12:17:11 +0200 Subject: [PATCH] Added check4freeFDlongCmd. --- include/sendWRcmd.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/include/sendWRcmd.h b/include/sendWRcmd.h index fb92d2f..dd37064 100644 --- a/include/sendWRcmd.h +++ b/include/sendWRcmd.h @@ -218,7 +218,10 @@ bool sendFDcmd_set(uint8_t nextWrCmd, uint8_t nextRdCmd, uint8_t blockNum, uint8 bool sendFDcmd_get(uint8_t *nextWrCmd, uint8_t *nextRdCmd, uint8_t *blockNum, uint8_t *dat1, uint8_t *dat2, uint8_t *dat3, uint8_t *dat4); uint8_t check4FDshortCmd(void); - // returns number of waiting command + // returns number of waiting command, maxFDCMD_STACKDEPTH + +uint8_t check4freeFDshortCmd(void); + // returns number of free places in short-command stack #define FDLONG_STACKDEPTH 16 void longFDcmd_clrStack(void); @@ -230,6 +233,9 @@ bool longFDcmd_get(uint8_t *nextWrCmd, uint8_t *nextRdCmd, uint8_t *blockNum, ui uint8_t check4FDlongCmd(void); // returns number of waiting command +uint8_t check4freeFDlongCmd(void); + // returns number of free places in long-command stack + #endif