FreeRTOS Tetris
|
A couple of drop in replacements for printf
and fprintf
to be used for thread safe printing when using FreeRTOS.
More...
#include <stdio.h>
Go to the source code of this file.
Macros | |
Safe print configuration default values | |
Allows for the configuration of each print messages length and the number of print messages that FreeRTOS can buffer | |
#define | SAFE_PRINT_QUEUE_LEN 20 |
#define | SAFE_PRINT_MAX_MSG_LEN 256 |
#define | SAFE_PRINT_STACK_SIZE (SAFE_PRINT_MAX_MSG_LEN * 2) |
#define | SAFE_PRINT_PRIORITY tskIDLE_PRIORITY |
#define | SAFE_PRINT_INPUT_BUFFER_COUNT 10 |
Functions | |
void | fprints (FILE *__restrict __stream, const char *__format,...) |
Prints a formatted string to the specifed IO stream. More... | |
void | prints (const char *__format,...) |
Prints a formatted string to stdout More... | |
int | safePrintInit (void) |
Initializes the printing module. More... | |
void | safePrintExit (void) |
Exits the printing module. | |
A couple of drop in replacements for printf
and fprintf
to be used for thread safe printing when using FreeRTOS.
---------------------------------------------------------------------- Copyright (C) Alexander Hoffman, 2020 This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. ----------------------------------------------------------------------