diff options
Diffstat (limited to 'ecp5/resource')
-rw-r--r-- | ecp5/resource/chipdb.rc | 5 | ||||
-rw-r--r-- | ecp5/resource/embed.cc | 28 | ||||
-rw-r--r-- | ecp5/resource/resource.h | 4 |
3 files changed, 0 insertions, 37 deletions
diff --git a/ecp5/resource/chipdb.rc b/ecp5/resource/chipdb.rc deleted file mode 100644 index 60f690c6..00000000 --- a/ecp5/resource/chipdb.rc +++ /dev/null @@ -1,5 +0,0 @@ -#include "resource.h" - -IDR_CHIPDB_25K BINARYFILE "ecp5/chipdb/chipdb-25k.bin" -IDR_CHIPDB_45K BINARYFILE "ecp5/chipdb/chipdb-45k.bin" -IDR_CHIPDB_88K BINARYFILE "ecp5/chipdb/chipdb-85k.bin" diff --git a/ecp5/resource/embed.cc b/ecp5/resource/embed.cc deleted file mode 100644 index adbb7781..00000000 --- a/ecp5/resource/embed.cc +++ /dev/null @@ -1,28 +0,0 @@ -#include <cstdio> -#include <windows.h> -#include "nextpnr.h" -#include "resource.h" - -NEXTPNR_NAMESPACE_BEGIN - -const char *chipdb_blob_25k; -const char *chipdb_blob_45k; -const char *chipdb_blob_85k; - -const char *LoadFileInResource(int name, int type, DWORD &size) -{ - HMODULE handle = ::GetModuleHandle(NULL); - HRSRC rc = ::FindResource(handle, MAKEINTRESOURCE(name), MAKEINTRESOURCE(type)); - HGLOBAL rcData = ::LoadResource(handle, rc); - size = ::SizeofResource(handle, rc); - return static_cast<const char *>(::LockResource(rcData)); -} -void load_chipdb() -{ - DWORD size = 0; - chipdb_blob_25k = LoadFileInResource(IDR_CHIPDB_25K, BINARYFILE, size); - chipdb_blob_45k = LoadFileInResource(IDR_CHIPDB_45K, BINARYFILE, size); - chipdb_blob_85k = LoadFileInResource(IDR_CHIPDB_85K, BINARYFILE, size); -} - -NEXTPNR_NAMESPACE_END
\ No newline at end of file diff --git a/ecp5/resource/resource.h b/ecp5/resource/resource.h deleted file mode 100644 index 1a18bee2..00000000 --- a/ecp5/resource/resource.h +++ /dev/null @@ -1,4 +0,0 @@ -#define BINARYFILE 256 -#define IDR_CHIPDB_25K 101 -#define IDR_CHIPDB_45K 102 -#define IDR_CHIPDB_85K 103 |