Added printable prinf and template printable

This commit is contained in:
Dario
2023-07-15 16:11:07 +01:00
parent 6da6666559
commit 5e04b2cfcb
3 changed files with 52 additions and 2 deletions

View File

@@ -0,0 +1,18 @@
#include <sta/devices/template/custom_printable.hpp>
#ifdef STA_PLATFORM_YOUR_DEVICE
#include <sta/debug/assert.hpp>
namespace sta
{
void CustomPrintable::print(const char * str, size_t length)
{
STA_ASSERT(str != nullptr);
STA_ASSERT(length > 0);
// YOUR CODE HERE
}
} // namespace sta
#endif // STA_PLATFORM_YOUR_DEVICE