aboutsummaryrefslogtreecommitdiffhomepage
path: root/source/Core/BSP/MHP30
diff options
context:
space:
mode:
Diffstat (limited to 'source/Core/BSP/MHP30')
-rw-r--r--source/Core/BSP/MHP30/configuration.h2
-rw-r--r--source/Core/BSP/MHP30/logo.cpp25
2 files changed, 2 insertions, 25 deletions
diff --git a/source/Core/BSP/MHP30/configuration.h b/source/Core/BSP/MHP30/configuration.h
index 70702cec..f6775c51 100644
--- a/source/Core/BSP/MHP30/configuration.h
+++ b/source/Core/BSP/MHP30/configuration.h
@@ -156,3 +156,5 @@
#define NO_SLEEP_MODE
#endif
#endif
+
+#define FLASH_LOGOADDR (0x08000000 + (62 * 1024)) \ No newline at end of file
diff --git a/source/Core/BSP/MHP30/logo.cpp b/source/Core/BSP/MHP30/logo.cpp
deleted file mode 100644
index c6e77b53..00000000
--- a/source/Core/BSP/MHP30/logo.cpp
+++ /dev/null
@@ -1,25 +0,0 @@
-/*
- * logo.c
- *
- * Created on: 29 May 2020
- * Author: Ralim
- */
-
-#include "BSP.h"
-#include "OLED.hpp"
-
-static uint8_t logo_page[1024] __attribute__((section(".logo_page")));
-
-// Logo header signature.
-#define LOGO_HEADER_VALUE 0xF00DAA55
-
-uint8_t showBootLogoIfavailable() {
- // Do not show logo data if signature is not found.
- if (LOGO_HEADER_VALUE != *(reinterpret_cast<const uint32_t *>(logo_page))) {
- return 0;
- }
-
- OLED::drawAreaSwapped(0, 0, 96, 16, (uint8_t *)(logo_page + 4));
- OLED::refresh();
- return 1;
-}