From e6a6bcd23a3ab570f8bfef4df15641bfe9a4c949 Mon Sep 17 00:00:00 2001 From: Matthew Kennedy Date: Wed, 2 Dec 2020 15:58:18 -0800 Subject: [PATCH] cleanup --- firmware/bootloader/bootloader.cpp | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/firmware/bootloader/bootloader.cpp b/firmware/bootloader/bootloader.cpp index f75fb27..b27ecb1 100644 --- a/firmware/bootloader/bootloader.cpp +++ b/firmware/bootloader/bootloader.cpp @@ -8,18 +8,6 @@ extern uint32_t __appflash_start__; extern uint32_t __ram_vectors_start__; extern int __ram_vectors_size__; -void memcpy_wrapped(char* dst, const char* src, int size) -{ - //memcpy(dst, src, size); - //return; - - for (size_t i = 0; i < size; i++) - { - char c = src[i]; - dst[i] = c; - } -} - __attribute__((noreturn)) void jump_to(uint32_t address) { __asm__ __volatile__ ("bx r0"); @@ -37,7 +25,7 @@ void boot_app() { // copy vector table to sram // TODO: use __ram_vectors_size__ - memcpy_wrapped(reinterpret_cast(&__ram_vectors_start__), reinterpret_cast(&__appflash_start__), 256); + memcpy(reinterpret_cast(&__ram_vectors_start__), reinterpret_cast(&__appflash_start__), 256); // The reset vector is at offset 4 (second uint32) uint32_t reset_vector = appFlash[1];