Add OLED display support

This commit is contained in:
MG-95 2021-10-29 21:53:09 +02:00
parent 6ec7d1b8bb
commit 548549f067
14 changed files with 322 additions and 68 deletions
core/src

View file

@ -13,7 +13,13 @@ void *operator new(std::size_t size)
#if FW_USE_RTOS
return pvPortMalloc(size);
#else
return reinterpret_cast<void *>(0xffffffff);
#ifdef DEBUG
__asm("bkpt");
#else
while (1)
{
}
#endif
#endif
}
@ -26,11 +32,15 @@ void operator delete(void *ptr)
{
#if FW_USE_RTOS
vPortFree(ptr);
#else
#ifdef DEBUG
__asm("bkpt");
#else
while (1)
{
}
#endif
#endif
}
void operator delete(void *ptr, unsigned int)
@ -110,7 +120,7 @@ extern "C"
// some functions in cmath follow the compiler flag -fno-math-errno
// but not so for std::pow...
void __errno() {
void __errno()
{
}
}