Bring up to date with skullc

This commit is contained in:
Erki 2022-06-30 19:58:56 +03:00
parent bb1a446f77
commit 1bbe29b5d9
2 changed files with 3 additions and 3 deletions

View File

@ -12,9 +12,9 @@ namespace Hal = Peripherals::Hal::Samd;
namespace namespace
{ {
[[noreturn]] void m_faultHandler(const char* file, const int line) [[noreturn]] void m_faultHandler(const char* expression, const char* file, const int line)
{ {
SKULLC_LOG_FATAL("Fault: %s:%d", file, line); SKULLC_LOG_FATAL("Expression failed: (%s), source: %s:%d", expression, file, line);
__asm__("BKPT"); __asm__("BKPT");

View File

@ -36,7 +36,7 @@ HwInstance* HwInstance::instance()
_INSTANCE.setup(); _INSTANCE.setup();
} }
return &(*_INSTANCE); return _INSTANCE.get();
} }
HwInstance::HwInstance() HwInstance::HwInstance()