mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-18 16:27:34 +01:00
33 lines
731 B
C++
33 lines
731 B
C++
#include <string.h>
|
|
|
|
#include <ion/src/device/shared/drivers/flash.h>
|
|
#include <ion/src/device/n0110/drivers/power.h>
|
|
|
|
#include "trampoline.h"
|
|
|
|
namespace Bootloader {
|
|
|
|
void __attribute__((noinline)) suspend() {
|
|
Ion::Device::Power::internalFlashSuspend(true);
|
|
}
|
|
|
|
void* Trampolines[TRAMPOLINES_COUNT]
|
|
__attribute__((section(".trampolines_table")))
|
|
__attribute__((used))
|
|
= {
|
|
(void*) Bootloader::suspend, // Suspend
|
|
(void*) Ion::Device::Flash::EraseSector, // External erase
|
|
(void*) Ion::Device::Flash::WriteMemory, // External write
|
|
(void*) memcmp,
|
|
(void*) memcpy,
|
|
(void*) memmove,
|
|
(void*) memset,
|
|
(void*) strchr,
|
|
(void*) strcmp,
|
|
(void*) strlcat,
|
|
(void*) strlcpy,
|
|
(void*) strlen,
|
|
(void*) strncmp
|
|
};
|
|
|
|
} |