-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Was able to coax enough SRAM free by rewriting the functions: ``` void logmsg_buf(const unsigned char *buf, unsigned long size); void logmsg_f(const char *format, ...); ``` used in `lib/SCSI2SD/src/firmware/network.c` from `src/ZuluSCSI_log.h`. They now use a shared buffer. There is possibly more SRAM savings if the above methods wrote directly to the global log buffer. Their debug equivalents have also been added ``` void dbgmsg_buf(const unsigned char *buf, unsigned long size); void dbgmsg_f(const char *format, ...); ``` And C macros have been added to test `g_debug_log` before calling the equivalent functions to avoid making unnecessary function calls in `lib/SCSI2SD/src/firmware/log.h`: ``` DBGMSG_BUF() DBGMSG_F() ```
- Loading branch information
Showing
5 changed files
with
101 additions
and
57 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters