Bring up to date with skullc
This commit is contained in:
parent
bb1a446f77
commit
1bbe29b5d9
4
main.cpp
4
main.cpp
@ -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");
|
||||||
|
|
||||||
|
|||||||
@ -36,7 +36,7 @@ HwInstance* HwInstance::instance()
|
|||||||
_INSTANCE.setup();
|
_INSTANCE.setup();
|
||||||
}
|
}
|
||||||
|
|
||||||
return &(*_INSTANCE);
|
return _INSTANCE.get();
|
||||||
}
|
}
|
||||||
|
|
||||||
HwInstance::HwInstance()
|
HwInstance::HwInstance()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user